> + RoleInfo role = api().getRole(roleName); > + assertNotNull(role, "Role was not set"); > + assertTrue(role.name().equals(roleName), "Found Role name does not > match expected name: found=" + role.name() + ", expected=" + roleName); > + } > + > + @Test (dependsOnMethods = "testGetRole") > + public void testListRoles() throws Exception { > + List<RoleInfo> possibleRoles = api().listRoles(); > + assertNotNull(possibleRoles, "possibleRoles was not set"); > + assertTrue(possibleRoles.size() > 0, "Expected at least 1 Role but > list was empty"); > + boolean roleFound = false; > + for (RoleInfo possibleRole : possibleRoles) { > + if (possibleRole.name().equals(roleName)) { > + roleFound = true; > + } > + }
WTF?!? It appears that in my hazy cloud of sickness I'm currently entertaining that I made the changes to the ServiceKeys API instead of the Roles API. Still needed to be done there so that's a plus, but my apologies for seemingly completely ignoring all your comments that I thought I was addressing. I'll hop on those now ;) --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/166/files#r28508511