Skip to content

Commit

Permalink
SHIBUI-2267
Browse files Browse the repository at this point in the history
Updated files so that new override is part of the default set


Former-commit-id: ca9f665c66bd3f988cde3262780a483b5b4f4ee2
  • Loading branch information
chasegawa committed Aug 11, 2022
1 parent 0eea6f0 commit 7b4175b
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@
"description": "tooltip.force-authn",
"type": "boolean"
},
"ignoreRequestSignatures": {
"title": "label.ignore-request-signatures",
"description": "tooltip.ignore-request-signatures",
"type": "boolean"
},
"omitNotBefore": {
"title": "label.omit-not-before-condition",
"type": "boolean",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class CustomPropertiesConfigurationTests extends AbstractBaseDataJpaTest {

expect:
ceadService.getAllDefinitions().size() == 0
configUnderTest.getOverrides().size() == 10
configUnderTest.getOverrides().size() == 11

def ca = new CustomEntityAttributeDefinition().with {
it.name = "newDefName"
Expand All @@ -38,7 +38,7 @@ class CustomPropertiesConfigurationTests extends AbstractBaseDataJpaTest {
entityManager.flush()

ceadService.getAllDefinitions().size() == 1
configUnderTest.getOverrides().size() == 11
configUnderTest.getOverrides().size() == 12

def ca2 = new CustomEntityAttributeDefinition().with {
it.name = "newDefName2"
Expand All @@ -51,12 +51,12 @@ class CustomPropertiesConfigurationTests extends AbstractBaseDataJpaTest {
entityManager.flush()

ceadService.getAllDefinitions().size() == 2
configUnderTest.getOverrides().size() == 12
configUnderTest.getOverrides().size() == 13

ceadService.deleteDefinition(ca)
entityManager.flush()

ceadService.getAllDefinitions().size() == 1
configUnderTest.getOverrides().size() == 11
configUnderTest.getOverrides().size() == 12
}
}
3 changes: 3 additions & 0 deletions backend/src/test/resources/entity-descriptor-json-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@
"omitNotBefore": {
"type": "boolean"
},
"ignoreRequestSignatures": {
"type": "boolean"
},
"responderId": {
"type": "string"
},
Expand Down
7 changes: 6 additions & 1 deletion ui/public/assets/schema/filter/entity-attributes.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@
"description": "tooltip.ignore-auth-method",
"type": "boolean"
},
"ignoreRequestSignatures": {
"title": "label.ignore-request-signatures",
"description": "tooltip.ignore-request-signatures",
"type": "boolean"
},
"omitNotBefore": {
"title": "label.omit-not-before-condition",
"description": "tooltip.omit-not-before-condition",
Expand Down Expand Up @@ -178,4 +183,4 @@
}
}
}
}
}
8 changes: 7 additions & 1 deletion ui/public/assets/schema/source/metadata-source.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,12 @@
"type": "boolean",
"default": false
},
"ignoreRequestSignatures": {
"title": "label.ignore-request-signatures",
"description": "tooltip.ignore-request-signatures",
"type": "boolean",
"default": false
},
"useSha": {
"title": "label.use-sha1-signing-algorithm",
"description": "tooltip.usa-sha-algorithm",
Expand Down Expand Up @@ -640,4 +646,4 @@
}
}
}
}
}

0 comments on commit 7b4175b

Please sign in to comment.