Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaelabalutoiu committed Jul 28, 2023
1 parent 71b334e commit 429c169
Show file tree
Hide file tree
Showing 2 changed files with 1,359 additions and 43 deletions.
63 changes: 20 additions & 43 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ name: Integration Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
- test-e2e-wip

jobs:
garm-cli-test:
Expand Down Expand Up @@ -93,6 +90,13 @@ jobs:
public = true
protocol = "simplestreams"
skip_verify = false
[[github]]
name = "test-credentials"
description = "github token of user test-credentials"
[[github]]
name = "test-credentials-clone"
description = "github token of user test-credentials- clone"
EOF
sudo mv config.toml /etc/garm/config.toml
sudo chown -R garm:garm /etc/garm /var/log/garm
Expand Down Expand Up @@ -128,45 +132,18 @@ jobs:
set -o pipefail
GARM_URL="http://127.0.0.1:9997"
ADMIN_USERNAME='admin'
ADMIN_PASWORD='Ma*jirksiCr9esrT8DGQPrfx*XKnBVZo'
garm-cli init --debug \
--name="local_garm" \
--url $GARM_URL \
--email root@localhost \
--username $ADMIN_USERNAME \
--password $ADMIN_PASWORD
garm-cli profile add --debug \
--name="local_garm_2" \
--url $GARM_URL \
--username $ADMIN_USERNAME \
--password $ADMIN_PASWORD
garm-cli profile login --debug \
--username $ADMIN_USERNAME \
--password $ADMIN_PASWORD
garm-cli metrics-token --debug create
garm-cli provider --debug list
garm-cli profile --debug list
garm-cli runner --debug list --all
garm-cli credentials --debug list
garm-cli job --debug list
garm-cli org --debug list
garm-cli repo --debug list
garm-cli enterprise --debug list
garm-cli pool --debug list --all
GARM_USERNAME='admin'
GARM_PASWORD='Ma*jirksiCr9esrT8DGQPrfx*XKnBVZo'
GARM_FULLNAME='test-fullname'
GARM_EMAIL='test@example.com'
GARM_NAME='local_garm'
CREDENTIALS_NAME='test-credentials'
REPO_WEBHOOK_SECRET="nCtkh2_Rl"
ORG_WEBHOOK_SECRET="EHGA84nYvZg"
go run integration/testing/e2e.go
- name: Show GARM logs
run: |
Expand Down
Loading

0 comments on commit 429c169

Please sign in to comment.