From 1096c6d4fbbbc430ed9948de8acb2270815e7135 Mon Sep 17 00:00:00 2001 From: regexowl Date: Thu, 31 Jul 2025 10:58:05 +0200 Subject: [PATCH] playwright: Add duration to test account creation request There were some changes in Ethel recently, duration currently seems to be a required field. Ethel team works on a fix. Default value for duration is 1 year so I've set it to that. --- .github/workflows/playwright.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 5e6ee70e..d0a3ef0a 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -68,7 +68,7 @@ jobs: export PLAYWRIGHT_USER=image-builder-playwright-$RANDOM export PLAYWRIGHT_PASSWORD=image-builder-playwright-$(uuidgen) # Step 1: Create a new empty account - curl -k -X POST https://account-manager-stage.app.eng.rdu2.redhat.com/account/new -d "{\"username\": \"$PLAYWRIGHT_USER\", \"password\":\"$PLAYWRIGHT_PASSWORD\"}" + curl -k -X POST https://account-manager-stage.app.eng.rdu2.redhat.com/account/new -d "{\"username\": \"$PLAYWRIGHT_USER\", \"password\":\"$PLAYWRIGHT_PASSWORD\", \"duration\":\"1 year\"}" # Step 2: Attach subscriptions to the new account curl -k -X POST https://account-manager-stage.app.eng.rdu2.redhat.com/account/attach \ -d "{\"username\": \"$PLAYWRIGHT_USER\", \"password\":\"$PLAYWRIGHT_PASSWORD\", \"sku\":[\"RH00003\"],\"quantity\": 1}"