Skip to content

Commit

Permalink
test(jans-auth-server): fixed OpenIDRequestObjectHttpTest.requestFile…
Browse files Browse the repository at this point in the history
…MethodFail2

Localhost requist_uri is forbidden.
  • Loading branch information
yuriyz committed Jun 29, 2022
1 parent b3b3d22 commit 9defacb
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
import java.util.List;
import java.util.UUID;

import static io.jans.as.client.client.Asserter.*;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertNotNull;
import static org.testng.Assert.fail;
Expand Down Expand Up @@ -2033,8 +2032,7 @@ public void requestFileMethodFail2(
AuthorizationResponse response = authorizeClient.exec();

showClient(authorizeClient);
assertEquals(response.getStatus(), 302, "Unexpected response code: " + response.getStatus());
assertNotNull(response.getLocation(), "The location is null");
assertEquals(response.getStatus(), 400, "Unexpected response code: " + response.getStatus());
assertNotNull(response.getErrorType(), "The error type is null");
assertNotNull(response.getErrorDescription(), "The error description is null");
assertNotNull(response.getState(), "The state is null");
Expand Down

0 comments on commit 9defacb

Please sign in to comment.