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

test: [M3-8278] - Cloud Manager changes for Heimdall test pipeline #10713

Merged
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ x-e2e-env:
# Cloud Manager-specific test configuration.
CY_TEST_SUITE: ${CY_TEST_SUITE}
CY_TEST_REGION: ${CY_TEST_REGION}
CY_TEST_TAGS: ${CY_TEST_TAGS}
CY_TEST_DISABLE_RETRIES: ${CY_TEST_DISABLE_RETRIES}

# Cypress environment variables for alternative parallelization.
CY_TEST_SPLIT_RUN: ${CY_TEST_SPLIT_RUN}
Expand Down Expand Up @@ -104,12 +106,23 @@ services:
timeout: 10s
retries: 10

# Generic end-to-end test runner for Cloud's primary testing pipeline.
# Configured to run against a local Cloud instance.
e2e:
<<: *default-runner
environment:
<<: *default-env
MANAGER_OAUTH: ${MANAGER_OAUTH}

# End-to-end test runner for Cloud's synthetic monitoring tests.
# Configured to run against a remote Cloud instance hosted at some URL.
e2e_heimdall:
<<: *default-runner
depends_on: []
environment:
<<: *default-env
MANAGER_OAUTH: ${MANAGER_OAUTH}

region-1:
build:
context: .
Expand Down
1 change: 1 addition & 0 deletions docs/development-guide/08-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ Environment variables related to Cypress logging and reporting, as well as repor
| `CY_TEST_USER_REPORT` | Log test account information when tests begin | `1` | Unset; disabled by default |
| `CY_TEST_JUNIT_REPORT` | Enable JUnit reporting | `1` | Unset; disabled by default |
| `CY_TEST_DISABLE_FILE_WATCHING` | Disable file watching in Cypress UI | `1` | Unset; disabled by default |
| `CY_TEST_DISABLE_RETRIES` | Disable test retries on failure in CI | `1` | Unset; disabled by default |
| `CY_TEST_FAIL_ON_MANAGED` | Fail affected tests when Managed is enabled | `1` | Unset; disabled by default |

### Writing End-to-End Tests
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Tech Stories
---

Docker Compose changes to facilitate new testing pipeline ([#10713](https://github.com/linode/manager/pull/10713))
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-10713-tests-1722017832242.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Tests
---

Tag tests for synthetic monitoring ([#10713](https://github.com/linode/manager/pull/10713))
2 changes: 1 addition & 1 deletion packages/manager/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default defineConfig({
video: true,

// Only retry test when running via CI.
retries: process.env['CI'] ? 2 : 0,
retries: process.env['CI'] && !process.env['CY_TEST_DISABLE_RETRIES'] ? 2 : 0,

experimentalMemoryManagement: true,
e2e: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ describe('object storage end-to-end tests', () => {
* - Confirms that deleted buckets are no longer listed on landing page.
*/
it('can create and delete object storage buckets', () => {
cy.tag('purpose:syntheticTesting');

const bucketLabel = randomLabel();
const bucketRegion = 'Atlanta, GA';
const bucketCluster = 'us-southeast-1';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ describe('volume create flow', () => {
* - Confirms that volume is listed correctly on volumes landing page.
*/
it('creates an unattached volume', () => {
cy.tag('purpose:syntheticTesting');

const region = chooseRegion();
const volume = {
label: randomLabel(),
Expand Down
1 change: 1 addition & 0 deletions packages/manager/cypress/support/util/tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export type TestTag =
// DC testing purposes even if that is not the primary purpose of the test.
| 'purpose:dcTesting'
| 'purpose:smokeTesting'
| 'purpose:syntheticTesting'

// Method-related tags.
// Describe the way the tests operate -- either end-to-end using real API requests,
Expand Down
Loading