Skip to content

Commit

Permalink
ci: e2e changes (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmouhib authored Dec 27, 2023
1 parent d573044 commit 6ccf4dd
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 11 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/run-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
permissions:
id-token: write # needed to interact with GitHub's OIDC Token endpoint.
contents: write
strategy:
matrix:
suite: [processing, storage, governance, utils]
fail-fast: false
steps:
- name: Checkout Repo
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
Expand Down Expand Up @@ -59,4 +63,4 @@ jobs:
aws-region: eu-west-1
role-duration-seconds: 7200
- name: Run e2e tests
run: npx projen test:e2e
run: npx jest --group=e2e/${{ matrix.suite }}
2 changes: 1 addition & 1 deletion framework/test/e2e/data-catalog-database.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { DataCatalogDatabase } from '../../src/governance';

/**
* E2E test for DataCatalogDatabase
* @group e2e/data-catalog-database
* @group e2e/governance/data-catalog-database
*/

jest.setTimeout(6000000);
Expand Down
2 changes: 1 addition & 1 deletion framework/test/e2e/data-lake-catalog.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { DataLakeStorage } from '../../src/storage';

/**
* E2E test for DataCatalogDatabase
* @group e2e/data-catalog-database
* @group e2e/governance/data-catalog-database
*/

jest.setTimeout(6000000);
Expand Down
2 changes: 1 addition & 1 deletion framework/test/e2e/data-lake-storage.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { BucketUtils } from '../../src/utils';

/**
* E2E test for DataLakeStorage
* @group e2e/data-lake-storage
* @group e2e/storage/data-lake-storage
*/

jest.setTimeout(6000000);
Expand Down
2 changes: 1 addition & 1 deletion framework/test/e2e/pyspark-application-package.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { PySparkApplicationPackage } from '../../src/processing';

/**
* E2E test for PySparkApplicationPackage
* @group e2e/pyspark-application-package
* @group e2e/processing/pyspark-application-package
*/

jest.setTimeout(6000000);
Expand Down
4 changes: 2 additions & 2 deletions framework/test/e2e/s3-data-copy.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { S3DataCopy, Utils } from '../../src/utils';

/**
* E2E test for S3DataCopy
* @group e2e/s3-data-copy
* @group e2e/utils/s3-data-copy
*/

jest.setTimeout(6000000);
Expand Down Expand Up @@ -46,7 +46,7 @@ beforeAll(async() => {
}, 900000);

test(' S3DataCopy is created', async() => {
const regexPattern = /test-([a-z]+-\d+)-(\d+)-([a-z0-9]+)/;
const regexPattern = /test-[a-z]{2}-[a-z]+-[0-9]-[0-9]{12}-[a-z0-9]{8}/;
expect(deployResult.Target).toMatch(regexPattern);

});
Expand Down
2 changes: 1 addition & 1 deletion framework/test/e2e/spark-cicd-pipeline.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/**
* E2E test for SparkCICDPipeline
*
* @group e2e/spark-cicd-pipeline
* @group e2e/processing/spark-cicd-pipeline
*/

import { RemovalPolicy, CfnOutput, Stack, StackProps, App } from 'aws-cdk-lib';
Expand Down
2 changes: 1 addition & 1 deletion framework/test/e2e/spark-containers-runtime.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/**
* E2E test for SparkContainersRunime
*
* @group e2e/spark-runtime-containers
* @group e2e/processing/spark-runtime-containers
*/

import { KubectlV27Layer } from '@aws-cdk/lambda-layer-kubectl-v27';
Expand Down
2 changes: 1 addition & 1 deletion framework/test/e2e/spark-job.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/**
* E2E test for SparkJob
*
* @group e2e/spark-job
* @group e2e/processing/spark-job
*/

import * as cdk from 'aws-cdk-lib';
Expand Down
2 changes: 1 addition & 1 deletion framework/test/e2e/spark-serverless-runtime.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/**
* E2E test for SparkServerlessRunime
*
* @group e2e/spark-runtime-serverless
* @group e2e/processing/spark-runtime-serverless
*/

import { App, CfnOutput, RemovalPolicy } from 'aws-cdk-lib';
Expand Down

0 comments on commit 6ccf4dd

Please sign in to comment.