Skip to content

Commit 2867977

Browse files
pradtketvdijencicnavi
authored
Get working with SSPv2 (#160)
Various code changes related to bringing up compatibility with version 2 of SimpleSAMLphp. --------- Co-authored-by: Tim van Dijen <[email protected]> Co-authored-by: Marko Ivančić <[email protected]>
1 parent 776a26f commit 2867977

File tree

233 files changed

+1350
-1326
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

233 files changed

+1350
-1326
lines changed

.github/workflows/test.yaml

Lines changed: 19 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
php-versions: ["7.4"]
16+
php-versions: ["7.4", "8.0", "8.1"]
1717

1818
steps:
1919
- name: Setup PHP, with composer and extensions
@@ -35,14 +35,14 @@ jobs:
3535
git config --global core.autocrlf false
3636
git config --global core.eol lf
3737
38-
- uses: actions/checkout@v2
38+
- uses: actions/checkout@v3
3939

4040
- name: Get composer cache directory
4141
id: composer-cache
4242
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
4343

4444
- name: Cache composer dependencies
45-
uses: actions/cache@v1
45+
uses: actions/cache@v3
4646
with:
4747
path: ${{ steps.composer-cache.outputs.dir }}
4848
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -54,9 +54,6 @@ jobs:
5454
- name: Install Composer dependencies
5555
run: composer install --no-progress --prefer-dist --optimize-autoloader
5656

57-
- name: Syntax check PHP
58-
run: bash vendor/bin/check-syntax-php.sh
59-
6057
- name: Decide whether to run code coverage or not
6158
if: ${{ matrix.php-versions != '7.4' }}
6259
run: |
@@ -90,7 +87,7 @@ jobs:
9087
- name: Setup problem matchers for PHP
9188
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
9289

93-
- uses: actions/checkout@v2
90+
- uses: actions/checkout@v3
9491

9592
- name: Get composer cache directory
9693
id: composer-cache
@@ -131,14 +128,14 @@ jobs:
131128
- name: Setup problem matchers for PHP
132129
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
133130

134-
- uses: actions/checkout@v2
131+
- uses: actions/checkout@v3
135132

136133
- name: Get composer cache directory
137134
id: composer-cache
138135
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
139136

140137
- name: Cache composer dependencies
141-
uses: actions/cache@v1
138+
uses: actions/cache@v3
142139
with:
143140
path: ${{ steps.composer-cache.outputs.dir }}
144141
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -147,12 +144,6 @@ jobs:
147144
- name: Install Composer dependencies
148145
run: composer install --no-progress --prefer-dist --optimize-autoloader
149146

150-
- name: Syntax check YAML / XML / JSON
151-
run: |
152-
bash vendor/bin/check-syntax-yaml.sh
153-
bash vendor/bin/check-syntax-xml.sh
154-
bash vendor/bin/check-syntax-json.sh
155-
156147
quality:
157148
name: Quality control
158149
runs-on: [ubuntu-latest]
@@ -169,14 +160,14 @@ jobs:
169160
- name: Setup problem matchers for PHP
170161
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
171162

172-
- uses: actions/checkout@v2
163+
- uses: actions/checkout@v3
173164

174165
- name: Get composer cache directory
175166
id: composer-cache
176167
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
177168

178169
- name: Cache composer dependencies
179-
uses: actions/cache@v1
170+
uses: actions/cache@v3
180171
with:
181172
path: ${{ steps.composer-cache.outputs.dir }}
182173
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -185,13 +176,13 @@ jobs:
185176
- name: Install Composer dependencies
186177
run: composer install --no-progress --prefer-dist --optimize-autoloader
187178

188-
- uses: actions/download-artifact@v1
179+
- uses: actions/download-artifact@v3
189180
with:
190181
name: build-data
191182
path: ${{ github.workspace }}/build
192183

193184
- name: Codecov
194-
uses: codecov/codecov-action@v1
185+
uses: codecov/codecov-action@v3
195186

196187
- name: PHP Code Sniffer
197188
if: always()
@@ -201,21 +192,19 @@ jobs:
201192
if: always()
202193
run: php vendor/bin/psalm --show-info=true
203194

204-
- name: Psalter
205-
if: always()
206-
run: php vendor/bin/psalter --issues=UnnecessaryVarAnnotation --dry-run
207-
208-
build-conformance-suite:
195+
conformance-suite:
209196
runs-on: ubuntu-latest
210197
env:
211-
VERSION: release-v4.1.11
198+
SUITE_BASE_URL: https://localhost.emobix.co.uk:8443
199+
VERSION: release-v4.1.45
212200
steps:
213-
- name: Load Cached Conformance Suite Build
214-
uses: actions/cache@v2
215-
id: cache
201+
- uses: actions/checkout@v3
216202
with:
217-
path: ./conformance-suite
218-
key: suite-${{ hashFiles('**/test.yml') }}
203+
path: main
204+
- name: Setup Python Dependencies
205+
run: |
206+
pip install --upgrade pip
207+
pip install httpx
219208
- name: Conformance Suite Checkout
220209
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
221210
run: git clone --depth 1 --single-branch --branch $VERSION https://gitlab.com/openid/conformance-suite.git
@@ -228,23 +217,6 @@ jobs:
228217
sed -i -e 's/localhost/localhost.emobix.co.uk/g' src/main/resources/application.properties
229218
sed -i -e 's/-B clean/-B -DskipTests=true/g' builder-compose.yml
230219
docker-compose -f builder-compose.yml run builder
231-
232-
conformance-suite:
233-
runs-on: ubuntu-latest
234-
needs:
235-
- build-conformance-suite
236-
env:
237-
SUITE_BASE_URL: https://localhost.emobix.co.uk:8443
238-
steps:
239-
- uses: actions/checkout@v2
240-
with:
241-
path: main
242-
- name: Load Cached Conformance Suite Build
243-
uses: actions/cache@v2
244-
id: cache
245-
with:
246-
path: ./conformance-suite
247-
key: suite-${{ hashFiles('**/test.yml') }}
248220
- name: Run Conformance Suite
249221
working-directory: ./conformance-suite
250222
run: |

CONFORMANCE_TEST.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Clone the conformance test git repo, build the software and run it.
1515
git clone https://gitlab.com/openid/conformance-suite.git
1616
cd conformance-suite
1717
# Version 4.1.10 has a bug when building
18-
git checkout release-v4.1.9
18+
git checkout release-v4.1.45
1919
MAVEN_CACHE=./m2 docker-compose -f builder-compose.yml run builder
2020
docker-compose up
2121
```

0 commit comments

Comments
 (0)