Package com.griddynamics.genesis.tools.servers

Examples of com.griddynamics.genesis.tools.servers.ServerArray


    public void thenIGetCredentialsList(@Named("arrayName") String arrayName,
                                        @Named("arrayDescription") String arrayDescription) {
     
      List<ServerArray> serverArraysList = Arrays.asList(request.getResponseObject(ServerArray[].class));
     
      ServerArray expectedServerArray = new ServerArray();
     
      expectedServerArray.setName(arrayName);
      expectedServerArray.setDescription(arrayDescription);
      expectedServerArray.setProjectId(projectId);
     
      Assert.assertTrue(serverArraysList.contains(expectedServerArray));
    }
View Full Code Here


    @Then("New server array should be created")
    public void thenNewCredentialsWillBeCreated() {
      Assert.assertTrue(request.checkStatusCode200(), "Status code is " + request.getResponse().getStatusCode() + ", but must be 200");
       
      CreateServerArrayResponse actualResponse = request.getResponseObject(CreateServerArrayResponse.class);
      ServerArray actualArray = actualResponse.getArray();
     
      Assert.assertEquals(actualResponse.isSuccess, true);
      Assert.assertEquals(actualArray.getName(), requestBody.getName());
      Assert.assertEquals(actualArray.getDescription(), requestBody.getDescription());
      Assert.assertEquals(actualArray.getProjectId(), requestBody.getProjectId());

    }
View Full Code Here

TOP

Related Classes of com.griddynamics.genesis.tools.servers.ServerArray

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.