Skip to content

Commit

Permalink
changes for tenant qualified paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaminduDilshan authored Oct 23, 2023
1 parent b072a6e commit d246d80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,10 @@ public void testGetPassiveSTSInboundAuthConfigs() throws XPathExpressionExceptio
.assertThat()
.statusCode(HttpStatus.SC_OK)
.body("enableRequestSigning", equalTo(false))
.body("passiveSTSUrl", equalTo(PASSIVE_STS_URL));
.body("passiveSTSUrl",
MultitenantConstants.SUPER_TENANT_DOMAIN_NAME.equals(context.getContextTenant().getDomain())
? equalTo(PASSIVE_STS_URL_SUPER_TENANT)
: equalTo(PASSIVE_STS_URL_TENANT));
}

@Test(dependsOnMethods = {"testGetPassiveSTSInboundAuthConfigs"})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public class ConfigTestBase extends RESTAPIServerTestBase {
"https://localhost:9853/t/wso2.com/identity/metadata/saml2";
public static final String SAML_SSO_URL_SUPER_TENANT = "https://localhost:9853/samlsso";
public static final String SAML_SSO_URL_TENANT = "https://localhost:9853/t/wso2.com/samlsso";
public static final String PASSIVE_STS_URL = "https://localhost:9853/passivests";
public static final String PASSIVE_STS_URL_SUPER_TENANT = "https://localhost:9853/passivests";
public static final String PASSIVE_STS_URL_TENANT = "https://localhost:9853/t/wso2.com/passivests";

public static final String PATH_SEPARATOR = "/";
public static final String SAMPLE_AUTHENTICATOR_ID = "QmFzaWNBdXRoZW50aWNhdG9y";
Expand Down

0 comments on commit d246d80

Please sign in to comment.