Skip to content

Commit 1b4462d

Browse files
authored
Merge pull request #492 from RachelTucker/5_0_x_API-add-5-2-support
Updating BP resources enum to include new items in 5.2 API
2 parents 6218a10 + 7479af3 commit 1b4462d

File tree

3 files changed

+18602
-0
lines changed

3 files changed

+18602
-0
lines changed

ds3-autogen-api/src/main/java/com/spectralogic/ds3autogen/api/models/enums/Resource.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ public enum Resource {
2828
BEANS_RETRIEVER,
2929
BUCKET,
3030
BUCKET_ACL,
31+
BUCKET_CHANGES_NOTIFICATION_REGISTRATION,
32+
BUCKET_HISTORY,
3133
CACHE_FILESYSTEM,
3234
CACHE_STATE,
3335
CANCELED_JOB,

ds3-autogen-parser/src/test/java/com/spectralogic/ds3autogen/Ds3SpecParserImpl_Test.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,4 +179,13 @@ public void fullXml_5_0_x() throws IOException {
179179
assertThat(spec.getRequests(), is(notNullValue()));
180180
assertThat(spec.getTypes(), is(notNullValue()));
181181
}
182+
183+
@Test
184+
public void fullXml_5_2_x() throws IOException {
185+
final Ds3SpecParser parser = new Ds3SpecParserImpl();
186+
final Ds3ApiSpec spec = parser.getSpec(Ds3SpecParserImpl_Test.class.getResourceAsStream("/specs/5_2_x_1734756_contract.xml"));
187+
assertThat(spec, is(notNullValue()));
188+
assertThat(spec.getRequests(), is(notNullValue()));
189+
assertThat(spec.getTypes(), is(notNullValue()));
190+
}
182191
}

0 commit comments

Comments
 (0)