Skip to content

Commit

Permalink
Merge pull request #19671 from AnuradhaSK/add-log
Browse files Browse the repository at this point in the history
Add log to print testAddUserFailure response
  • Loading branch information
AnuradhaSK committed Feb 18, 2024
2 parents 19db86c + 18f0bbd commit 94df478
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
package org.wso2.identity.integration.test.scim2;

import org.apache.commons.codec.binary.Base64;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.http.HttpHeaders;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpDelete;
Expand Down Expand Up @@ -71,6 +73,7 @@

public class SCIM2UserTestCase extends ISIntegrationTest {

private static Log LOG = LogFactory.getLog(SCIM2UserTestCase.class);
private static final String FAMILY_NAME_CLAIM_VALUE = "scim";
private static final String GIVEN_NAME_CLAIM_VALUE = "user";
private static final String FAMILY_NAME_CLAIM_VALUE_1 = "scim1";
Expand Down Expand Up @@ -262,6 +265,8 @@ public void testAddUserFailure() throws Exception {
Object responseObj = JSONValue.parse(EntityUtils.toString(response.getEntity()));
EntityUtils.consume(response.getEntity());

LOG.info("Response of testAddUserFailure method:" + responseObj.toString());

JSONArray schemasArray = (JSONArray)((JSONObject) responseObj).get("schemas");
Assert.assertNotNull(schemasArray);
Assert.assertEquals(schemasArray.size(), 1);
Expand Down

0 comments on commit 94df478

Please sign in to comment.