Skip to content

Commit

Permalink
chore(e2e): test on latest-enterprise (#6055)
Browse files Browse the repository at this point in the history
* test on latest-enterprise

* skip OIDC tests for multiple connections

* CSFLE / QE fixes
  • Loading branch information
lerouxb authored Jul 23, 2024
1 parent ed3980d commit 55a5a60
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 23 deletions.
5 changes: 3 additions & 2 deletions .evergreen/buildvariants-and-tasks.in.yml
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ tasks:
e2e_test_groups: <%= E2E_TEST_GROUPS.length %>
e2e_test_group: <%= group.number %>
debug: 'compass-e2e-tests*,electron*,hadron*,mongo*'
mongodb_version: latest-enterprise
<% } %>

- name: generate-vulnerability-report
Expand Down Expand Up @@ -472,7 +473,7 @@ tasks:
compass_distribution: compass
- func: test-packaged-app
vars:
mongodb_version: latest
mongodb_version: latest-enterprise
compass_distribution: compass
e2e_test_groups: <%= E2E_TEST_GROUPS.length %>
e2e_test_group: <%= group.number %>
Expand All @@ -494,7 +495,7 @@ tasks:
compass_distribution: compass
- func: test-web-sandbox
vars:
mongodb_version: latest
mongodb_version: latest-enterprise
browser_name: '<%= browser %>'
compass_distribution: compass
e2e_test_groups: <%= E2E_TEST_GROUPS.length %>
Expand Down
21 changes: 12 additions & 9 deletions .evergreen/buildvariants-and-tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ tasks:
e2e_test_groups: 3
e2e_test_group: 1
debug: compass-e2e-tests*,electron*,hadron*,mongo*
mongodb_version: latest-enterprise
- name: e2e-multiple-connections-2
tags:
- required-for-publish
Expand All @@ -364,6 +365,7 @@ tasks:
e2e_test_groups: 3
e2e_test_group: 2
debug: compass-e2e-tests*,electron*,hadron*,mongo*
mongodb_version: latest-enterprise
- name: e2e-multiple-connections-3
tags:
- required-for-publish
Expand All @@ -377,6 +379,7 @@ tasks:
e2e_test_groups: 3
e2e_test_group: 3
debug: compass-e2e-tests*,electron*,hadron*,mongo*
mongodb_version: latest-enterprise
- name: generate-vulnerability-report
tags:
- required-for-publish
Expand Down Expand Up @@ -1542,7 +1545,7 @@ tasks:
compass_distribution: compass
- func: test-packaged-app
vars:
mongodb_version: latest
mongodb_version: latest-enterprise
compass_distribution: compass
e2e_test_groups: 3
e2e_test_group: 1
Expand All @@ -1565,7 +1568,7 @@ tasks:
compass_distribution: compass
- func: test-packaged-app
vars:
mongodb_version: latest
mongodb_version: latest-enterprise
compass_distribution: compass
e2e_test_groups: 3
e2e_test_group: 2
Expand All @@ -1588,7 +1591,7 @@ tasks:
compass_distribution: compass
- func: test-packaged-app
vars:
mongodb_version: latest
mongodb_version: latest-enterprise
compass_distribution: compass
e2e_test_groups: 3
e2e_test_group: 3
Expand All @@ -1608,7 +1611,7 @@ tasks:
compass_distribution: compass
- func: test-web-sandbox
vars:
mongodb_version: latest
mongodb_version: latest-enterprise
browser_name: chrome
compass_distribution: compass
e2e_test_groups: 3
Expand All @@ -1629,7 +1632,7 @@ tasks:
compass_distribution: compass
- func: test-web-sandbox
vars:
mongodb_version: latest
mongodb_version: latest-enterprise
browser_name: chrome
compass_distribution: compass
e2e_test_groups: 3
Expand All @@ -1650,7 +1653,7 @@ tasks:
compass_distribution: compass
- func: test-web-sandbox
vars:
mongodb_version: latest
mongodb_version: latest-enterprise
browser_name: chrome
compass_distribution: compass
e2e_test_groups: 3
Expand All @@ -1671,7 +1674,7 @@ tasks:
compass_distribution: compass
- func: test-web-sandbox
vars:
mongodb_version: latest
mongodb_version: latest-enterprise
browser_name: firefox
compass_distribution: compass
e2e_test_groups: 3
Expand All @@ -1692,7 +1695,7 @@ tasks:
compass_distribution: compass
- func: test-web-sandbox
vars:
mongodb_version: latest
mongodb_version: latest-enterprise
browser_name: firefox
compass_distribution: compass
e2e_test_groups: 3
Expand All @@ -1713,7 +1716,7 @@ tasks:
compass_distribution: compass
- func: test-web-sandbox
vars:
mongodb_version: latest
mongodb_version: latest-enterprise
browser_name: firefox
compass_distribution: compass
e2e_test_groups: 3
Expand Down
23 changes: 11 additions & 12 deletions packages/compass-e2e-tests/tests/in-use-encryption.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
serverSatisfies,
skipForWeb,
TEST_MULTIPLE_CONNECTIONS,
DEFAULT_CONNECTION_NAME,
} from '../helpers/compass';
import type { Compass } from '../helpers/compass';
import * as Selectors from '../helpers/selectors';
Expand Down Expand Up @@ -288,7 +287,7 @@ describe('CSFLE / QE', function () {
);

await browser.navigateToCollectionTab(
DEFAULT_CONNECTION_NAME,
connectionName,
databaseName,
collectionName,
'Documents'
Expand Down Expand Up @@ -428,7 +427,7 @@ describe('CSFLE / QE', function () {
);

await browser.navigateToCollectionTab(
DEFAULT_CONNECTION_NAME,
connectionName,
databaseName,
collectionName,
'Documents'
Expand All @@ -452,7 +451,7 @@ describe('CSFLE / QE', function () {
await refresh(browser, connectionName);

await browser.navigateToCollectionTab(
DEFAULT_CONNECTION_NAME,
connectionName,
databaseName,
collectionName,
'Documents'
Expand Down Expand Up @@ -515,7 +514,7 @@ describe('CSFLE / QE', function () {
await refresh(browser, connectionName);

await browser.navigateToCollectionTab(
DEFAULT_CONNECTION_NAME,
connectionName,
databaseName,
collectionName,
'Documents'
Expand Down Expand Up @@ -563,7 +562,7 @@ describe('CSFLE / QE', function () {
await refresh(browser, connectionName);

await browser.navigateToCollectionTab(
DEFAULT_CONNECTION_NAME,
connectionName,
databaseName,
coll,
'Documents'
Expand Down Expand Up @@ -633,7 +632,7 @@ describe('CSFLE / QE', function () {
await refresh(browser, connectionName);

await browser.navigateToCollectionTab(
DEFAULT_CONNECTION_NAME,
connectionName,
databaseName,
collectionName,
'Documents'
Expand Down Expand Up @@ -701,7 +700,7 @@ describe('CSFLE / QE', function () {

await refresh(browser, connectionName);
await browser.navigateToCollectionTab(
DEFAULT_CONNECTION_NAME,
connectionName,
databaseName,
collectionName,
'Documents'
Expand Down Expand Up @@ -784,7 +783,7 @@ describe('CSFLE / QE', function () {

await refresh(browser, connectionName);
await browser.navigateToCollectionTab(
DEFAULT_CONNECTION_NAME,
connectionName,
databaseName,
collectionName,
'Documents'
Expand Down Expand Up @@ -868,7 +867,7 @@ describe('CSFLE / QE', function () {
await refresh(browser, connectionName);

await browser.navigateToCollectionTab(
DEFAULT_CONNECTION_NAME,
connectionName,
databaseName,
collectionName,
'Documents'
Expand Down Expand Up @@ -1065,11 +1064,11 @@ describe('CSFLE / QE', function () {
hosts: [CONNECTION_HOSTS],
fleKeyVaultNamespace: `${databaseName}.keyvault`,
fleKey: 'A'.repeat(128),
connectionName: this.test?.fullTitle(),
connectionName,
});

await browser.navigateToCollectionTab(
DEFAULT_CONNECTION_NAME,
connectionName,
databaseName,
collectionName,
'Documents'
Expand Down
6 changes: 6 additions & 0 deletions packages/compass-e2e-tests/tests/oidc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
skipForWeb,
TEST_COMPASS_WEB,
connectionNameFromString,
TEST_MULTIPLE_CONNECTIONS,
} from '../helpers/compass';
import * as Selectors from '../helpers/selectors';
import type { Compass } from '../helpers/compass';
Expand Down Expand Up @@ -78,6 +79,11 @@ describe('OIDC integration', function () {
before(async function () {
skipForWeb(this, 'feature flags not yet available in compass-web');

// TODO(COMPASS-8105): Fix and enable OIDC tests for multiple connections
if (TEST_MULTIPLE_CONNECTIONS) {
return this.skip();
}

// OIDC is only supported on Linux in the 7.0+ enterprise server.
if (
process.platform !== 'linux' ||
Expand Down

0 comments on commit 55a5a60

Please sign in to comment.