[
https://issues.apache.org/jira/browse/HDDS-12348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Attila Doroszlai resolved HDDS-12348.
-------------------------------------
Fix Version/s: 2.0.0
Resolution: Implemented
> Reuse TestDataUtil.createKey method
> -----------------------------------
>
> Key: HDDS-12348
> URL: https://issues.apache.org/jira/browse/HDDS-12348
> Project: Apache Ozone
> Issue Type: Sub-task
> Components: test
> Reporter: Attila Doroszlai
> Assignee: Chia-Chuan Yu
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.0.0
>
>
> Get rid of code duplication:
> {code}
> hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/fs/ozone/TestOzoneFSWithObjectStoreCreate.java
> 422- OzoneOutputStream ozoneOutputStream =
> 423- ozoneBucket.createKey(key, length);
> 424-
> 425- ozoneOutputStream.write(input);
> 426: ozoneOutputStream.write(input, 0, 10);
> 427- ozoneOutputStream.close();
> hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestBucketOwner.java
> 212- private void createKey(OzoneBucket ozoneBucket, String key, int length,
> 213- byte[] input) throws Exception {
> 214- OzoneOutputStream ozoneOutputStream = ozoneBucket.createKey(key,
> length);
> 215- ozoneOutputStream.write(input);
> 216: ozoneOutputStream.write(input, 0, 10);
> 217- ozoneOutputStream.close();
> 218- }
> hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestListKeys.java
> 389- OzoneOutputStream ozoneOutputStream =
> 390- ozoneBucket.createKey(key, length);
> 391-
> 392- ozoneOutputStream.write(input);
> 393: ozoneOutputStream.write(input, 0, 10);
> 394- ozoneOutputStream.close();
> hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestListKeysWithFSO.java
> 660- OzoneOutputStream ozoneOutputStream =
> 661- ozoneBucket.createKey(key, length);
> 662-
> 663- ozoneOutputStream.write(input);
> 664: ozoneOutputStream.write(input, 0, 10);
> 665- ozoneOutputStream.close();
> hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestObjectStoreWithFSO.java
> 578- OzoneOutputStream ozoneOutputStream =
> 579- ozoneBucket.createKey(key, length);
> 580-
> 581- ozoneOutputStream.write(input);
> 582: ozoneOutputStream.write(input, 0, 10);
> 583- ozoneOutputStream.close();
> hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestRecursiveAclWithFSO.java
> 345- private void createKey(OzoneBucket ozoneBucket, String key, int length,
> 346- byte[] input) throws Exception {
> 347- OzoneOutputStream ozoneOutputStream = ozoneBucket.createKey(key,
> length);
> 348- ozoneOutputStream.write(input);
> 349: ozoneOutputStream.write(input, 0, 10);
> 350- ozoneOutputStream.close();
> 351- }
> hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/snapshot/TestOmSnapshotFileSystem.java
> 365- OzoneOutputStream ozoneOutputStream =
> 366- ozoneBucket.createKey(key, length);
> 367-
> 368- ozoneOutputStream.write(input);
> 369: ozoneOutputStream.write(input, 0, 10);
> 370- ozoneOutputStream.close();
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]