From 530048ad13bad522b1bc515501c0064d38ea41e7 Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Tue, 8 Oct 2024 16:13:34 +0200 Subject: [PATCH] Move interoperability-test to adfs-module --- .github/workflows/interoperability.yml | 80 ------------------- phpunit-interoperability.xml | 8 -- tests/InterOperability/DefinitionsTest.php | 53 ------------ tests/resources/interoperability/adfs_mex.xml | 1 - 4 files changed, 142 deletions(-) delete mode 100644 .github/workflows/interoperability.yml delete mode 100644 phpunit-interoperability.xml delete mode 100644 tests/InterOperability/DefinitionsTest.php delete mode 100644 tests/resources/interoperability/adfs_mex.xml diff --git a/.github/workflows/interoperability.yml b/.github/workflows/interoperability.yml deleted file mode 100644 index c0d376e3..00000000 --- a/.github/workflows/interoperability.yml +++ /dev/null @@ -1,80 +0,0 @@ ---- - -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: Run unit tests - run: | - ./vendor/bin/phpunit -c phpunit-interoperability.xml diff --git a/phpunit-interoperability.xml b/phpunit-interoperability.xml deleted file mode 100644 index ebfec763..00000000 --- a/phpunit-interoperability.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - ./tests/InterOperability - - - diff --git a/tests/InterOperability/DefinitionsTest.php b/tests/InterOperability/DefinitionsTest.php deleted file mode 100644 index d8fddd2f..00000000 --- a/tests/InterOperability/DefinitionsTest.php +++ /dev/null @@ -1,53 +0,0 @@ -assertTrue($shouldPass); - } catch (Exception $e) { - fwrite(STDERR, $e->getFile() . '(' . strval($e->getLine()) . '):' . $e->getMessage()); - fwrite(STDERR, $e->getTraceAsString()); - $this->assertFalse($shouldPass); - } - } - - - /** - * @return array - */ - public static function provideMex(): array - { - return [ - 'MicrosoftAdfs' => [ - true, - DOMDocumentFactory::fromFile( - dirname(__FILE__, 2) . '/resources/interoperability/adfs_mex.xml', - )->documentElement, - ], - ]; - } -} diff --git a/tests/resources/interoperability/adfs_mex.xml b/tests/resources/interoperability/adfs_mex.xml deleted file mode 100644 index 425e90f8..00000000 --- a/tests/resources/interoperability/adfs_mex.xml +++ /dev/null @@ -1 +0,0 @@ -http://schemas.xmlsoap.org/ws/2005/02/trust/PublicKeyhttp://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1phttp://www.w3.org/2000/09/xmldsig#rsa-sha1http://www.w3.org/2001/10/xml-exc-c14n#http://www.w3.org/2001/04/xmlenc#aes256-cbchttp://schemas.xmlsoap.org/ws/2005/02/trust/SymmetricKey256http://www.w3.org/2001/04/xmlenc#aes256-cbchttp://www.w3.org/2000/09/xmldsig#hmac-sha1http://www.w3.org/2001/10/xml-exc-c14n#http://www.w3.org/2001/04/xmlenc#aes256-cbchttp://docs.oasis-open.org/ws-sx/ws-trust/200512/PublicKeyhttp://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1phttp://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1phttp://www.w3.org/2000/09/xmldsig#rsa-sha1http://www.w3.org/2001/10/xml-exc-c14n#http://www.w3.org/2001/04/xmlenc#aes256-cbchttp://docs.oasis-open.org/ws-sx/ws-trust/200512/SymmetricKey256http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1phttp://www.w3.org/2001/04/xmlenc#aes256-cbchttp://www.w3.org/2000/09/xmldsig#hmac-sha1http://www.w3.org/2001/10/xml-exc-c14n#http://www.w3.org/2001/04/xmlenc#aes256-cbchttps://adfs.example.org/adfs/services/trust/2005/certificatemixedhttps://certauth.adfs.example.org/adfs/services/trust/2005/certificatetransporthttps://adfs.example.org/adfs/services/trust/2005/usernamemixedhttps://adfs.example.org/adfs/services/trust/2005/issuedtokenmixedasymmetricbasic256https://adfs.example.org/adfs/services/trust/2005/issuedtokenmixedsymmetricbasic256https://adfs.example.org/adfs/services/trust/13/certificatemixedhttps://adfs.example.org/adfs/services/trust/13/usernamemixedhttps://adfs.example.org/adfs/services/trust/13/issuedtokenmixedasymmetricbasic256https://adfs.example.org/adfs/services/trust/13/issuedtokenmixedsymmetricbasic256