Skip to content

Commit

Permalink
Removed format,exportPattern,labelIds and Add bundleIds field in AddD…
Browse files Browse the repository at this point in the history
…istribution Api (#160)
  • Loading branch information
Durdush authored Jul 19, 2023
1 parent 91eb39f commit 5732e7e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,5 @@ public class AddDistributionRequest {
private Enum exportMode;
private String name;
private List<Long> fileIds;
private String format;
private String exportPattern;
private List<Long> labelIds;
private List<Integer> bundleIds;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ public class Distribution {
private String exportMode;
private String name;
private List<Long> fileIds;
private String format;
private String exportPattern;
private List<Long> labelIds;
private List<Integer> bundleIds;
private Date createdAt;
private Date updatedAt;
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,8 @@ public void addDistributionTest() {
AddDistributionRequest request = new AddDistributionRequest();
request.setExportMode(ExportMode.BUNDLE);
request.setName(name);
request.setFormat("crowdin-resx");
request.setExportPattern("strings-%two_letter_code%.resx");
request.setFileIds(Collections.singletonList(0L));
request.setLabelIds(Collections.singletonList(0L));
request.setBundleIds(Arrays.asList(1,2,3));
ResponseObject<Distribution> distributionResponseObject = this.getDistributionsApi().addDistribution(projectId, request);
assertEquals(distributionResponseObject.getData().getHash(), hash);
assertEquals(distributionResponseObject.getData().getName(), name);
Expand Down
6 changes: 2 additions & 4 deletions src/test/resources/api/distributions/addDistribution.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"fileIds": [
0
],
"format": "crowdin-resx",
"exportPattern": "strings-%two_letter_code%.resx",
"labelIds": [
0
"bundleIds": [
1,2,3
]
}
6 changes: 2 additions & 4 deletions src/test/resources/api/distributions/distribution.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
"fileIds": [
0
],
"format": "crowdin-resx",
"exportPattern": "strings-%two_letters_code%.resx",
"labelIds": [
0
"bundleIds": [
1,2,3
],
"createdAt": "2019-09-16T13:48:04+00:00",
"updatedAt": "2019-09-19T13:25:27+00:00"
Expand Down

0 comments on commit 5732e7e

Please sign in to comment.