Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy 2024-10-07 #1792

Merged
merged 18 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
1e7231a
[UXE-4954] test: add coverage for redirectToManager guard and update …
HerbertJulio Oct 1, 2024
04418dd
[UXE-5134] feat: implements tracking events in edge services (#1773)
lucasmendes21 Oct 2, 2024
901b820
[NO-ISSUE] fix: adjustment to the route guards to standardize executi…
HerbertJulio Oct 2, 2024
2e67a97
[UXE-5136] feat: implements tracking events in digital certificate (#…
lucasmendes21 Oct 2, 2024
6fdae9b
[UXE-5132] feat: implements events in records (#1779)
lucasmendes21 Oct 2, 2024
43e721f
[UXE-5039] fix: error message parse in waf tuning load (#1771)
aloisio-m-bastian Oct 2, 2024
6560b36
[UXE-5149] fix: service keeps loading when there is no service regist…
pauloSF0 Oct 3, 2024
cdd831e
[UXE-5131] feat: add edge dns tracker events (#1780)
pauloSF0 Oct 3, 2024
09271a5
[UXE-4871] feat: change events name and parse error message correctly…
aloisio-m-bastian Oct 3, 2024
9c0c520
[UXE-4942] feat: add Azion Copilot with deepchat to AI Chat component…
HerbertJulio Oct 3, 2024
3affcac
Revert "[UXE-4942] feat: add Azion Copilot with deepchat to AI Chat c…
HerbertJulio Oct 3, 2024
f580dcc
[UXE-5004] fix: adjusting the description of domains (#1790)
pauloSF0 Oct 4, 2024
279b00a
[UXE-5213] refactor: reduce stripe calls (#1789)
william-tome Oct 7, 2024
435d52c
[UXE-5133] feat: add purge tracker events (#1788)
pauloSF0 Oct 7, 2024
4416d8b
[UXE-5007] fix: incorrect ordering in real time events in the ts fiel…
lucasmendes21 Oct 7, 2024
267f8f0
[EDU-5476] refactor: Adjust DDoS card description (#1777)
MarianaAguilera Oct 7, 2024
1b55a8b
[UXE-5180] feat: enhance AnalyticsTrackerAdapter refine identify meth…
HerbertJulio Oct 7, 2024
27de4e5
[QA-2249] feat: updated e2e tests to run against prod env (#1782)
rafael-qazion Oct 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/cleanup_e2e_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Run cleanup e2e tests

on:
schedule:
- cron: '0 8 * * *'
workflow_dispatch:

jobs:
cleanup:
name: Cleanup e2e tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup Node.js Environment
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: yarn install

- name: Cleanup Prod
env:
PROD_CYPRESS_TOKEN: ${{ secrets.PROD_CYPRESS_TOKEN }}
run: node scripts/cleanup.js PROD
12 changes: 7 additions & 5 deletions .github/workflows/pre-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
coverage/unit/sonar-report.xml
retention-days: 1

run-dev-e2e-tests:
run-prod-e2e-tests:
name: Run Dev E2E Tests
runs-on: ubuntu-latest
strategy:
Expand All @@ -61,15 +61,17 @@ jobs:
- name: Run Cypress Tests
uses: cypress-io/github-action@v6
env:
DEV_CYPRESS_EMAIL: ${{ secrets.DEV_CYPRESS_EMAIL }}
DEV_CYPRESS_PASSWORD: ${{ secrets.DEV_CYPRESS_PASSWORD }}
PROD_CYPRESS_EMAIL: ${{ secrets.PROD_CYPRESS_EMAIL }}
PROD_CYPRESS_PASSWORD: ${{ secrets.PROD_CYPRESS_PASSWORD }}
VITE_ENVIRONMENT: "production"
with:
build: yarn build
start: yarn dev --logLevel=warn
browser: chrome
wait-on: 'http://localhost:5173/'
wait-on-timeout: 120
env: grepTags=@dev${{ matrix.group }}+-@xfail
config-file: cypress.config.prod.js
env: environment=prod,grepTags=@dev${{ matrix.group }}+-@xfail+-@dont_run_prod

- name: Generate Specs JSON
run: yarn generate-specs-json
Expand Down Expand Up @@ -106,7 +108,7 @@ jobs:

download_and_merge:
name: Download and Merge Coverage Reports
needs: run-dev-e2e-tests
needs: run-prod-e2e-tests
runs-on: ubuntu-latest

steps:
Expand Down
42 changes: 0 additions & 42 deletions .github/workflows/prod-e2e-tests.yml

This file was deleted.

1 change: 0 additions & 1 deletion cypress.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import baseConfig from './cypress.config';

const envOverride = {
// TODO: remove this WORKAROUND for https://github.com/cypress-io/cypress/issues/20647,
baseUrl: 'http://console.azion.com',
CYPRESS_EMAIL: process.env.PROD_CYPRESS_EMAIL,
CYPRESS_PASSWORD: process.env.PROD_CYPRESS_PASSWORD,
};
Expand Down
6 changes: 5 additions & 1 deletion cypress.env.example.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
{
"DEV_CYPRESS_EMAIL": "",
"DEV_CYPRESS_PASSWORD": "",
"DEV_CYPRESS_TOKEN": "",
"STAGE_CYPRESS_EMAIL": "",
"STAGE_CYPRESS_PASSWORD": "",
"STAGE_CYPRESS_TOKEN": "",
"PREVIEW_PROD_CYPRESS_EMAIL": "",
"PREVIEW_PROD_CYPRESS_PASSWORD": "",
"PREVIEW_PROD_CYPRESS_TOKEN": "",
"PROD_CYPRESS_EMAIL": "",
"PROD_CYPRESS_PASSWORD": ""
"PROD_CYPRESS_PASSWORD": "",
"PROD_CYPRESS_TOKEN": ""
}
9 changes: 5 additions & 4 deletions cypress/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,11 @@ For more details, see the official [@cypress/grep documentation](https://github.

### Tags Used in the Project

| Tag | Description |
|-------|-----------------------------------------------------|
| @dev | Runs the test in the DEV environment |
| @xfail| Prevents the test from running in workflows |
| Tag | Description |
|-----------------|-----------------------------------------------------|
| @dev | Runs the test in the DEV environment |
| @xfail | Prevents the test from running in workflows |
| @dont_run_prod | Prevents the test from running in prod workflow |

## Naming `data-testid`

Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/domains/create-domain-edge-application.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const createEdgeApplicationCase = () => {
cy.get(selectors.domains.pageTitle(edgeAppName)).should('have.text', edgeAppName)
}

describe('Domains spec', { tags: ['@dev3'] }, () => {
describe('Domains spec', { tags: ['@dev3', '@xfail'] }, () => {
beforeEach(() => {
cy.login()
})
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/edge-dns/create-edge-dns-zone.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import selectors from '../../support/selectors'

let zoneName = ''

describe('Edge DNS spec', { tags: ['@dev4'] }, () => {
describe('Edge DNS spec', { tags: ['@dev4', '@dont_run_prod'] }, () => {
beforeEach(() => {
cy.login()
zoneName = generateUniqueName('DNSZone')
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/edge-dns/create-record-type-a.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import selectors from '../../support/selectors'

let zoneName = ''

describe('Edge DNS spec', { tags: ['@dev4'] }, () => {
describe('Edge DNS spec', { tags: ['@dev4', '@dont_run_prod'] }, () => {
beforeEach(() => {
cy.login()
zoneName = generateUniqueName('DNSZone')
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/edge-dns/create-record-type-aaaa.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import selectors from '../../support/selectors'

let zoneName = ''

describe('Edge DNS spec', { tags: ['@dev4'] }, () => {
describe('Edge DNS spec', { tags: ['@dev4', '@dont_run_prod'] }, () => {
beforeEach(() => {
cy.login()
zoneName = generateUniqueName('DNSZone')
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/edge-dns/create-record-type-aname.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import selectors from '../../support/selectors'

let zoneName = ''

describe('Edge DNS spec', { tags: ['@dev4'] }, () => {
describe('Edge DNS spec', { tags: ['@dev4', '@dont_run_prod'] }, () => {
beforeEach(() => {
cy.login()
zoneName = generateUniqueName('DNSZone')
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/edge-dns/create-record-type-caa.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import selectors from '../../support/selectors'

let zoneName = ''

describe('Edge DNS spec', { tags: ['@dev5'] }, () => {
describe('Edge DNS spec', { tags: ['@dev5', '@dont_run_prod'] }, () => {
beforeEach(() => {
cy.login()
zoneName = generateUniqueName('DNSZone')
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/edge-dns/create-record-type-cname.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import selectors from '../../support/selectors'

let zoneName = ''

describe('Edge DNS spec', { tags: ['@dev5'] }, () => {
describe('Edge DNS spec', { tags: ['@dev5', '@dont_run_prod'] }, () => {
beforeEach(() => {
cy.login()
zoneName = generateUniqueName('DNSZone')
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/edge-dns/create-record-type-ds.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import selectors from '../../support/selectors'

let zoneName = ''

describe('Edge DNS spec', { tags: ['@dev5'] }, () => {
describe('Edge DNS spec', { tags: ['@dev5', '@dont_run_prod'] }, () => {
beforeEach(() => {
cy.login()
zoneName = generateUniqueName('DNSZone')
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/edge-dns/create-record-type-mx.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import selectors from '../../support/selectors'

let zoneName = ''

describe('Edge DNS spec', { tags: ['@dev5'] }, () => {
describe('Edge DNS spec', { tags: ['@dev5', '@dont_run_prod'] }, () => {
beforeEach(() => {
cy.login()
zoneName = generateUniqueName('DNSZone')
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/edge-dns/create-record-type-ns.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import selectors from '../../support/selectors'

let zoneName = ''

describe('Edge DNS spec', { tags: ['@dev5'] }, () => {
describe('Edge DNS spec', { tags: ['@dev5', '@dont_run_prod'] }, () => {
beforeEach(() => {
cy.login()
zoneName = generateUniqueName('DNSZone')
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/edge-dns/create-record-type-ptr.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import selectors from '../../support/selectors'

let zoneName = ''

describe('Edge DNS spec', { tags: ['@dev5'] }, () => {
describe('Edge DNS spec', { tags: ['@dev5', '@dont_run_prod'] }, () => {
beforeEach(() => {
cy.login()
zoneName = generateUniqueName('DNSZone')
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/edge-dns/create-record-type-srv.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import selectors from '../../support/selectors'

let zoneName = ''

describe('Edge DNS spec', { tags: ['@dev5'] }, () => {
describe('Edge DNS spec', { tags: ['@dev5', '@dont_run_prod'] }, () => {
beforeEach(() => {
cy.login()
zoneName = generateUniqueName('DNSZone')
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/edge-dns/create-record-type-txt.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import selectors from '../../support/selectors'

let zoneName = ''

describe('Edge DNS spec', { tags: ['@dev5'] }, () => {
describe('Edge DNS spec', { tags: ['@dev5', '@dont_run_prod'] }, () => {
beforeEach(() => {
cy.login()
zoneName = generateUniqueName('DNSZone')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import selectors from '../../support/selectors'

let firewallName, functionInstanceName, ruleName

describe('Edge Firewall spec', { tags: ['@dev5'] }, () => {
describe('Edge Firewall spec', { tags: ['@dev5', '@xfail'] }, () => {
beforeEach(() => {
cy.login()
firewallName = generateUniqueName('EdgeFirewall')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const createASNNetworkListCase = () => {
cy.verifyToast('success', 'Your network list has been created')
}

describe('Edge Firewall spec', { tags: ['@dev5'] }, () => {
describe('Edge Firewall spec', { tags: ['@dev5', '@xfail'] }, () => {
beforeEach(() => {
cy.login()
firewallName = generateUniqueName('EdgeFirewall')
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/network-lists/create-network-list-asn.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import selectors from '../../support/selectors'

let networkListName

describe('Network Lists spec', { tags: ['@dev6'] }, () => {
describe('Network Lists spec', { tags: ['@dev6', '@xfail'] }, () => {
beforeEach(() => {
cy.login()
cy.openProduct('Network Lists')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import selectors from '../../support/selectors'

let networkListName

describe('Network Lists spec', { tags: ['@dev6'] }, () => {
describe('Network Lists spec', { tags: ['@dev6', '@xfail'] }, () => {
beforeEach(() => {
cy.login()
cy.openProduct('Network Lists')
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/variables/create-secret.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import selectors from '../../support/selectors'
let variableKey
let variableValue

describe('Variables spec', { tags: ['@dev2'] }, () => {
describe('Variables spec', { tags: ['@dev2', '@xfail'] }, () => {
beforeEach(() => {
cy.login()
cy.openProduct('Variables')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import selectors from '../../support/selectors'

let wafName

describe('WAF spec', { tags: ['@dev7'] }, () => {
describe('WAF spec', { tags: ['@dev7', '@dont_run_prod'] }, () => {
beforeEach(() => {
cy.login()
cy.openProduct('WAF Rules')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import selectors from '../../support/selectors'

let wafName

describe('WAF spec', { tags: ['@dev7'] }, () => {
describe('WAF spec', { tags: ['@dev7', '@dont_run_prod'] }, () => {
beforeEach(() => {
cy.login()
cy.openProduct('WAF Rules')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import selectors from '../../support/selectors'

let wafName

describe('WAF spec', { tags: ['@dev7'] }, () => {
describe('WAF spec', { tags: ['@dev7', '@dont_run_prod'] }, () => {
beforeEach(() => {
cy.login()
cy.openProduct('WAF Rules')
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/waf/create-allowed-rule-file-name.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import selectors from '../../support/selectors'

let wafName

describe('WAF spec', { tags: ['@dev7'] }, () => {
describe('WAF spec', { tags: ['@dev7', '@dont_run_prod'] }, () => {
beforeEach(() => {
cy.login()
cy.openProduct('WAF Rules')
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/waf/create-allowed-rule-path-zone.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import selectors from '../../support/selectors'

let wafName

describe('WAF spec', { tags: ['@dev7'] }, () => {
describe('WAF spec', { tags: ['@dev7', '@dont_run_prod'] }, () => {
beforeEach(() => {
cy.login()
cy.openProduct('WAF Rules')
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/waf/create-allowed-rule-raw-body.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import selectors from '../../support/selectors'

let wafName

describe('WAF spec', { tags: ['@dev7'] }, () => {
describe('WAF spec', { tags: ['@dev7', '@dont_run_prod'] }, () => {
beforeEach(() => {
cy.login()
cy.openProduct('WAF Rules')
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/waf/create-waf-rule.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import selectors from '../../support/selectors'

let wafName

describe('WAF spec', { tags: ['@dev7'] }, () => {
describe('WAF spec', { tags: ['@dev7', '@dont_run_prod'] }, () => {
beforeEach(() => {
cy.login()
cy.openProduct('WAF Rules')
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/waf/edit-waf-rule.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import selectors from '../../support/selectors'

let wafName

describe('WAF spec', { tags: ['@dev7'] }, () => {
describe('WAF spec', { tags: ['@dev7', '@dont_run_prod'] }, () => {
beforeEach(() => {
cy.login()
cy.openProduct('WAF Rules')
Expand Down
Loading
Loading