Skip to content

Commit

Permalink
updated tests based on new code
Browse files Browse the repository at this point in the history
  • Loading branch information
tutkat committed Dec 9, 2024
1 parent 44b6090 commit ccde131
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions equinix-openapi-fabric-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@
<dependency>
<groupId>com.equinix</groupId>
<artifactId>equinix-openapi-fabric</artifactId>
<version>0.10.0</version>
</dependency>
<dependency>
<groupId>com.equinix</groupId>
<artifactId>equinix-openapi-fabric</artifactId>
<version>0.10.0</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public static CloudRouter createRouter() throws ApiException {
.project(new Project().projectId(user.getProjectId()))
.account(new SimplifiedAccount().accountNumber(Long.valueOf(user.getAccountNumber())));

CloudRouter cloudRouter = cloudRoutersApi.createCloudRouter(cloudRouterPostRequest);
CloudRouter cloudRouter = cloudRoutersApi.createCloudRouter(cloudRouterPostRequest, true);

users.get(getCurrentUser()).getUserResources().addCloudRouterUuid(cloudRouter.getUuid());
assertEquals(200, cloudRoutersApi.getApiClient().getStatusCode());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void createConnectionVdColo() throws ApiException {
.type(LinkProtocolType.DOT1Q)
.vlanTag(vlanTag))));

connection = connectionsApi.createConnection(connectionPostRequest);
connection = connectionsApi.createConnection(connectionPostRequest, true);

if (connectionsApi.getApiClient().getStatusCode() == 201) {
break;
Expand Down Expand Up @@ -197,7 +197,7 @@ public static Connection createConnectionFCR2ToPort() throws ApiException {
.type(LinkProtocolType.DOT1Q)
.vlanTag(tag))));

connection = connectionsApi.createConnection(connectionPostRequest);
connection = connectionsApi.createConnection(connectionPostRequest, true);

if (connectionsApi.getApiClient().getStatusCode() == 201) {
break;
Expand Down Expand Up @@ -257,7 +257,7 @@ public static Connection createPort2SpConnection() throws ApiException {
.vlanSTag(sTag)
.vlanCTag(cTag))));

connection = connectionsApi.createConnection(connectionPostRequest);
connection = connectionsApi.createConnection(connectionPostRequest, true);

if (connectionsApi.getApiClient().getStatusCode() == 201) {
break;
Expand Down Expand Up @@ -333,7 +333,7 @@ public static Connection createPort2Port() throws ApiException {
.type(LinkProtocolType.DOT1Q)
.vlanTag(tagZside))));

connection = connectionsApi.createConnection(connectionPostRequest);
connection = connectionsApi.createConnection(connectionPostRequest, true);

if (connectionsApi.getApiClient().getStatusCode() == 201) {
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public Network createNetwork() throws ApiException {
.notifications(singletonList(new SimplifiedNotification()
.type(SimplifiedNotification.TypeEnum.ALL).emails(singletonList("[email protected]"))));

Network network = networksApi.createNetwork(networkPostRequest);
Network network = networksApi.createNetwork(networkPostRequest, true);
assertEquals(201, networksApi.getApiClient().getStatusCode());

for (int i = 0; i < 5; i++) {
Expand Down

0 comments on commit ccde131

Please sign in to comment.