forked from newrelic/node-newrelic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request newrelic#188 from bizob2828/fix-v2
fix: Updated the mock AWS server to handle both XML and JSON.
- Loading branch information
Showing
19 changed files
with
242 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
'use strict' | ||
module.exports = { | ||
extends: '@newrelic' | ||
extends: '@newrelic', | ||
parserOptions: { | ||
ecmaVersion: '2020' | ||
}, | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...k/tests/versioned/aws-server-stubs/response-server/sqs/responses/create-queue-response.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright 2023 New Relic Corporation. All rights reserved. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
'use strict' | ||
const { formatUrl } = require('../index') | ||
|
||
module.exports = (endpoint, queueName, isJson) => { | ||
if (isJson) { | ||
return { | ||
QueueUrl: formatUrl(endpoint, queueName), | ||
ResponseMetadata: { | ||
RequestId: 'cb919c0a-9bce-4afe-9b48-9bdf2412bb67' | ||
} | ||
} | ||
} | ||
return ` | ||
<CreateQueueResponse> | ||
<CreateQueueResult> | ||
<QueueUrl>${formatUrl(endpoint, queueName)}</QueueUrl> | ||
</CreateQueueResult> | ||
<ResponseMetadata> | ||
<RequestId>cb919c0a-9bce-4afe-9b48-9bdf2412bb67</RequestId> | ||
</ResponseMetadata> | ||
</CreateQueueResponse>` | ||
} |
8 changes: 0 additions & 8 deletions
8
.../tests/versioned/aws-server-stubs/response-server/sqs/responses/create-queue-response.xml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.