Unify approach for WebAuthn tests (#29781)

Closes #29780

Signed-off-by: Martin Bartoš <mabartos@redhat.com>
This commit is contained in:
Martin Bartoš 2024-05-30 14:21:27 +02:00 committed by GitHub
parent 1e4ccf24bc
commit 3f49036192
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
60 changed files with 7 additions and 15 deletions

View file

@ -693,14 +693,11 @@ jobs:
name: Integration test setup name: Integration test setup
uses: ./.github/actions/integration-test-setup uses: ./.github/actions/integration-test-setup
# Don't use Chrome for testing (just regular Chrome) until https://github.com/keycloak/keycloak/issues/22214 is resolved
#- id: install-chrome
# name: Install Chrome browser
# uses: ./.github/actions/install-chrome
# if: matrix.browser == 'chrome'
- name: Run WebAuthn IT - name: Run WebAuthn IT
run: ./mvnw test ${{ env.SUREFIRE_RETRY }} -Pauth-server-quarkus -Dtest=org.keycloak.testsuite.webauthn.**.*Test -Dbrowser=${{ matrix.browser }} "-Dwebdriver.chrome.driver=$CHROMEWEBDRIVER/chromedriver" "-Dwebdriver.gecko.driver=$GECKOWEBDRIVER/geckodriver" -Pwebauthn -f testsuite/integration-arquillian/tests/other/pom.xml 2>&1 | misc/log/trimmer.sh run: |
TESTS=`testsuite/integration-arquillian/tests/base/testsuites/suite.sh webauthn`
echo "Tests: $TESTS"
./mvnw test ${{ env.SUREFIRE_RETRY }} -Pauth-server-quarkus -Dtest=$TESTS -Dbrowser=${{ matrix.browser }} "-Dwebdriver.chrome.driver=$CHROMEWEBDRIVER/chromedriver" "-Dwebdriver.gecko.driver=$GECKOWEBDRIVER/geckodriver" -pl testsuite/integration-arquillian/tests/base 2>&1 | misc/log/trimmer.sh
- name: Upload JVM Heapdumps - name: Upload JVM Heapdumps
if: always() if: always()

View file

@ -18,7 +18,6 @@
package org.keycloak.testsuite.webauthn.registration; package org.keycloak.testsuite.webauthn.registration;
import com.webauthn4j.data.UserVerificationRequirement; import com.webauthn4j.data.UserVerificationRequirement;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.keycloak.testsuite.arquillian.annotation.IgnoreBrowserDriver; import org.keycloak.testsuite.arquillian.annotation.IgnoreBrowserDriver;
import org.keycloak.testsuite.util.WaitUtils; import org.keycloak.testsuite.util.WaitUtils;

View file

@ -45,5 +45,6 @@ user,4
util,4 util,4
validation,6 validation,6
vault,4 vault,4
webauthn,IGNORED
welcomepage,6 welcomepage,6
x509,4 x509,4

View file

@ -0,0 +1 @@
org.keycloak.testsuite.webauthn.**

View file

@ -142,12 +142,6 @@
<module>sssd</module> <module>sssd</module>
</modules> </modules>
</profile> </profile>
<profile>
<id>webauthn</id>
<modules>
<module>webauthn</module>
</modules>
</profile>
</profiles> </profiles>
</project> </project>