-
Notifications
You must be signed in to change notification settings - Fork 7
refactor(server-nestjs): extraire les gates des specs e2e vers des fichiers utils par spec #2698
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| import { describe } from 'vitest' | ||
|
|
||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [⚪ Suggestion] Seize fichiers jumeaux de cinq lignes ( |
||
| export const canRunArgoCDE2E = Boolean(process.env.E2E) | ||
|
|
||
| export const describeWithArgoCD = describe.runIf(canRunArgoCDE2E) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| import { describe } from 'vitest' | ||
|
|
||
| export const canRunGitlabE2E = Boolean(process.env.E2E) | ||
|
|
||
| export const describeWithGitLab = describe.runIf(canRunGitlabE2E) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| import { describe } from 'vitest' | ||
|
|
||
| export const canRunKeycloakE2E = Boolean(process.env.E2E) | ||
|
|
||
| export const describeWithKeycloak = describe.runIf(canRunKeycloakE2E) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| import { describe } from 'vitest' | ||
|
|
||
| export const canRunLogE2E = Boolean(process.env.E2E) | ||
|
|
||
| export const describeWithLog = describe.runIf(canRunLogE2E) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| import { describe } from 'vitest' | ||
|
|
||
| export const canRunNexusE2E = Boolean(process.env.E2E) | ||
|
|
||
| export const describeWithNexus = describe.runIf(canRunNexusE2E) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| import { describe } from 'vitest' | ||
| import { | ||
| GRAFANA_SUBGROUP_HPROD_RO, | ||
| GRAFANA_SUBGROUP_HPROD_RW, | ||
| GRAFANA_SUBGROUP_PROD_RO, | ||
| GRAFANA_SUBGROUP_PROD_RW, | ||
| } from '../src/modules/observability/observability.constants' | ||
|
|
||
| export const canRunObservabilityE2E = Boolean(process.env.E2E) | ||
|
|
||
| export const describeWithObservability = describe.runIf(canRunObservabilityE2E) | ||
|
|
||
| export const ALL_GRAFANA_SUBGROUPS = [ | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [✨ Éloge] |
||
| GRAFANA_SUBGROUP_PROD_RW, | ||
| GRAFANA_SUBGROUP_PROD_RO, | ||
| GRAFANA_SUBGROUP_HPROD_RW, | ||
| GRAFANA_SUBGROUP_HPROD_RO, | ||
| ] as const | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| import { describe } from 'vitest' | ||
|
|
||
| export const canRunProjectBulkE2E = Boolean(process.env.E2E) | ||
|
|
||
| export const describeWithProjectBulk = describe.runIf(canRunProjectBulkE2E) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| import { describe } from 'vitest' | ||
|
|
||
| export const canRunProjectHooksE2E = Boolean(process.env.E2E) | ||
|
|
||
| export const describeWithProjectHooks = describe.runIf(canRunProjectHooksE2E) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| import { describe } from 'vitest' | ||
|
|
||
| export const canRunProjectMembersE2E = Boolean(process.env.E2E) | ||
|
|
||
| export const describeWithProjectMembers = describe.runIf(canRunProjectMembersE2E) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| import { describe } from 'vitest' | ||
|
|
||
| export const canRunProjectRolesE2E = Boolean(process.env.E2E) | ||
|
|
||
| export const describeWithProjectRoles = describe.runIf(canRunProjectRolesE2E) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| import { describe } from 'vitest' | ||
|
|
||
| export const canRunProjectSecretsE2E = Boolean(process.env.E2E) | ||
|
|
||
| export const describeWithProjectSecrets = describe.runIf(canRunProjectSecretsE2E) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| import { describe } from 'vitest' | ||
|
|
||
| export const canRunServicesE2E = Boolean(process.env.E2E) | ||
|
|
||
| export const describeWithServices = describe.runIf(canRunServicesE2E) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| import { describe } from 'vitest' | ||
|
|
||
| export const canRunProjectE2E = Boolean(process.env.E2E) | ||
|
|
||
| export const describeWithProject = describe.runIf(canRunProjectE2E) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| import { describe } from 'vitest' | ||
|
|
||
| export const canRunRegistryE2E = Boolean(process.env.E2E) | ||
|
|
||
| export const describeWithRegistry = describe.runIf(canRunRegistryE2E) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| import { describe } from 'vitest' | ||
|
|
||
| export const canRunSonarqubeE2E = Boolean(process.env.E2E) | ||
|
|
||
| export const describeWithSonarqube = describe.runIf(canRunSonarqubeE2E) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[🟡 Nit] Ordre des imports : regrouper
./argocd.utilsavec les imports relatifs (après./constants) pour rester dans le tri eslint.