Fixes assert for IpPermissions collection

Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/a918550e
Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/a918550e
Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/a918550e

Branch: refs/heads/master
Commit: a918550e576d12b45a962a8e0c9cd4c5af1e3678
Parents: bdb9a3a
Author: Dani Estevez <cont...@danielestevez.com>
Authored: Mon May 7 11:36:13 2018 -0400
Committer: Ignasi Barrera <n...@apache.org>
Committed: Thu May 17 09:13:25 2018 +0200

----------------------------------------------------------------------
 .../extensions/AzureComputeSecurityGroupExtensionLiveTest.java  | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds/blob/a918550e/providers/azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/compute/extensions/AzureComputeSecurityGroupExtensionLiveTest.java
----------------------------------------------------------------------
diff --git 
a/providers/azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/compute/extensions/AzureComputeSecurityGroupExtensionLiveTest.java
 
b/providers/azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/compute/extensions/AzureComputeSecurityGroupExtensionLiveTest.java
index 153df29..8bd2c57 100644
--- 
a/providers/azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/compute/extensions/AzureComputeSecurityGroupExtensionLiveTest.java
+++ 
b/providers/azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/compute/extensions/AzureComputeSecurityGroupExtensionLiveTest.java
@@ -16,7 +16,6 @@
  */
 package org.jclouds.azurecompute.arm.compute.extensions;
 
-import static com.google.common.collect.Iterables.get;
 import static com.google.common.collect.Iterables.getOnlyElement;
 import static 
org.jclouds.azurecompute.arm.compute.options.AzureTemplateOptions.Builder.resourceGroup;
 import static 
org.jclouds.azurecompute.arm.config.AzureComputeProperties.TIMEOUT_RESOURCE_DELETED;
@@ -127,8 +126,8 @@ public class AzureComputeSecurityGroupExtensionLiveTest 
extends BaseSecurityGrou
 
          SecurityGroup group = getOnlyElement(groups);
          assertEquals(group.getIpPermissions().size(), 2);
-         assertEquals(get(group.getIpPermissions(), 0), 
IpPermissions.permit(TCP).fromPort(22).to(24));
-         assertEquals(get(group.getIpPermissions(), 1), 
IpPermissions.permit(TCP).port(8000));
+         
assertTrue(group.getIpPermissions().contains(IpPermissions.permit(TCP).fromPort(22).to(24)));
+         
assertTrue(group.getIpPermissions().contains(IpPermissions.permit(TCP).port(8000)));
       } finally {
          computeService.destroyNodesMatching(inGroup(node.getGroup()));
       }

Reply via email to