11
.github/workflows/ci-main.yml
vendored
11
.github/workflows/ci-main.yml
vendored
@ -227,8 +227,17 @@ jobs:
|
|||||||
file: unittest.xml
|
file: unittest.xml
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
test-conformance:
|
test-conformance:
|
||||||
|
name: test-conformance (${{ matrix.job.name }})
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
job:
|
||||||
|
- name: basic
|
||||||
|
glob: tests/openid_conformance/test_basic.py
|
||||||
|
- name: implicit
|
||||||
|
glob: tests/openid_conformance/test_implicit.py
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Setup authentik env
|
- name: Setup authentik env
|
||||||
@ -254,7 +263,7 @@ jobs:
|
|||||||
npm run build:sfe
|
npm run build:sfe
|
||||||
- name: run conformance
|
- name: run conformance
|
||||||
run: |
|
run: |
|
||||||
uv run coverage run manage.py test tests/openid_conformance/test_*
|
uv run coverage run manage.py test ${{ matrix.job.glob }}
|
||||||
uv run coverage xml
|
uv run coverage xml
|
||||||
- if: ${{ always() }}
|
- if: ${{ always() }}
|
||||||
uses: codecov/codecov-action@v5
|
uses: codecov/codecov-action@v5
|
||||||
|
|||||||
@ -8,7 +8,7 @@ from selenium.webdriver.support import expected_conditions as ec
|
|||||||
|
|
||||||
from authentik.blueprints.tests import apply_blueprint, reconcile_app
|
from authentik.blueprints.tests import apply_blueprint, reconcile_app
|
||||||
from authentik.providers.oauth2.models import OAuth2Provider
|
from authentik.providers.oauth2.models import OAuth2Provider
|
||||||
from tests.e2e.utils import SeleniumTestCase, retry
|
from tests.e2e.utils import SeleniumTestCase
|
||||||
from tests.openid_conformance.conformance import Conformance
|
from tests.openid_conformance.conformance import Conformance
|
||||||
|
|
||||||
|
|
||||||
@ -63,42 +63,6 @@ class TestOpenIDConformance(SeleniumTestCase):
|
|||||||
"client_registration": "static_client",
|
"client_registration": "static_client",
|
||||||
}
|
}
|
||||||
|
|
||||||
@retry()
|
|
||||||
def test_oidcc_basic_certification_test(self):
|
|
||||||
test_plan_name = "oidcc-basic-certification-test-plan"
|
|
||||||
self.run_test(test_plan_name, self.test_plan_config)
|
|
||||||
|
|
||||||
@retry()
|
|
||||||
def test_oidcc_implicit_certification_test(self):
|
|
||||||
test_plan_name = "oidcc-implicit-certification-test-plan"
|
|
||||||
self.run_test(test_plan_name, self.test_plan_config)
|
|
||||||
|
|
||||||
# @retry()
|
|
||||||
# def test_oidcc_hybrid_certification_test(self):
|
|
||||||
# test_plan_name = "oidcc-hybrid-certification-test-plan"
|
|
||||||
# self.run_test(test_plan_name, self.test_plan_config)
|
|
||||||
|
|
||||||
# @retry()
|
|
||||||
# def test_oidcc_formpost_basic_certification_test(self):
|
|
||||||
# test_plan_name = "oidcc-formpost-basic-certification-test-plan"
|
|
||||||
# self.run_test(test_plan_name, self.test_plan_config)
|
|
||||||
|
|
||||||
# @retry()
|
|
||||||
# def test_oidcc_formpost_implicit_certification_test(self):
|
|
||||||
# test_plan_name = "oidcc-formpost-implicit-certification-test-plan"
|
|
||||||
# self.run_test(test_plan_name, self.test_plan_config)
|
|
||||||
|
|
||||||
# @retry()
|
|
||||||
# def test_oidcc_formpost_hybrid_certification_test(self):
|
|
||||||
# test_plan_name = "oidcc-formpost-hybrid-certification-test-plan"
|
|
||||||
# self.run_test(test_plan_name, self.test_plan_config)
|
|
||||||
|
|
||||||
# @retry()
|
|
||||||
# def test_oidcc_config_certification_test(self):
|
|
||||||
# test_plan_name = "oidcc-config-certification-test-plan"
|
|
||||||
# self.test_variant = {}
|
|
||||||
# self.run_test(test_plan_name, self.test_plan_config)
|
|
||||||
|
|
||||||
def run_test(self, test_plan: str, test_plan_config: dict):
|
def run_test(self, test_plan: str, test_plan_config: dict):
|
||||||
# Create a Conformance instance...
|
# Create a Conformance instance...
|
||||||
self.conformance = Conformance(f"https://{self.host}:8443/", None, verify_ssl=False)
|
self.conformance = Conformance(f"https://{self.host}:8443/", None, verify_ssl=False)
|
||||||
10
tests/openid_conformance/test_basic.py
Normal file
10
tests/openid_conformance/test_basic.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
from tests.e2e.utils import retry
|
||||||
|
from tests.openid_conformance.base import TestOpenIDConformance
|
||||||
|
|
||||||
|
|
||||||
|
class TestOpenIDConformanceBasic(TestOpenIDConformance):
|
||||||
|
|
||||||
|
@retry()
|
||||||
|
def test_oidcc_basic_certification_test(self):
|
||||||
|
test_plan_name = "oidcc-basic-certification-test-plan"
|
||||||
|
self.run_test(test_plan_name, self.test_plan_config)
|
||||||
10
tests/openid_conformance/test_implicit.py
Normal file
10
tests/openid_conformance/test_implicit.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
from tests.e2e.utils import retry
|
||||||
|
from tests.openid_conformance.base import TestOpenIDConformance
|
||||||
|
|
||||||
|
|
||||||
|
class TestOpenIDConformanceBasic(TestOpenIDConformance):
|
||||||
|
|
||||||
|
@retry()
|
||||||
|
def test_oidcc_basic_certification_test(self):
|
||||||
|
test_plan_name = "oidcc-basic-certification-test-plan"
|
||||||
|
self.run_test(test_plan_name, self.test_plan_config)
|
||||||
Reference in New Issue
Block a user