WASdev / azure.websphere-traditional.image

Apache License 2.0
1 stars 7 forks source link

Integrate twas-single & twas-cluster integration test into image build pipeline #79

Closed majguo closed 1 year ago

majguo commented 1 year ago

The PR is to integrate twas-single & twas-cluster integration test into image build pipeline, so the private VM image can be tested by deploying it, configuring WAS, installing a sample application and accessing admin console + application before publishing to partner center.

Testing

The following image build workflow runs successfully completed which integrate twas-single & twas-cluster integration test:

Dependency

The PR requires a new GitHub Action secret PERSONAL_ACCESS_TOKEN added to repo WASdev/azure.websphere-traditional.image (github.com), whose value is equal to the one required for triggering workflow run in twas-base / twas-single / twas-cluster, for example:

   PERSONAL_ACCESS_TOKEN=<access-token>
   REPO_NAME=WASdev/azure.websphere-traditional.image
   curl --verbose -X POST -u "WASdev:${PERSONAL_ACCESS_TOKEN}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/${REPO_NAME}/actions/workflows/twas-baseBuild.yml/dispatches --data '{"ref": "main", "inputs": {"imageVersionNumber": "<twas-base-image-version-number>"}}'

Signed-off-by: Jianguo Ma jiangma@microsoft.com