Package org.jclouds.iam.parse

Examples of org.jclouds.iam.parse.ListInstanceProfilesResponseTest


      HttpResponse listInstanceProfilesResponse = HttpResponse.builder().statusCode(200)
            .payload(payloadFromResourceWithContentType("/list_instance_profiles.xml", "text/xml")).build();

      IAMApi apiWhenExist = requestSendsResponse(listInstanceProfiles, listInstanceProfilesResponse);

      assertEquals(apiWhenExist.getRoleApi().listInstanceProfiles("WebServer").get(0).toString(), new ListInstanceProfilesResponseTest().expected().toString());
   }
View Full Code Here


               .payload(payloadFromResourceWithContentType("/list_instance_profiles.xml", "text/xml")).build();

      IAMApi apiWhenExist = requestsSendResponses(listInstanceProfiles, listInstanceProfilesResponse, listInstanceProfiles2, listInstanceProfiles2Response);

      assertEquals(apiWhenExist.getRoleApi().listInstanceProfiles("WebServer").concat().toList(),
               ImmutableList.copyOf(Iterables.concat(new ListInstanceProfilesResponseTest().expected(), new ListInstanceProfilesResponseTest().expected())));
   }
View Full Code Here

      HttpResponse listResponse = HttpResponse.builder().statusCode(200)
            .payload(payloadFromResourceWithContentType("/list_instance_profiles.xml", "text/xml")).build();

      IAMApi apiWhenExist = requestSendsResponse(list, listResponse);

      assertEquals(apiWhenExist.getInstanceProfileApi().list().get(0).toString(), new ListInstanceProfilesResponseTest().expected().toString());
   }
View Full Code Here

               .payload(payloadFromResourceWithContentType("/list_instance_profiles.xml", "text/xml")).build();

      IAMApi apiWhenExist = requestsSendResponses(list, listResponse, list2, list2Response);

      assertEquals(apiWhenExist.getInstanceProfileApi().list().concat().toList(),
               ImmutableList.copyOf(Iterables.concat(new ListInstanceProfilesResponseTest().expected(), new ListInstanceProfilesResponseTest().expected())));
   }
View Full Code Here

      HttpResponse listResponse = HttpResponse.builder().statusCode(200)
            .payload(payloadFromResourceWithContentType("/list_instance_profiles.xml", "text/xml")).build();

      IAMApi apiWhenExist = requestSendsResponse(listPathPrefix, listResponse);

      assertEquals(apiWhenExist.getInstanceProfileApi().listPathPrefix("/subdivision").get(0).toString(), new ListInstanceProfilesResponseTest().expected().toString());
   }
View Full Code Here

               .payload(payloadFromResourceWithContentType("/list_instance_profiles.xml", "text/xml")).build();

      IAMApi apiWhenExist = requestsSendResponses(listPathPrefix, listResponse, listPathPrefix2, list2Response);

      assertEquals(apiWhenExist.getInstanceProfileApi().listPathPrefix("/subdivision").concat().toList(),
               ImmutableList.copyOf(Iterables.concat(new ListInstanceProfilesResponseTest().expected(), new ListInstanceProfilesResponseTest().expected())));
   }
View Full Code Here

      IAMApi apiWhenWithOptionsExist = requestSendsResponse(listWithOptions,
               listWithOptionsResponse);

      assertEquals(apiWhenWithOptionsExist.getInstanceProfileApi().listPathPrefixAt("/foo", "MARKER").toString(),
               new ListInstanceProfilesResponseTest().expected().toString());
   }
View Full Code Here

      HttpResponse listInstanceProfilesResponse = HttpResponse.builder().statusCode(200)
            .payload(payloadFromResourceWithContentType("/list_instance_profiles.xml", "text/xml")).build();

      IAMApi apiWhenExist = requestSendsResponse(listInstanceProfiles, listInstanceProfilesResponse);

      assertEquals(apiWhenExist.getRoleApi().listInstanceProfiles("WebServer").get(0).toString(), new ListInstanceProfilesResponseTest().expected().toString());
   }
View Full Code Here

               .payload(payloadFromResourceWithContentType("/list_instance_profiles.xml", "text/xml")).build();

      IAMApi apiWhenExist = requestsSendResponses(listInstanceProfiles, listInstanceProfilesResponse, listInstanceProfiles2, listInstanceProfiles2Response);

      assertEquals(apiWhenExist.getRoleApi().listInstanceProfiles("WebServer").concat().toList(),
               ImmutableList.copyOf(Iterables.concat(new ListInstanceProfilesResponseTest().expected(), new ListInstanceProfilesResponseTest().expected())));
   }
View Full Code Here

      HttpResponse listResponse = HttpResponse.builder().statusCode(200)
            .payload(payloadFromResourceWithContentType("/list_instance_profiles.xml", "text/xml")).build();

      IAMApi apiWhenExist = requestSendsResponse(list, listResponse);

      assertEquals(apiWhenExist.getInstanceProfileApi().list().get(0).toString(), new ListInstanceProfilesResponseTest().expected().toString());
   }
View Full Code Here

TOP

Related Classes of org.jclouds.iam.parse.ListInstanceProfilesResponseTest

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.