Skip to content

Commit

Permalink
add local-test.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Gatto <[email protected]>
  • Loading branch information
outscale-mgo committed Feb 29, 2024
1 parent 63046c8 commit bd9f5cd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/others_testacc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: 'stable'
- name: local tests
run: |
wget https://github.com/outscale/osc-ricochet-2/releases/download/v0.2.0/osc-ricochet-2_v0.2.0_x86_64-unknown-linux-musl.tar.gz
tar -xvf osc-ricochet-2_v0.2.0_x86_64-unknown-linux-musl.tar.gz
./ricochet-2 &
./local-test.sh
- name: Build go test
run: make test
env:
Expand Down
12 changes: 12 additions & 0 deletions local-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

export TEST_QUOTA="true"
export OSC_ENDPOINT_API="http://127.0.0.1:3000"
#OUTSCALE_ACCESSKEYID`, `OUTSCALE_SECRETKEYID`, `OUTSCALE_REGION`, `OUTSCALE_ACCOUNT` and `OUTSCALE_IMAGEID
export OUTSCALE_SECRETKEYID="0000001111112222223333334444445555555666"
export OUTSCALE_ACCESSKEYID="11112211111110000000"
export OUTSCALE_REGION="eu-west-2"
export OUTSCALE_IMAGEID="ami-ffffff00"
export OUTSCALE_ACCOUNT="00000000"
set -e
TF_LOG=DEBUG make testacc TESTARGS='-run=TestAccVM_withFlexibleGpuLink_basic'

0 comments on commit bd9f5cd

Please sign in to comment.