Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rmiccoli committed Jul 1, 2022
1 parent a9177ca commit 1a5802d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
@IamMockMvcIntegrationTest
@TestPropertySource(properties = {
// @formatter:off
"iam.host=example.org",
"iam.aarc-profile.urn-namespace=projectescape.eu",
"iam.aarc-profile.urn-subnamespaces=sub mission",
// @formatter:on
Expand Down Expand Up @@ -81,7 +80,7 @@ public void testEmptyGroupsUrnEncode() {
@Test
public void testGroupUrnEncode() {

String s = "urn:geant:projectescape.eu:sub:mission:group:test#example.org";
String s = "urn:geant:projectescape.eu:sub:mission:group:test";

IamGroup g = new IamGroup();
g.setName("test");
Expand All @@ -98,9 +97,9 @@ public void testGroupUrnEncode() {
@Test
public void testGroupHierarchyUrnEncode() {

String parentUrn = "urn:geant:projectescape.eu:sub:mission:group:parent#example.org";
String childUrn = "urn:geant:projectescape.eu:sub:mission:group:parent:child#example.org";
String grandchildUrn = "urn:geant:projectescape.eu:sub:mission:group:parent:child:grandchild#example.org";
String parentUrn = "urn:geant:projectescape.eu:sub:mission:group:parent";
String childUrn = "urn:geant:projectescape.eu:sub:mission:group:parent:child";
String grandchildUrn = "urn:geant:projectescape.eu:sub:mission:group:parent:child:grandchild";

IamGroup parent = new IamGroup();
parent.setName("parent");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ public class AarcProfileIntegrationTests extends EndpointsTestUtils {
private static final String USERNAME = "test";
private static final String PASSWORD = "password";

private static final String URN_GROUP_ANALYSIS = "urn:geant:iam.example:group:Analysis#example.org";
private static final String URN_GROUP_PRODUCTION = "urn:geant:iam.example:group:Production#example.org";
private static final String URN_GROUP_ANALYSIS = "urn:geant:iam.example:group:Analysis";
private static final String URN_GROUP_PRODUCTION = "urn:geant:iam.example:group:Production";

private static final String ASSURANCE = "https://refeds.org/assurance/IAP/low";

Expand Down

0 comments on commit 1a5802d

Please sign in to comment.