From a8ac73e9c6633855215f885111ca666914952bea Mon Sep 17 00:00:00 2001 From: Xiaofeng Wang Date: Tue, 2 Jan 2024 22:04:23 +0800 Subject: [PATCH] fix ci typo --- .github/workflows/fdo-fb.yaml | 4 ++-- fido-test/fdo-postgres.sh | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/fdo-fb.yaml b/.github/workflows/fdo-fb.yaml index 57adb07..c2b3ead 100644 --- a/.github/workflows/fdo-fb.yaml +++ b/.github/workflows/fdo-fb.yaml @@ -12,7 +12,7 @@ jobs: - name: Clone repository uses: actions/checkout@v3 - - name: Checkout db pr + - name: Checkout fdo postgres pr uses: actions/checkout@v3 with: repository: 7flying/fido-device-onboard-rs @@ -24,6 +24,6 @@ jobs: cp fido-test/fdo-postgres.sh fido-device-onboard-rs/test cp fido-test/files/clients fido-device-onboard-rs/test/files - - name: Prepare greenboot + - name: Run fdo-postgres.sh run: test/fdo-postgres.sh working-directory: fido-device-onboard-rs diff --git a/fido-test/fdo-postgres.sh b/fido-test/fdo-postgres.sh index d9fa27d..ff3e43a 100755 --- a/fido-test/fdo-postgres.sh +++ b/fido-test/fdo-postgres.sh @@ -118,11 +118,18 @@ until [ "$(curl -X POST http://${FDO_RENDEZVOUS_ADDRESS}:8082/ping)" == "pong" ] done; greenprint "🔧 Check db tables" -sudo podman run exec \ +sudo podman exec \ postgres \ psql \ --username="${POSTGRES_USERNAME}" \ -c "\dt" +sudo podman run \ + --rm \ + --network edge \ + --privileged \ + localhost/clients \ + fdo-manufacturing-client no-plain-di --insecure --manufacturing-server-url "http://${FDO_MANUFACTURING_ADDRESS}:8080" + rm -rf initdb exit 0