From 703df95542939c4f1011df7d374a904ce8a2bb87 Mon Sep 17 00:00:00 2001 From: Jones Ogolo Date: Tue, 24 Oct 2023 09:54:58 +0100 Subject: [PATCH] remove duplicate commands --- .github/workflows/cypress.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 6f591ade5b..390e726087 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -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=fake@example.org - 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=fake@example.org - 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=fake-user@example.org is_superuser=0 - name: Run Cypress tests with a user uses: cypress-io/github-action@v4