Skip to content

Commit

Permalink
fix dynamodb tests for getPrimaryKeyConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
nhulston committed Feb 19, 2025
1 parent 30a7289 commit 27c78b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/datadog-plugin-aws-sdk/test/dynamodb.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ describe('Plugin', () => {

it('should parse valid config with single table', () => {
const configStr = '{"Table1": ["key1", "key2"]}'
dynamoDbInstance._tracerConfig = { aws: { dynamoDb: { tablePrimaryKeys: configStr } } }
dynamoDbInstance._tracerConfig = { trace: { dynamoDb: { tablePrimaryKeys: configStr } } }

const result = dynamoDbInstance.getPrimaryKeyConfig()
expect(result).to.deep.equal({
Expand All @@ -570,7 +570,7 @@ describe('Plugin', () => {

it('should parse valid config with multiple tables', () => {
const configStr = '{"Table1": ["key1"], "Table2": ["key2", "key3"]}'
dynamoDbInstance._tracerConfig = { aws: { dynamoDb: { tablePrimaryKeys: configStr } } }
dynamoDbInstance._tracerConfig = { trace: { dynamoDb: { tablePrimaryKeys: configStr } } }

const result = dynamoDbInstance.getPrimaryKeyConfig()
expect(result).to.deep.equal({
Expand Down

0 comments on commit 27c78b7

Please sign in to comment.