Skip to content

Commit

Permalink
EPA-145: Update XML template for PU
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrichner-oviva committed Oct 11, 2024
1 parent 49d9de7 commit fefada1
Showing 1 changed file with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@

class RegistratonFormRendererTest {

@Test
void render_PU() throws JOSEException {
var key = getKey();
var xml =
RegistratonFormRenderer.render(
new Model(
"VFS_DiGA_Test",
"FDmyDiGAMemb",
"My DiGA",
"bobby.tables@example.com",
URI.create("https://mydiga.example.com"),
PU,
List.of(Scope.INSURED_PERSON, Scope.EMAIL, Scope.DISPLAY_NAME),
new JWKSet(key)));
@Test
void render_PU() throws JOSEException {
var key = getKey();
var xml =
RegistratonFormRenderer.render(
new Model(
"VFS_DiGA_Test",
"FDmyDiGAMemb",
"My DiGA",
"bobby.tables@example.com",
URI.create("https://mydiga.example.com"),
PU,
List.of(Scope.INSURED_PERSON, Scope.EMAIL, Scope.DISPLAY_NAME),
new JWKSet(key)));

assertEquals(
"""
Expand Down Expand Up @@ -64,7 +64,7 @@ void render_PU() throws JOSEException {
</registrierungtifoederation>
""",
xml);
}
}

@Test
void render_TU() throws JOSEException {
Expand Down

0 comments on commit fefada1

Please sign in to comment.