Skip to content
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

Add aws v0.10.0 #108

Merged
merged 1 commit into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/aws/0.10.0/aws.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/aws/0.10.0/aws.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
1 change: 1 addition & 0 deletions lib/aws/0.10.0/aws.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions lib/aws/0.10.0/event-bridge.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/aws/0.10.0/event-bridge.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
1 change: 1 addition & 0 deletions lib/aws/0.10.0/event-bridge.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions lib/aws/0.10.0/index.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/aws/0.10.0/index.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
1 change: 1 addition & 0 deletions lib/aws/0.10.0/index.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions lib/aws/0.10.0/kinesis.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/aws/0.10.0/kinesis.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
1 change: 1 addition & 0 deletions lib/aws/0.10.0/kinesis.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions lib/aws/0.10.0/kms.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/aws/0.10.0/kms.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
1 change: 1 addition & 0 deletions lib/aws/0.10.0/kms.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions lib/aws/0.10.0/s3.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/aws/0.10.0/s3.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
1 change: 1 addition & 0 deletions lib/aws/0.10.0/s3.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions lib/aws/0.10.0/secrets-manager.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/aws/0.10.0/secrets-manager.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
1 change: 1 addition & 0 deletions lib/aws/0.10.0/secrets-manager.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions lib/aws/0.10.0/signature.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/aws/0.10.0/signature.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions lib/aws/0.10.0/sqs.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/aws/0.10.0/sqs.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
1 change: 1 addition & 0 deletions lib/aws/0.10.0/sqs.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions lib/aws/0.10.0/ssm.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/aws/0.10.0/ssm.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
1 change: 1 addition & 0 deletions lib/aws/0.10.0/ssm.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ <h2>Available libs</h2>
<td><a href="https://www.npmjs.com/package/kahwah">https://www.npmjs.com/package/kahwah</a></td>
</tr><tr>
<td>aws</td>
<td><a target="_blank" href="https://jslib.k6.io/aws/0.1.0/aws.js">0.1.0</a>, <a target="_blank" href="https://jslib.k6.io/aws/0.3.0/aws.js">0.3.0</a>, <a target="_blank" href="https://jslib.k6.io/aws/0.4.0/aws.js">0.4.0</a>, <a target="_blank" href="https://jslib.k6.io/aws/0.5.0/aws.js">0.5.0</a>, <a target="_blank" href="https://jslib.k6.io/aws/0.6.0/aws.js">0.6.0</a>, <a target="_blank" href="https://jslib.k6.io/aws/0.7.0/aws.js">0.7.0</a>, <a target="_blank" href="https://jslib.k6.io/aws/0.7.1/aws.js">0.7.1</a>, <a target="_blank" href="https://jslib.k6.io/aws/0.7.2/aws.js">0.7.2</a>, <a target="_blank" href="https://jslib.k6.io/aws/0.8.0/aws.js">0.8.0</a>, <a target="_blank" href="https://jslib.k6.io/aws/0.8.1/aws.js">0.8.1</a>, <a target="_blank" href="https://jslib.k6.io/aws/0.9.0/aws.js">0.9.0</a></td>
<td><a target="_blank" href="https://jslib.k6.io/aws/0.1.0/aws.js">0.1.0</a>, <a target="_blank" href="https://jslib.k6.io/aws/0.3.0/aws.js">0.3.0</a>, <a target="_blank" href="https://jslib.k6.io/aws/0.4.0/aws.js">0.4.0</a>, <a target="_blank" href="https://jslib.k6.io/aws/0.5.0/aws.js">0.5.0</a>, <a target="_blank" href="https://jslib.k6.io/aws/0.6.0/aws.js">0.6.0</a>, <a target="_blank" href="https://jslib.k6.io/aws/0.7.0/aws.js">0.7.0</a>, <a target="_blank" href="https://jslib.k6.io/aws/0.7.1/aws.js">0.7.1</a>, <a target="_blank" href="https://jslib.k6.io/aws/0.7.2/aws.js">0.7.2</a>, <a target="_blank" href="https://jslib.k6.io/aws/0.8.0/aws.js">0.8.0</a>, <a target="_blank" href="https://jslib.k6.io/aws/0.8.1/aws.js">0.8.1</a>, <a target="_blank" href="https://jslib.k6.io/aws/0.9.0/aws.js">0.9.0</a>, <a target="_blank" href="https://jslib.k6.io/aws/0.10.0/aws.js">0.10.0</a></td>
<td><a href="https://k6.io/docs/javascript-api/jslib/aws/">https://k6.io/docs/javascript-api/jslib/aws/</a></td>
</tr>
</table>
Expand Down
3 changes: 2 additions & 1 deletion supported.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
"0.7.2",
"0.8.0",
"0.8.1",
"0.9.0"
"0.9.0",
"0.10.0"
],
"bundle-filename": "aws.js",
"docs-url": "https://k6.io/docs/javascript-api/jslib/aws/"
Expand Down
28 changes: 21 additions & 7 deletions tests/aws.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,24 @@ import {
S3Client as globalS3Client,
SecretsManagerClient as globalSecretsManagerClient,
KMSClient as globalKMSClient,
} from '../lib/aws/0.8.0/aws.js'
import { AWSConfig as s3AWSConfig, S3Client as s3S3Client } from '../lib/aws/0.8.0/s3.js'
KinesisClient as globalKinesisClient,
EventBridgeClient as globalEventBridgeClient,
} from '../lib/aws/0.10.0/aws.js'
import { AWSConfig as s3AWSConfig, S3Client as s3S3Client } from '../lib/aws/0.10.0/s3.js'
import {
AWSConfig as smAWSConfig,
SecretsManagerClient as smSecretsManagerClient,
} from '../lib/aws/0.8.0/secrets-manager.js'
import { AWSConfig as kmsAWSConfig, KMSClient as kmsKMSClient } from '../lib/aws/0.8.0/kms.js'
import { SignatureV4 } from '../lib/aws/0.8.0/signature.js'
} from '../lib/aws/0.10.0/secrets-manager.js'
import { AWSConfig as kmsAWSConfig, KMSClient as kmsKMSClient } from '../lib/aws/0.10.0/kms.js'
import { SignatureV4 } from '../lib/aws/0.10.0/signature.js'
import {
AWSConfig as kinesisAWSConfig,
KinesisClient as kinesisKinesisClient,
} from '../lib/aws/0.8.0/kinesis.js'
} from '../lib/aws/0.10.0/kinesis.js'
import {
AWSConfig as eventBridgeAWSConfig,
EventBridgeClient as eventBridgeEventBridgeClient,
} from '../lib/aws/0.10.0/event-bridge.js'

function testAWS() {
// We can't really test the underlying AWS implementation
Expand All @@ -29,7 +35,8 @@ function testAWS() {
let s3 = new globalS3Client(awsConfig)
let secretsManager = new globalSecretsManagerClient(awsConfig)
let kms = new globalKMSClient(awsConfig)
let kinesis = new globalKMSClient(awsConfig)
let kinesis = new globalKinesisClient(awsConfig)
let eventBridge = new globalEventBridgeClient(awsConfig)

// Here we test that the s3.js exposed API corresponds
// to our expectations.
Expand Down Expand Up @@ -73,6 +80,13 @@ function testAWS() {
secretAccessKey: 'aws_secret_access_key',
},
})

awsConfig = new eventBridgeAWSConfig({
region: 'us-east-1',
accessKeyId: 'aws_access_key_id',
secretAccessKey: 'aws_secret_access_key',
})
eventBridge = new eventBridgeEventBridgeClient(awsConfig)
}

export { testAWS }
Loading