Skip to content

Commit

Permalink
add check to make sure image is synced fully
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay-Topher committed Oct 24, 2023
1 parent 9a92dc0 commit f3f854c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ 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]
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"
- name: Create MAAS non-admin user
run: |
export API_KEY=`sudo maas apikey --username=admin`
Expand Down

0 comments on commit f3f854c

Please sign in to comment.