diff --git a/pass-core-main/pom.xml b/pass-core-main/pom.xml index b86cf335..f60b849f 100644 --- a/pass-core-main/pom.xml +++ b/pass-core-main/pom.xml @@ -202,6 +202,13 @@ okhttp-urlconnection test + + + org.eclipse.pass + pass-core-test-config + ${project.parent.version} + test + diff --git a/pass-core-test-config/pom.xml b/pass-core-test-config/pom.xml new file mode 100644 index 00000000..764d8204 --- /dev/null +++ b/pass-core-test-config/pom.xml @@ -0,0 +1,12 @@ + + 4.0.0 + + + org.eclipse.pass + pass-core + 1.13.0-SNAPSHOT + + + pass-core-test-config + + diff --git a/pass-core-main/src/test/resources/application-test.yml b/pass-core-test-config/src/main/resources/application-test.yml similarity index 76% rename from pass-core-main/src/test/resources/application-test.yml rename to pass-core-test-config/src/main/resources/application-test.yml index 2bbce084..801e3599 100644 --- a/pass-core-main/src/test/resources/application-test.yml +++ b/pass-core-test-config/src/main/resources/application-test.yml @@ -3,7 +3,7 @@ elide: aggregation-store: enabled: false -PASS_TEST_RESC_PATH: ${user.dir}/src/test/resources +PASS_SAML_PATH: "classpath:" spring: application: @@ -28,16 +28,16 @@ spring: entity-id: https://sp.pass/shibboleth signing: credentials: - - private-key-location: file:${PASS_TEST_RESC_PATH}/saml2/sp-key.pem - certificate-location: file:${PASS_TEST_RESC_PATH}/saml2/sp-cert.pem + - private-key-location: ${PASS_SAML_PATH}/saml2/sp-key.pem + certificate-location: ${PASS_SAML_PATH}/saml2/sp-cert.pem decryption: credentials: - - private-key-location: file:${PASS_TEST_RESC_PATH}/saml2/sp-key.pem - certificate-location: file:${PASS_TEST_RESC_PATH}/saml2/sp-cert.pem + - private-key-location: ${PASS_SAML_PATH}/saml2/sp-key.pem + certificate-location: ${PASS_SAML_PATH}/saml2/sp-cert.pem acs: location: "{baseUrl}/login/saml2/sso/{registrationId}" assertingparty: - metadata-uri: file:${PASS_TEST_RESC_PATH}/saml2/idp-metadata.xml + metadata-uri: ${PASS_SAML_PATH}/saml2/idp-metadata.xml user: name: backend password: moo diff --git a/pass-core-main/src/test/resources/saml2/idp-metadata.xml b/pass-core-test-config/src/main/resources/saml2/idp-metadata.xml similarity index 100% rename from pass-core-main/src/test/resources/saml2/idp-metadata.xml rename to pass-core-test-config/src/main/resources/saml2/idp-metadata.xml diff --git a/pass-core-main/src/test/resources/saml2/sp-cert.pem b/pass-core-test-config/src/main/resources/saml2/sp-cert.pem similarity index 100% rename from pass-core-main/src/test/resources/saml2/sp-cert.pem rename to pass-core-test-config/src/main/resources/saml2/sp-cert.pem diff --git a/pass-core-main/src/test/resources/saml2/sp-key.pem b/pass-core-test-config/src/main/resources/saml2/sp-key.pem similarity index 100% rename from pass-core-main/src/test/resources/saml2/sp-key.pem rename to pass-core-test-config/src/main/resources/saml2/sp-key.pem diff --git a/pom.xml b/pom.xml index 021f9629..f9931754 100644 --- a/pom.xml +++ b/pom.xml @@ -63,6 +63,7 @@ pass-core-metadataschema-service pass-core-policy-service pass-core-usertoken + pass-core-test-config @@ -304,7 +305,9 @@ org.eclipse.pass:pass-core-policy-service: org.eclipse.pass:pass-core-metadataschema-service: - org.apache.activemq:artemis-jakarta-server: + org.apache.activemq:artemis-jakarta-server: + + org.eclipse.pass:pass-core-test-config::