-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
376 changed files
with
4,023 additions
and
4,982 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
--- | ||
|
||
name: Interoperability | ||
|
||
on: # yamllint disable-line rule:truthy | ||
push: | ||
branches: ['**'] | ||
paths-ignore: | ||
- '**.md' | ||
- '**.yml' | ||
pull_request: | ||
branches: [master, release-*] | ||
paths-ignore: | ||
- '**.md' | ||
- '**.yml' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
edugain: | ||
name: "Interoperability tests, PHP ${{ matrix.php-versions }}, ${{ matrix.operating-system }}" | ||
runs-on: ${{ matrix.operating-system }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
operating-system: [ubuntu-latest] | ||
php-versions: ['8.2'] | ||
|
||
steps: | ||
- name: Setup PHP, with composer and extensions | ||
# https://github.com/shivammathur/setup-php | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: ctype, date, dom, hash, mbstring, openssl, pcre, spl, xml | ||
tools: composer:v2 | ||
ini-values: error_reporting=E_ALL, memory_limit=-1 | ||
coverage: none | ||
|
||
- name: Setup problem matchers for PHP | ||
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json" | ||
|
||
- name: Setup problem matchers for PHPUnit | ||
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | ||
|
||
- name: Set git to use LF | ||
run: | | ||
git config --global core.autocrlf false | ||
git config --global core.eol lf | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Cache composer dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: $(composer config cache-files-dir) | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
|
||
- name: Validate composer.json and composer.lock | ||
run: composer validate | ||
|
||
- name: Install Composer dependencies | ||
run: composer install --no-progress --prefer-dist --optimize-autoloader | ||
|
||
- name: Get current date | ||
id: date | ||
run: | | ||
echo "{date}={$(date +'%Y-%m-%d')}" >> "$GITHUB_STATE" | ||
- name: Cache metadata | ||
id: cache-metadata | ||
uses: actions/cache@v4 | ||
with: | ||
path: /tmp/metadata | ||
key: ${{ runner.os }}-metadata-${{ env.date }} | ||
restore-keys: ${{ runner.os }}-metadata- | ||
|
||
- name: Download eduGAIN metadata & public key | ||
if: steps.cache-metadata.outputs.cache-hit != 'true' | ||
run: | | ||
mkdir -p /tmp/metadata | ||
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: Download MicrosoftOnline metadata | ||
if: steps.cache-metadata.outputs.cache-hit != 'true' | ||
run: | | ||
mkdir -p /tmp/metadata | ||
wget https://nexus.microsoftonline-p.com/federationmetadata/saml20/federationmetadata.xml \ | ||
-O /tmp/metadata/microsoftonline.xml | ||
- name: Run unit tests | ||
run: | | ||
./vendor/bin/phpunit -c phpunit-interoperability.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^PHPDoc tag @var for property SimpleSAML\\\\Test\\\\SAML2\\\\Assertion\\\\Transformer\\\\NameIdDecryptionTransformerTest\\:\\:\\$validator with type SimpleSAML\\\\SAML2\\\\Response\\\\Validation\\\\Validator is incompatible with native type SimpleSAML\\\\SAML2\\\\Signature\\\\Validator\\.$#" | ||
count: 1 | ||
path: tests/SAML2/Assertion/Transformer/NameIdDecryptionTransformerTest.php | ||
|
||
- | ||
message: "#^Unreachable statement \\- code above always terminates\\.$#" | ||
count: 2 | ||
path: tests/SAML2/Assertion/Transformer/NameIdDecryptionTransformerTest.php | ||
|
||
- | ||
message: "#^PHPDoc tag @var for property SimpleSAML\\\\Test\\\\SAML2\\\\Assertion\\\\Validation\\\\AssertionValidatorTest\\:\\:\\$validator with type SimpleSAML\\\\SAML2\\\\Response\\\\Validation\\\\Validator is incompatible with native type SimpleSAML\\\\SAML2\\\\Signature\\\\Validator\\.$#" | ||
count: 1 | ||
path: tests/SAML2/Assertion/Validation/AssertionValidatorTest.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$xml of static method SimpleSAML\\\\SAML2\\\\XML\\\\saml\\\\Assertion\\:\\:fromXML\\(\\) expects DOMElement, DOMNode\\|null given\\.$#" | ||
count: 2 | ||
path: tests/SAML2/Assertion/Validation/AssertionValidatorTest.php | ||
|
||
- | ||
message: "#^Result of method SimpleSAML\\\\SAML2\\\\Assertion\\\\Processor\\:\\:validateAssertion\\(\\) \\(void\\) is used\\.$#" | ||
count: 2 | ||
path: tests/SAML2/Assertion/Validation/AssertionValidatorTest.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$serviceProvider of method SimpleSAML\\\\SAML2\\\\Assertion\\\\Validation\\\\ConstraintValidator\\\\SpIsValidAudience\\:\\:setServiceProvider\\(\\) expects SimpleSAML\\\\SAML2\\\\Configuration\\\\ServiceProvider, Mockery\\\\MockInterface given\\.$#" | ||
count: 3 | ||
path: tests/SAML2/Assertion/Validation/ConstraintValidator/SpIsValidAudienceTest.php | ||
|
||
- | ||
message: "#^Call to an undefined method Mockery\\\\ExpectationInterface\\|Mockery\\\\HigherOrderMessage\\:\\:andReturnNull\\(\\)\\.$#" | ||
count: 2 | ||
path: tests/SAML2/Assertion/Validation/ConstraintValidator/SubjectConfirmationResponseToMatchesTest.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$response of class SimpleSAML\\\\SAML2\\\\Assertion\\\\Validation\\\\ConstraintValidator\\\\SubjectConfirmationResponseToMatches constructor expects SimpleSAML\\\\SAML2\\\\XML\\\\samlp\\\\Response, Mockery\\\\MockInterface given\\.$#" | ||
count: 5 | ||
path: tests/SAML2/Assertion/Validation/ConstraintValidator/SubjectConfirmationResponseToMatchesTest.php | ||
|
||
- | ||
message: "#^PHPDoc tag @var for property SimpleSAML\\\\Test\\\\SAML2\\\\XML\\\\saml\\\\SubjectConfirmationValidatorTest\\:\\:\\$validator with type SimpleSAML\\\\SAML2\\\\Response\\\\Validation\\\\Validator is incompatible with native type SimpleSAML\\\\SAML2\\\\Signature\\\\Validator\\.$#" | ||
count: 1 | ||
path: tests/SAML2/Assertion/Validation/SubjectConfirmationValidatorTest.php | ||
|
||
- | ||
message: "#^Result of method SimpleSAML\\\\SAML2\\\\Assertion\\\\Processor\\:\\:validateAssertion\\(\\) \\(void\\) is used\\.$#" | ||
count: 1 | ||
path: tests/SAML2/Assertion/Validation/SubjectConfirmationValidatorTest.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$element of method SimpleSAML\\\\SAML2\\\\Certificate\\\\KeyCollection\\:\\:add\\(\\) expects SimpleSAML\\\\SAML2\\\\Certificate\\\\Key, string given\\.$#" | ||
count: 1 | ||
path: tests/SAML2/Certificate/KeyCollectionTest.php | ||
|
||
- | ||
message: "#^Call to an undefined method Mockery\\\\ExpectationInterface\\|Mockery\\\\HigherOrderMessage\\:\\:atMost\\(\\)\\.$#" | ||
count: 2 | ||
path: tests/SAML2/Certificate/KeyLoaderTest.php | ||
|
||
- | ||
message: "#^Call to an undefined method Mockery\\\\ExpectationInterface\\|Mockery\\\\HigherOrderMessage\\:\\:once\\(\\)\\.$#" | ||
count: 1 | ||
path: tests/SAML2/Certificate/KeyLoaderTest.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$config of method SimpleSAML\\\\SAML2\\\\Certificate\\\\KeyLoader\\:\\:loadKeysFromConfiguration\\(\\) expects SimpleSAML\\\\SAML2\\\\Configuration\\\\CertificateProvider, Mockery\\\\MockInterface given\\.$#" | ||
count: 3 | ||
path: tests/SAML2/Certificate/KeyLoaderTest.php | ||
|
||
- | ||
message: "#^Call to an undefined method Mockery\\\\ExpectationInterface\\|Mockery\\\\HigherOrderMessage\\:\\:once\\(\\)\\.$#" | ||
count: 8 | ||
path: tests/SAML2/Response/SignatureValidationTest.php | ||
|
||
- | ||
message: "#^Call to method shouldReceive\\(\\) on an unknown class alias\\:SimpleSAML\\\\SAML2\\\\Assertion\\\\ProcessorBuilder\\.$#" | ||
count: 1 | ||
path: tests/SAML2/Response/SignatureValidationTest.php | ||
|
||
- | ||
message: "#^Call to an undefined method Mockery\\\\ExpectationInterface\\|Mockery\\\\HigherOrderMessage\\:\\:once\\(\\)\\.$#" | ||
count: 2 | ||
path: tests/SAML2/Response/Validation/ConstraintValidator/DestinationMatchesTest.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$response of method SimpleSAML\\\\SAML2\\\\Response\\\\Validation\\\\ConstraintValidator\\\\DestinationMatches\\:\\:validate\\(\\) expects SimpleSAML\\\\SAML2\\\\XML\\\\samlp\\\\Response, Mockery\\\\MockInterface given\\.$#" | ||
count: 2 | ||
path: tests/SAML2/Response/Validation/ConstraintValidator/DestinationMatchesTest.php | ||
|
||
- | ||
message: "#^Call to an undefined method Mockery\\\\ExpectationInterface\\|Mockery\\\\HigherOrderMessage\\:\\:once\\(\\)\\.$#" | ||
count: 3 | ||
path: tests/SAML2/Response/Validation/ConstraintValidator/IsSuccessfulTest.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$response of method SimpleSAML\\\\SAML2\\\\Response\\\\Validation\\\\ConstraintValidator\\\\IsSuccessful\\:\\:validate\\(\\) expects SimpleSAML\\\\SAML2\\\\XML\\\\samlp\\\\Response, Mockery\\\\MockInterface given\\.$#" | ||
count: 2 | ||
path: tests/SAML2/Response/Validation/ConstraintValidator/IsSuccessfulTest.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$xml of static method SimpleSAML\\\\SAML2\\\\XML\\\\saml\\\\Assertion\\:\\:fromXML\\(\\) expects DOMElement, DOMNode\\|null given\\.$#" | ||
count: 2 | ||
path: tests/SAML2/Response/XmlSignatureWrappingTest.php |
Oops, something went wrong.