Package com.griddynamics.genesis.tools.credentials

Examples of com.griddynamics.genesis.tools.credentials.Credentials


      Assert.assertTrue(pathToCredential!=null, "Credentials path property was not set");
     
      int projectId = getProjectIdByProjectName(projectName);
    Assert.assertTrue(projectId != -1, "Project " + projectName + " was not found");

    newCredentials = new Credentials(pairName, cloudProvider, identity, getKeyFromFile(pathToCredential, credential));
   
      request.setUrl(String.format(ADD_CREDENTIALS_URL, projectId));
      request.post(newCredentials);

      newCredentials.setProjectId(projectId);
View Full Code Here


    }

   
    @Then("New credentials will be added")
    public void thenNewCredentialsWillBeCreated() throws IOException {
      Credentials actualCredentials = request.getResponseObject(AddCredentialsResponse.class).getCredentials();
       
      Assert.assertTrue(findCredentialsById(actualCredentials.getId(), String.valueOf(newCredentials.getProjectId())),
          "ERROR: New credentials was not found");

      Assert.assertEquals(actualCredentials.getPairName(), newCredentials.getPairName());
      Assert.assertEquals(actualCredentials.getCloudProvider(), newCredentials.getCloudProvider());
      Assert.assertEquals(actualCredentials.getIdentity(), newCredentials.getIdentity());
      Assert.assertEquals(actualCredentials.getProjectId(), newCredentials.getProjectId());
     }
View Full Code Here

TOP

Related Classes of com.griddynamics.genesis.tools.credentials.Credentials

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.