-
Notifications
You must be signed in to change notification settings - Fork 4.4k
(appsync): timestamp based test failing new PRs #15623
Copy link
Copy link
Closed
Labels
@aws-cdk/aws-appsyncRelated to AWS AppSyncRelated to AWS AppSyncbugThis issue is a bug.This issue is a bug.needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.
Description
integ.auth-apikey.ts#32 fails on an expired timestemp, causing new PRs to fail during codebuild (see #15621 #15618 and #15617 for example)
Reproduction Steps
Create new PR, codebuild fails, or run test integ.auth-apikey.ts locally
What did you expect to happen?
Codebuild to pass.
What actually happened?
Codebuild fails with the following log:
@aws-cdk/aws-appsync: Verifying integ.api-import.js against integ.api-import.expected.json ... OK.
@aws-cdk/aws-appsync: /codebuild/output/src790947969/src/github.com/aws/aws-cdk/packages/@aws-cdk/aws-appsync/lib/graphqlapi.js:289
@aws-cdk/aws-appsync: throw Error('API key expiration must be between 1 and 365 days.');
@aws-cdk/aws-appsync: ^
@aws-cdk/aws-appsync: Error: API key expiration must be between 1 and 365 days.
@aws-cdk/aws-appsync: at GraphqlApi.createAPIKey (/codebuild/output/src790947969/src/github.com/aws/aws-cdk/packages/@aws-cdk/aws-appsync/lib/graphqlapi.js:289:19)
@aws-cdk/aws-appsync: at new GraphqlApi (/codebuild/output/src790947969/src/github.com/aws/aws-cdk/packages/@aws-cdk/aws-appsync/lib/graphqlapi.js:139:40)
@aws-cdk/aws-appsync: at Object.<anonymous> (/codebuild/output/src790947969/src/github.com/aws/aws-cdk/packages/@aws-cdk/aws-appsync/test/integ.auth-apikey.js:23:13)
Environment
- CDK CLI Version : master branch
- Framework Version: master branch
- Node.js Version: 15.4.0
- OS : CodeBuild
- Language (Version): all
Other
See PR #15624 for fixing this
This is 🐛 Bug Report
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-appsyncRelated to AWS AppSyncRelated to AWS AppSyncbugThis issue is a bug.This issue is a bug.needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.