From b4dd4d886089820935f2e44deb1b9cbcda3a67ff Mon Sep 17 00:00:00 2001 From: Dani Tseitlin Date: Fri, 27 Sep 2024 16:10:56 +0300 Subject: [PATCH] . --- .github/workflows/ci.yml | 2 +- package.json | 1 + tests/integration/integration.executor.ts | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 77882b2..bd48393 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,7 +40,7 @@ jobs: - name: Setting a Report Portal local reporter run: npm run build && npm run link-pkg - name: Downloading docker compose file - run: npm run download-report-portal-latest-docker-compose-file + run: npm run download-report-portal-docker-compose-file - name: Docker version run: docker -v - name: Setting up a local Report Portal environment diff --git a/package.json b/package.json index 1e7de34..c05b411 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "run-full-unit-tests": "npm run build-local-reporter && npm run unit-tests && npm run unit-retry-tests && npm run unit-no-live-reporting-tests && npm run unit-display-debug-logs-tests", "integration-tests": "npm run test ./tests/integration/integration.executor.ts -- --display-debug-logs", "run-integration-tests": "npm run build-local-reporter && npm run integration-tests", + "download-report-portal-docker-compose-file": "curl https://github.com/reportportal/reportportal/blob/294c92503ff65bf2177b214b1fcb5c49feaf1315/docker-compose.yml -o docker-compose.yml", "download-report-portal-latest-docker-compose-file": "curl https://raw.githubusercontent.com/reportportal/reportportal/master/docker-compose.yml -o docker-compose.yml", "up": "docker compose -p reportportal up", "start": "docker compose -p reportportal start", diff --git a/tests/integration/integration.executor.ts b/tests/integration/integration.executor.ts index 6618589..885c491 100644 --- a/tests/integration/integration.executor.ts +++ b/tests/integration/integration.executor.ts @@ -15,8 +15,11 @@ describe('Performing Integration testing', async function() { apiPath: '/uat', }); const token = await client.getApiToken('default', '1q2w3e'); + console.log(`Got the following token: ${JSON.stringify(token)}`) const apiToken = await client.generateApiToken(token.access_token); + console.log(`Generated the following report portal token: ${apiToken.access_token}`) cliArguments.rtoken = apiToken.access_token; + console.log(`List of arguments: ${JSON.stringify(cliArguments)}`) testcafeServer = await createTestCafe('localhost', 1337, 1338); });