Skip to content

Commit

Permalink
chore(layers): remove schema parsing from layer canary
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamorosi committed Oct 8, 2024
1 parent d9abbd0 commit 7dfd64e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions layers/tests/e2e/layerPublisher.class.test.functionCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { AppConfigProvider } from '@aws-lambda-powertools/parameters/appconfig';
import { DynamoDBProvider } from '@aws-lambda-powertools/parameters/dynamodb';
import { SecretsProvider } from '@aws-lambda-powertools/parameters/secrets';
import { SSMProvider } from '@aws-lambda-powertools/parameters/ssm';
import { EventBridgeSchema } from '@aws-lambda-powertools/parser/schemas';
import { Tracer } from '@aws-lambda-powertools/tracer';
import { AppConfigDataClient } from '@aws-sdk/client-appconfigdata';
import { DynamoDBClient } from '@aws-sdk/client-dynamodb';
Expand Down Expand Up @@ -50,9 +49,6 @@ new DynamoDBProvider({ tableName: 'foo', awsSdkV3Client: ddbClient });
// Instantiating the BatchProcessor will confirm that the utility can be used
new BatchProcessor(EventType.SQS);

const testPayload = { name: 'John', age: 42 };
const testSchema = z.object({ name: z.string(), age: z.number() });

const layerPath = process.env.LAYERS_PATH || '/opt/nodejs/node_modules';
const expectedVersion = process.env.POWERTOOLS_PACKAGE_VERSION || '0.0.0';

Expand Down Expand Up @@ -121,7 +117,4 @@ export const handler = async (event: unknown): Promise<void> => {
// the presence of a log will indicate that the logger is working
// while the content of the log will indicate that the tracer is working
logger.debug('subsegment', { subsegment: subsegment.format() });

// Check that the parser is working
testEventSchema.parse(event);
};

0 comments on commit 7dfd64e

Please sign in to comment.