-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f3f854c
commit 703df95
Showing
1 changed file
with
2 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|