Skip to content

feat: jest integ tests for dynamodb #580

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

Closed
wants to merge 14 commits into from

Conversation

trivikr
Copy link
Member

@trivikr trivikr commented Dec 26, 2019

Issue #, if available:
N/A

Description of changes:

  • jest integ tests for dynamodb
  • verified by running:
    $ yarn
    $ ./node_modules/.bin/lerna run pretest --scope '@aws-sdk/client-dynamodb-node' --include-dependencies
    $ cd clients/node/client-dynamodb-node
    $ AWS_PROFILE=<profileName> ./node_modules/.bin/jest --testMatch '**/*.ispec.js' test/integ/index.ispec.js

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Ran as follows:
* run `yarn` from root
* run following command from root to install dynamodb dependencies
  `lerna run pretest --scope '@aws-sdk/client-dynamodb-node' --include-dependencies`
* cd clients/node/client-dynamodb-node
* run `AWS_PROFILE=<profileName> jest test/integ/index.spec.js`
Test fails with:
ResourceInUseException: Attempt to change a resource which is still in use: Table is being created: aws-js-integration-imtnejviovb
        at JsonRpcParser.Object.<anonymous>.exports.jsonErrorUnmarshaller [as parseServiceException] (/Users/trivikr/workspace/aws-sdk-js-v3/packages/json-error-unmarshaller/src/index.ts:51:35)
        at JsonRpcParser.<anonymous> (/Users/trivikr/workspace/aws-sdk-js-v3/packages/protocol-json-rpc/src/JsonRpcParser.ts:33:18)
        at step (/Users/trivikr/workspace/aws-sdk-js-v3/node_modules/tslib/tslib.js:136:27)
        at Object.next (/Users/trivikr/workspace/aws-sdk-js-v3/node_modules/tslib/tslib.js:117:57)
        at fulfilled (/Users/trivikr/workspace/aws-sdk-js-v3/node_modules/tslib/tslib.js:107:62)
        at processTicksAndRejections (internal/process/task_queues.js:93:5)
Steps to test:
* cd to clients folder (example `cd clients/node/client-dynamodb-node`)
* run `tsc`
* run `AWS_PROFILE=<profileName> jest --testMatch '**/*.ispec.js' test/integ/index.ispec.js`
@aws-sdk-js-automation
Copy link

AWS CodeBuild CI Report

  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@lock
Copy link

lock bot commented Jan 17, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants