Remove API to validate user access
[aaa.git] / aaa-shiro / impl / src / test / java / org / opendaylight / aaa / shiro / idm / rest / test / DomainHandlerTest.java
index fc605943f5cc40c841543bfa1c9374849456ebbf..13f11e2760b210b09db9a33a5d3c4498ad701f6e 100644 (file)
@@ -76,18 +76,6 @@ public class DomainHandlerTest extends HandlerTest {
         clientResponse = target("/v1/domains/5/users/0/roles").request().post(entity(grantData));
         assertEquals(404, clientResponse.getStatus());
 
-        // check validate user (admin)
-        Map<String, String> usrPwdData = new HashMap<>();
-        usrPwdData.put("username", "admin");
-        usrPwdData.put("userpwd", "admin");
-        clientResponse = target("/v1/domains/0/users/roles").request().post(entity(usrPwdData));
-        assertEquals(200, clientResponse.getStatus());
-
-        // check validate user (admin) with wrong password
-        usrPwdData.put("userpwd", "1234");
-        clientResponse = target("/v1/domains/0/users/roles").request().post(entity(usrPwdData));
-        assertEquals(401, clientResponse.getStatus());
-
         // check get user (admin) roles
         Roles usrRoles = target("/v1/domains/0/users/0/roles").request().get(Roles.class);
         assertNotNull(usrRoles);