Skip to content

Commit

Permalink
remove duplicate commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay-Topher committed Oct 24, 2023
1 parent f3f854c commit 703df95
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,12 @@ jobs:
spec: "cypress/e2e/no-users/**/*.spec.ts"
wait-on: "${{env.MAAS_URL}}/MAAS/r/machines"
- name: Create MAAS admin
run: |
sudo maas createadmin --username=admin --password=test [email protected]
maas login admin http://127.0.0.1:5240/MAAS/api/2.0/ < $(maas apikey --username=admin)
while [ $(maas image boot-resources is-importing | cat) == "true" ]; do sleep 10; done; echo "syncing finished"
run: sudo maas createadmin --username=admin --password=test [email protected]
- name: Create MAAS non-admin user
run: |
export API_KEY=`sudo maas apikey --username=admin`
maas login admin http://localhost:5240/MAAS $API_KEY
while [ $(maas admin boot-resources is-importing | cat) == "true" ]; do sleep 10; done; echo "syncing finished"
maas admin users create username=user password=test [email protected] is_superuser=0
- name: Run Cypress tests with a user
uses: cypress-io/github-action@v4
Expand Down

0 comments on commit 703df95

Please sign in to comment.