Skip to content

Commit

Permalink
Merge branch 'develop' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
oleiade committed Apr 19, 2022
2 parents 9671e60 + b965f44 commit f3c5863
Show file tree
Hide file tree
Showing 25 changed files with 2,110 additions and 505 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
// listBuckets,
AWSConfig,
S3Client,
} from 'https://jslib.k6.io/aws/0.2.0/index.js'
} from 'https://jslib.k6.io/aws/0.3.0/s3.js'

const testFile = open('./bonjour.txt', 'r')

Expand Down Expand Up @@ -69,7 +69,7 @@ export default function () {
```javascript
import exec from 'k6/execution'

import { AWSConfig, SecretsManagerClient } from 'https://jslib.k6.io/aws/0.2.0/index.js'
import { AWSConfig, SecretsManagerClient } from 'https://jslib.k6.io/aws/0.3.0/secrets-manager.js'

const awsConfig = new AWSConfig(
__ENV.AWS_REGION,
Expand Down
16 changes: 9 additions & 7 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"presets": [
[
"@babel/preset-env"
]
],
"plugins": [ "@babel/plugin-transform-block-scoping"]
}
"presets": ["@babel/env", "@babel/typescript"],
"plugins": [
"@babel/proposal-class-properties",

"@babel/proposal-object-rest-spread",

"@babel/plugin-transform-block-scoping"
]
}
2 changes: 1 addition & 1 deletion build/aws.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/aws.min.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions build/s3.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/s3.min.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions build/secrets-manager.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/secrets-manager.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/s3.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import exec from 'k6/execution'

import { AWSConfig, S3Client } from '../build/aws.min.js'
import { AWSConfig, S3Client } from '../build/s3.min.js'

const testFile = open('./bonjour.txt', 'r')

Expand Down
6 changes: 3 additions & 3 deletions examples/secrets-manager.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import exec from 'k6/execution'

import { AWSConfig, SecretsManagerClient } from '../build/aws.min.js'
import { AWSConfig, SecretsManagerClient } from '../build/secrets-manager.min.js'

const awsConfig = new AWSConfig(
__ENV.AWS_REGION,
Expand Down Expand Up @@ -29,11 +29,11 @@ export default function () {

// Now that we know the secret exist, let's update its value
const newTestSecretValue = 'new-test-value'
secretsManager.putSecretValue(testSecretName, newTestSecretValue)
const u = secretsManager.putSecretValue(testSecretName, newTestSecretValue)

// Let's get its value and verify it was indeed updated
const updatedSecret = secretsManager.getSecret(testSecretName)
if (updatedSecret.secretString !== newTestSecretValue) {
if (updatedSecret.secret !== newTestSecretValue) {
exec.test.abort('unable to update test secret')
}

Expand Down
Loading

0 comments on commit f3c5863

Please sign in to comment.