Skip to content

Commit

Permalink
EPA-145: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrichner-oviva committed Sep 9, 2024
1 parent f311e77 commit 13bcbe3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

public class RegistratonFormRenderer {

// the PU registration XML differs from others
private static final String XML_TEMPLATE_PROD =
"""
<?xml version="1.0" encoding="UTF-8"?>
Expand Down Expand Up @@ -81,12 +82,12 @@ public class RegistratonFormRenderer {
public static String render(Model m) {

return switch (m.environment()) {
case PU -> renderProductive(m);
case PU -> renderProductiveEnvironment(m);
default -> renderTestEnvironment(m);
};
}

private static String renderProductive(Model m) {
private static String renderProductiveEnvironment(Model m) {
return renderTemplate(XML_TEMPLATE_PROD, m);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,7 @@ void read_defaults() {

assertEquals(baseUri, config.federation().iss().toString());
assertEquals(baseUri, config.federation().sub().toString());
assertEquals(
List.of(
"openid",
"urn:telematik:email",
"urn:telematik:versicherter",
"urn:telematik:display_name"),
config.federation().scopes());
assertEquals(List.of("openid", "urn:telematik:versicherter"), config.federation().scopes());

assertNotNull(config.federation().entitySigningKey());
assertNotNull(config.federation().entitySigningKeys().getKeyByKeyId("test-sig"));
Expand Down

0 comments on commit 13bcbe3

Please sign in to comment.