updated postman collection file #22
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: I&T Automated Testing | |
on: | |
push: | |
branches: | |
- 'automated-testing' | |
- '!main' | |
workflow_dispatch: | |
jobs: | |
automated-testing: | |
name: Registry Automated Testing | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout Repository | |
uses: actions/checkout@v4 | |
- | |
name: ☕️ Set up OpenJDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: '11' | |
- | |
name: Download Harvest Binaries | |
id: harvest | |
uses: robinraju/release-downloader@v1.8 | |
with: | |
repository: NASA-PDS/harvest | |
latest: true | |
tarBall: true | |
out-file-path: "${{ runner.temp }}" | |
extract: true | |
# TODO: set fileName to harvest-$tag_name-bin.targ.gz so we only download this file | |
- | |
name: Registry API Testing | |
run: | | |
cd $GITHUB_WORKSPACE/docker/certs | |
./generate-certs.sh | |
cd .. | |
# Build container | |
docker compose \ | |
--ansi never --profile int-registry-batch-loader up --detach --quiet-pull | |
# Run tests | |
docker compose \ | |
--ansi never --profile int-registry-batch-loader \ | |
run --rm --no-TTY reg-api-integration-test-with-wait | |
- | |
name: Harvest Testing | |
run: | | |
tag_name="${{ steps.harvest.outputs.tag_name }}" | |
tag_name="${tag_name#v}" | |
${{ runner.temp }}/harvest-$tag_name/bin/harvest --version | |
# registry#226 As a system, I can support up to 25 simultaneous writes from Harvest | |
# cd $GITHUB_WORKSPACE/docker/scripts | |
# python harvest_stress_test.py --command "harvest_command_here" --runs 25 |