Skip to content

Commit

Permalink
fix ci typo
Browse files Browse the repository at this point in the history
  • Loading branch information
henrywang committed Jan 2, 2024
1 parent 254df4e commit 410a85d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/fdo-fb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
15 changes: 14 additions & 1 deletion fido-test/fdo-postgres.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,24 @@ 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"

sudo podman exec \
postgres \
psql \
--username="${POSTGRES_USERNAME}" \
-c "SELECT * FROM manufacturer_vouchers ;"

rm -rf initdb
exit 0

0 comments on commit 410a85d

Please sign in to comment.