Skip to content

Commit

Permalink
Add GRNET metadata to the interoperability-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Jul 14, 2023
1 parent cae2604 commit ff32283
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/interoperability.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
run: |
echo "{date}={$(date +'%Y-%m-%d')}" >> "$GITHUB_STATE"
- name: Cache eduGAIN metadata
- name: Cache metadata
id: cache-metadata
uses: actions/cache@v3
with:
Expand All @@ -81,6 +81,13 @@ jobs:
wget https://mds.edugain.org/edugain-v2.xml -O /tmp/metadata/edugain.xml
wget https://technical.edugain.org/mds-v2.cer -O /tmp/metadataedugain-pub.crt
- name: Download GRNET metadata
if: steps.cache-metadata.outputs.cache-hit != 'true'
run: |
mkdir -p /tmp/metadata
wget https://md.aai.grnet.gr/aggregates/grnet-metadata.xml -O /tmp/metadata/grnet.xml
- name: Run unit tests
run: |
./vendor/bin/phpunit -c phpunit-interoperability.xml
4 changes: 4 additions & 0 deletions tests/InterOperability/EntitiesDescriptorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ public static function provideMetadata(): array
true,
DOMDocumentFactory::fromFile('/tmp/metadata/edugain.xml')->documentElement,
],
'GRNET' => [
true,
DOMDocumentFactory::fromFile('/tmp/metadata/grnet.xml')->documentElement,
],
];
}
}
2 changes: 1 addition & 1 deletion tests/resources/xml/mdattr_EntityAttributes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<saml:AttributeValue>really</saml:AttributeValue>
<saml:AttributeValue>cool</saml:AttributeValue>
</saml:Attribute>
<saml:Assertion xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" ID="_93af655219464fb403b34436cfb0c5cb1d9a5502" IssueInstant="2022-10-16T22:51:18Z" Version="2.0">
<saml:Assertion xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="_93af655219464fb403b34436cfb0c5cb1d9a5502" IssueInstant="2022-10-16T22:51:18Z" Version="2.0">
<saml:Issuer>testIssuer</saml:Issuer>
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:SignedInfo>
Expand Down

0 comments on commit ff32283

Please sign in to comment.