From 4d07ed5d4a2029a8e959e668bd7bd83cb3ef063f Mon Sep 17 00:00:00 2001 From: rathnapandi Date: Mon, 11 Dec 2023 11:31:28 -0700 Subject: [PATCH] - Adopt official APIM docker image #447 --- .github/workflows/integration-test.yml | 2 -- Integration_test_setup.md | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 Integration_test_setup.md diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 8c71a8047..70e9fe174 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -56,8 +56,6 @@ jobs: docker load -i ~/cache-docker/$CACHE_FILE_CASSANDRA - name: Run docker images run: | - pwd - ls -l mkdir licenses echo ${{ secrets.APIM_LIC }} | base64 -di > licenses/apim.lic docker-compose run --rm start_cassandra diff --git a/Integration_test_setup.md b/Integration_test_setup.md new file mode 100644 index 000000000..073e31387 --- /dev/null +++ b/Integration_test_setup.md @@ -0,0 +1,20 @@ + +# Purpose +The project is using Integration-Tests to simulate tasks the API-Developer is doing. That means, creating the API for the first time, doing frequent changes, subscribe with applications, etc. +For that TravisCI is using, which is starting an API-Manager V7.x Docker-Container to perform these integration tests. This document describes the steps to setup Github to run Integration tests. + +## Steps +- Use a license without hostname binding, The license file is used as environment variable on github CI / CD pipeline. To use license file as environment variable, do base64 encodeing + ```bash + base64 -i ~/Downloads/API-7.7-Docker-Temp.lic + + ``` + - Go to Actions secrets and variables on Github page and update variable APIM_LIC +- Create a service account on Amplify and copy client_id and password, the credentials is used to download the docker images from Axway repository. + + - Go to Actions secrets and variables on Github page and update variable + Perform the following steps: + - Update Github variable AXWAY_DOCKER_REG_PASS with client_id + - Update Github variable AXWAY_DOCKER_REG_USER with client_secret + +