From be255218bce565c06ef6228818b7f1c8b80ac84d Mon Sep 17 00:00:00 2001 From: Tomasz Tutka Date: Mon, 16 Sep 2024 09:35:21 +0200 Subject: [PATCH 1/4] modified pom for test module --- equinix-openapi-fabric-tests/pom.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/equinix-openapi-fabric-tests/pom.xml b/equinix-openapi-fabric-tests/pom.xml index 33445bd..bd04f4f 100644 --- a/equinix-openapi-fabric-tests/pom.xml +++ b/equinix-openapi-fabric-tests/pom.xml @@ -13,6 +13,13 @@ 0.0.1 + + 1.8 + ${java.version} + ${java.version} + UTF-8 + + From 26d86cdfebed92e8bb66e566ff6398a5e231d162 Mon Sep 17 00:00:00 2001 From: Tomasz Tutka Date: Mon, 16 Sep 2024 10:42:50 +0200 Subject: [PATCH 2/4] fixed --- .github/workflows/test_runner.yml | 7 ------- .../equinix/openapi/fabric/tests/ConnectionsApiTest.java | 1 + 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/test_runner.yml b/.github/workflows/test_runner.yml index ceabd44..225b35a 100644 --- a/.github/workflows/test_runner.yml +++ b/.github/workflows/test_runner.yml @@ -26,13 +26,6 @@ jobs: run: |- mvn clean test -DenvUrl=${{ env.TEST_HOST_URL }} - - name: Generate report - if: always() - shell: bash - run: |- - cd equinix-openapi-fabric-tests - mvn surefire-report:report -DskipTests - - name: attach report as attachment if: always() uses: actions/upload-artifact@v4 diff --git a/equinix-openapi-fabric-tests/src/test/java/com/equinix/openapi/fabric/tests/ConnectionsApiTest.java b/equinix-openapi-fabric-tests/src/test/java/com/equinix/openapi/fabric/tests/ConnectionsApiTest.java index 1f238c7..7dfdbe5 100644 --- a/equinix-openapi-fabric-tests/src/test/java/com/equinix/openapi/fabric/tests/ConnectionsApiTest.java +++ b/equinix-openapi-fabric-tests/src/test/java/com/equinix/openapi/fabric/tests/ConnectionsApiTest.java @@ -223,6 +223,7 @@ public static Connection createPort2SpConnection() throws ApiException { .getData().stream() .filter(sp -> sp.getState().equals(ServiceProfileStateEnum.ACTIVE)) .filter(sp -> sp.getVisibility().equals(ServiceProfileVisibilityEnum.PUBLIC)) + .filter(sp -> !sp.getAccessPointTypeConfigs().get(0).getServiceProfileAccessPointTypeCOLO().getSupportedBandwidths().isEmpty()) .findAny().get(); UsersItem usersItem = Utils.getUserData(getCurrentUser()); From d14cd56795bacbc2de15700df1d25abd4720c2aa Mon Sep 17 00:00:00 2001 From: Tomasz Tutka Date: Mon, 16 Sep 2024 11:14:37 +0200 Subject: [PATCH 3/4] up --- .github/workflows/test_runner.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/test_runner.yml b/.github/workflows/test_runner.yml index 225b35a..4309ede 100644 --- a/.github/workflows/test_runner.yml +++ b/.github/workflows/test_runner.yml @@ -23,9 +23,17 @@ jobs: - name: Tests shell: bash + working-directory: ./equinix-openapi-fabric-tests run: |- mvn clean test -DenvUrl=${{ env.TEST_HOST_URL }} + - name: Generate report + if: always() + working-directory: ./equinix-openapi-fabric-tests + shell: bash + run: |- + mvn surefire-report:report -DskipTests + - name: attach report as attachment if: always() uses: actions/upload-artifact@v4 From fdfd74c1f5ffce94ebf8aafc668e1975115fbb82 Mon Sep 17 00:00:00 2001 From: Tomasz Tutka Date: Mon, 16 Sep 2024 11:22:07 +0200 Subject: [PATCH 4/4] up --- .github/workflows/test_runner.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_runner.yml b/.github/workflows/test_runner.yml index 4309ede..9de8b6b 100644 --- a/.github/workflows/test_runner.yml +++ b/.github/workflows/test_runner.yml @@ -21,11 +21,16 @@ jobs: distribution: 'temurin' cache: maven + - name: Install modules + shell: bash + run: |- + mvn clean install -DskipTests + - name: Tests shell: bash working-directory: ./equinix-openapi-fabric-tests run: |- - mvn clean test -DenvUrl=${{ env.TEST_HOST_URL }} + mvn test -DenvUrl=${{ env.TEST_HOST_URL }} - name: Generate report if: always()