Skip to content

Commit

Permalink
Refactor test/asset names
Browse files Browse the repository at this point in the history
  • Loading branch information
niwsa committed Nov 13, 2023
1 parent eaa456e commit cb1c40f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/lib/validateSignature.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const authnXPath =
const identifierFormat = 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress';
const providerName = 'BoxyHQ';

const validResponseWithMultiCertsMetadata = fs
.readFileSync('./test/assets/saml20.validResponse.multicertsMetadata.xml')
const validResponseSigned_noX509 = fs
.readFileSync('./test/assets/saml20.validResponseSigned-noX509.xml')
.toString();

const multiPublicKey = `MIIDczCCAlugAwIBAgIUE4RU7Pwiw58ZifnjQOXVg6ytNWowDQYJKoZIhvcNAQEL
Expand Down Expand Up @@ -123,8 +123,8 @@ describe('validateSignature.ts', function () {
expect(validateSignature(generateXML(), publicKey, null)).to.be.ok;
});

it('validate Response signature multicert metadata', function () {
const value = validateSignature(validResponseWithMultiCertsMetadata, multiPublicKey, null);
it('validate response signature - no embedded cert, use multikey cert to validate', function () {
const value = validateSignature(validResponseSigned_noX509, multiPublicKey, null);
expect(value).to.be.ok;
});

Expand Down

0 comments on commit cb1c40f

Please sign in to comment.