Skip to content

Commit

Permalink
SHIBUI-2380
Browse files Browse the repository at this point in the history
unit test (envers) fix
  • Loading branch information
chasegawa committed Sep 29, 2022
1 parent 5c1fd76 commit 45a5c31
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import edu.internet2.tier.shibboleth.admin.ui.domain.XSString
import edu.internet2.tier.shibboleth.admin.ui.domain.frontend.AssertionConsumerServiceRepresentation
import edu.internet2.tier.shibboleth.admin.ui.domain.frontend.ContactRepresentation
import edu.internet2.tier.shibboleth.admin.ui.domain.frontend.EntityDescriptorRepresentation
import edu.internet2.tier.shibboleth.admin.ui.domain.frontend.KeyDescriptorRepresentation
import edu.internet2.tier.shibboleth.admin.ui.domain.frontend.LogoutEndpointRepresentation
import edu.internet2.tier.shibboleth.admin.ui.domain.frontend.MduiRepresentation
import edu.internet2.tier.shibboleth.admin.ui.domain.frontend.OrganizationRepresentation
Expand Down Expand Up @@ -380,8 +381,7 @@ class EntityDescriptorEnversVersioningTests extends Specification {
def representation = new EntityDescriptorRepresentation().with {
it.securityInfo = new SecurityInfoRepresentation().with {
it.authenticationRequestsSigned = true
it.x509CertificateAvailable = true
it.x509Certificates = [new SecurityInfoRepresentation.X509CertificateRepresentation(name: 'sign', type: 'signing', value: 'signingValue')]
it.keyDescriptors = [new KeyDescriptorRepresentation(name: 'sign', type: 'signing', value: 'signingValue', elementType: 'X509Data')]
it
}
it
Expand Down Expand Up @@ -411,9 +411,8 @@ class EntityDescriptorEnversVersioningTests extends Specification {
representation = new EntityDescriptorRepresentation().with {
it.securityInfo = new SecurityInfoRepresentation().with {
it.authenticationRequestsSigned = false
it.x509CertificateAvailable = true
it.x509Certificates = [new SecurityInfoRepresentation.X509CertificateRepresentation(name: 'sign', type: 'signing', value: 'signingValue'),
new SecurityInfoRepresentation.X509CertificateRepresentation(name: 'encrypt', type: 'encryption', value: 'encryptionValue')]
it.keyDescriptors = [new KeyDescriptorRepresentation(name: 'sign', type: 'signing', value: 'signingValue', elementType: 'X509Data'),
new KeyDescriptorRepresentation(name: 'encrypt', type: 'encryption', value: 'encryptionValue', elementType: 'X509Data')]
it
}
it
Expand Down Expand Up @@ -655,4 +654,4 @@ class EntityDescriptorEnversVersioningTests extends Specification {
attrs.attributes[1].attributeValues[0].xsStringvalue == 'attr1'
attrs.attributes[1].attributeValues[1] == null
}
}
}

0 comments on commit 45a5c31

Please sign in to comment.