Skip to content

Commit

Permalink
Revert "Merge branch 'linode:develop' into develop"
Browse files Browse the repository at this point in the history
This reverts commit bfed239, reversing
changes made to 342fd96.
  • Loading branch information
cpathipa committed Sep 13, 2024
1 parent fb6bcac commit 9e54b55
Show file tree
Hide file tree
Showing 212 changed files with 1,561 additions and 4,631 deletions.
9 changes: 7 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,12 @@ packages/manager/test-report.xml
**/manager/cypress/videos/
**/manager/cypress/downloads/
**/manager/cypress/results/
**/manager/cypress/screenshots/

# ignore all screenshots except records
# we ignore the png files, not the whole folder recursively
# or the record files are ignored too
**/manager/cypress/screenshots/**/*.png
!**/manager/cypress/screenshots/**/record*.png

packages/manager/cypress/fixtures/example.json

Expand All @@ -137,4 +142,4 @@ packages/manager/bundle_analyzer_report.html
**/manager/src/dev-tools/*.local.*

# vitepress
docs/.vitepress/cache
docs/.vitepress/cache
3 changes: 0 additions & 3 deletions Jenkinsfile-component-tests.groovy

This file was deleted.

16 changes: 0 additions & 16 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ x-e2e-env:
CY_TEST_SPLIT_RUN_TOTAL: ${CY_TEST_SPLIT_RUN_TOTAL}
CY_TEST_SPLIT_RUN_INDEX: ${CY_TEST_SPLIT_RUN_INDEX}

# Cypress performance.
CY_TEST_ACCOUNT_CACHE_DIR: ${CY_TEST_ACCOUNT_CACHE_DIR}

# Cypress reporting.
CY_TEST_JUNIT_REPORT: ${CY_TEST_JUNIT_REPORT}
CY_TEST_USER_REPORT: ${CY_TEST_USER_REPORT}
Expand All @@ -66,7 +63,6 @@ x-e2e-env:
x-e2e-volumes:
&default-volumes
- ./.git:/home/node/app/.git
- ./cache:/home/node/app/cache
- ./packages/manager:/home/node/app/packages/manager
- ./packages/validation:/home/node/app/packages/validation
- ./packages/api-v4:/home/node/app/packages/api-v4
Expand All @@ -87,8 +83,6 @@ x-e2e-runners:
condition: service_healthy
env_file: ./packages/manager/.env
volumes: *default-volumes
# TODO Stop using entrypoint, use CMD instead.
# (Or just make `yarn` the entrypoint, but either way stop forcing `cy:e2e`).
entrypoint: ['yarn', 'cy:e2e']

services:
Expand Down Expand Up @@ -120,16 +114,6 @@ services:
<<: *default-env
MANAGER_OAUTH: ${MANAGER_OAUTH}

# Component test runner.
# Does not require any Cloud Manager environment to run.
component:
<<: *default-runner
depends_on: []
environment:
CY_TEST_DISABLE_RETRIES: ${CY_TEST_DISABLE_RETRIES}
CY_TEST_JUNIT_REPORT: ${CY_TEST_JUNIT_REPORT}
entrypoint: ['yarn', 'cy:component:run']

# 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:
Expand Down
8 changes: 0 additions & 8 deletions docs/development-guide/08-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,14 +220,6 @@ Environment variables related to Cypress logging and reporting, as well as repor
| `CY_TEST_FAIL_ON_MANAGED` | Fail affected tests when Managed is enabled | `1` | Unset; disabled by default |
| `CY_TEST_GENWEIGHTS` | Generate and output test weights to the given path | `./weights.json` | Unset; disabled by default |
###### Performance
Environment variables that can be used to improve test performance in some scenarios.
| Environment Variable | Description | Example | Default |
|---------------------------------|-----------------------------------------------|--------------------|----------------------------|
| `CY_TEST_ACCOUNT_CACHE_DIR` | Directory containing test account cache data | `./cache/accounts` | Unset; disabled by default |
### Writing End-to-End Tests
1. Look here for [Cypress Best Practices](https://docs.cypress.io/guides/references/best-practices)
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"cy:ci": "yarn cy:e2e",
"cy:debug": "yarn workspace linode-manager cy:debug",
"cy:component": "yarn workspace linode-manager cy:component",
"cy:component:run": "yarn workspace linode-manager cy:component:run",
"cy:rec-snap": "yarn workspace linode-manager cy:rec-snap",
"changeset": "node scripts/changelog/changeset.mjs",
"generate-changelogs": "node scripts/changelog/generate-changelogs.mjs",
Expand Down
5 changes: 0 additions & 5 deletions packages/api-v4/.changeset/pr-10920-added-1726070878408.md

This file was deleted.

4 changes: 1 addition & 3 deletions packages/api-v4/src/linodes/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface Linode {
id: number;
alerts: LinodeAlerts;
backups: LinodeBackups;
capabilities?: LinodeCapabilities[]; // @TODO BSE: Remove optionality once BSE is fully rolled out
capabilities?: string[]; // @TODO BSE: Remove optionality once BSE is fully rolled out
created: string;
disk_encryption?: EncryptionStatus; // @TODO LDE: Remove optionality once LDE is fully rolled out
region: string;
Expand Down Expand Up @@ -54,8 +54,6 @@ export interface LinodeBackups {
last_successful: string | null;
}

export type LinodeCapabilities = 'Block Storage Encryption';

export type Window =
| 'Scheduling'
| 'W0'
Expand Down
5 changes: 0 additions & 5 deletions packages/manager/.changeset/pr-10825-tests-1724428903440.md

This file was deleted.

5 changes: 0 additions & 5 deletions packages/manager/.changeset/pr-10852-tests-1724937535185.md

This file was deleted.

5 changes: 0 additions & 5 deletions packages/manager/.changeset/pr-10859-added-1725550540714.md

This file was deleted.

5 changes: 0 additions & 5 deletions packages/manager/.changeset/pr-10859-changed-1725550568902.md

This file was deleted.

5 changes: 0 additions & 5 deletions packages/manager/.changeset/pr-10867-tests-1725460656929.md

This file was deleted.

5 changes: 0 additions & 5 deletions packages/manager/.changeset/pr-10867-tests-1725482924721.md

This file was deleted.

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions packages/manager/.changeset/pr-10889-tests-1725485099504.md

This file was deleted.

5 changes: 0 additions & 5 deletions packages/manager/.changeset/pr-10892-tests-1725546783401.md

This file was deleted.

5 changes: 0 additions & 5 deletions packages/manager/.changeset/pr-10895-fixed-1725556985673.md

This file was deleted.

5 changes: 0 additions & 5 deletions packages/manager/.changeset/pr-10895-tests-1725557096432.md

This file was deleted.

5 changes: 0 additions & 5 deletions packages/manager/.changeset/pr-10899-changed-1725595024930.md

This file was deleted.

5 changes: 0 additions & 5 deletions packages/manager/.changeset/pr-10904-added-1725873382370.md

This file was deleted.

5 changes: 0 additions & 5 deletions packages/manager/.changeset/pr-10905-added-1725893781288.md

This file was deleted.

5 changes: 0 additions & 5 deletions packages/manager/.changeset/pr-10907-tests-1725898460559.md

This file was deleted.

5 changes: 0 additions & 5 deletions packages/manager/.changeset/pr-10909-tests-1725903174019.md

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions packages/manager/.changeset/pr-10910-changed-1725910840891.md

This file was deleted.

5 changes: 0 additions & 5 deletions packages/manager/.changeset/pr-10911-tests-1725912717549.md

This file was deleted.

5 changes: 0 additions & 5 deletions packages/manager/.changeset/pr-10912-added-1725913446437.md

This file was deleted.

5 changes: 0 additions & 5 deletions packages/manager/.changeset/pr-10913-fixed-1725955539025.md

This file was deleted.

5 changes: 0 additions & 5 deletions packages/manager/.changeset/pr-10914-fixed-1725988850881.md

This file was deleted.

5 changes: 0 additions & 5 deletions packages/manager/.changeset/pr-10915-tests-1725992312603.md

This file was deleted.

5 changes: 0 additions & 5 deletions packages/manager/.changeset/pr-10918-fixed-1726068911721.md

This file was deleted.

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions packages/manager/.changeset/pr-10923-fixed-1726086511137.md

This file was deleted.

5 changes: 0 additions & 5 deletions packages/manager/.changeset/pr-10926-tests-1726156342482.md

This file was deleted.

5 changes: 0 additions & 5 deletions packages/manager/.changeset/pr-10928-removed-1726148104546.md

This file was deleted.

This file was deleted.

10 changes: 1 addition & 9 deletions packages/manager/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,6 @@ export default defineConfig({
specPattern: './cypress/component/**/*.spec.tsx',
viewportWidth: 500,
viewportHeight: 500,

setupNodeEvents(on, config) {
return setupPlugins(on, config, [
loadEnvironmentConfig,
discardPassedTestRecordings,
enableJunitReport('Component', true),
]);
},
},

e2e: {
Expand Down Expand Up @@ -93,7 +85,7 @@ export default defineConfig({
regionOverrideCheck,
logTestTagInfo,
splitCypressRun,
enableJunitReport(),
enableJunitReport,
generateTestWeights,
]);
},
Expand Down
6 changes: 3 additions & 3 deletions packages/manager/cypress/component/poc/region-select.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,9 @@ componentTests('RegionSelect', (mount) => {
.should('be.visible');
});
regionsWithoutObj.forEach((region) => {
ui.autocompletePopper.find().within(() => {
cy.findByText(`${region.label} (${region.id})`).should('not.exist');
});
ui.autocompletePopper
.findByTitle(`${region.label} (${region.id})`)
.should('not.exist');
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ui } from 'support/ui';

describe('Logout Test', () => {
beforeEach(() => {
cy.tag('purpose:syntheticTesting', 'method:e2e');
cy.tag('purpose:syntheticTesting');
});

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ describe('Personal access tokens', () => {
* - Confirms that user is shown the token secret upon successful PAT creation
* - Confirms that new personal access token is shown in list
* - Confirms that user can open and close "View Scopes" drawer
* - Confirm that the “Child account access” grant is not visible in the list of permissions.
* - Upon clicking “Create Token”, assert that the outgoing API request payload contains "scopes" value as defined in token.
*/
it('can create personal access tokens', () => {
const token = appTokenFactory.build({
Expand Down Expand Up @@ -65,9 +63,6 @@ describe('Personal access tokens', () => {
.findByTitle('Add Personal Access Token')
.should('be.visible')
.within(() => {
// Confirm that the “Child account access” grant is not visible in the list of permissions.
cy.findAllByText('Child Account Access').should('not.exist');

// Confirm submit button is disabled without specifying scopes.
ui.buttonGroup
.findButtonByTitle('Create Token')
Expand Down Expand Up @@ -152,12 +147,7 @@ describe('Personal access tokens', () => {
});

// Confirm that new PAT is shown in list and "View Scopes" drawer works.
// Upon clicking “Create Token”, assert that the outgoing API request payload contains "scopes" value as defined in token.
cy.wait('@getTokens').then((xhr) => {
const actualTokenData = xhr.response?.body.data;
const actualTokenScopes = actualTokenData[0].scopes;
expect(actualTokenScopes).to.equal(token.scopes);
});
cy.wait('@getTokens');
cy.findByText(token.label)
.should('be.visible')
.closest('tr')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ describe('Account service transfers', () => {
* - Confirms user can navigate to service transfer page via user menu.
*/
it('can navigate to service transfers landing page', () => {
cy.tag('method:e2e');
cy.visitWithLogin('/');
cy.findByLabelText('Profile & Account').should('be.visible').click();

Expand Down Expand Up @@ -245,7 +244,6 @@ describe('Account service transfers', () => {
* - Confirms that users can cancel a service transfer
*/
it('can initiate and cancel a service transfer', () => {
cy.tag('method:e2e');
// Create a Linode to transfer.
const setupLinode = async (): Promise<Linode> => {
const payload = createLinodeRequestFactory.build({
Expand Down
Loading

0 comments on commit 9e54b55

Please sign in to comment.