Skip to content

Commit

Permalink
Add aws v0.12.0 (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
oleiade authored May 13, 2024
1 parent 1ad6818 commit 1c81e86
Show file tree
Hide file tree
Showing 35 changed files with 77 additions and 12 deletions.
3 changes: 3 additions & 0 deletions lib/aws/0.12.0/aws.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/aws/0.12.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.12.0/aws.js.map

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/aws/0.12.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.12.0/event-bridge.js.map

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/aws/0.12.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.12.0/index.js.map

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/aws/0.12.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.12.0/kinesis.js.map

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/aws/0.12.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.12.0/kms.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions lib/aws/0.12.0/lambda.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/aws/0.12.0/lambda.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.12.0/lambda.js.map

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/aws/0.12.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.12.0/s3.js.map

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/aws/0.12.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.12.0/secrets-manager.js.map

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/aws/0.12.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.12.0/sqs.js.map

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/aws/0.12.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.12.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>, <a target="_blank" href="https://jslib.k6.io/aws/0.10.0/aws.js">0.10.0</a>, <a target="_blank" href="https://jslib.k6.io/aws/0.11.0/aws.js">0.11.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>, <a target="_blank" href="https://jslib.k6.io/aws/0.11.0/aws.js">0.11.0</a>, <a target="_blank" href="https://jslib.k6.io/aws/0.12.0/aws.js">0.12.0</a></td>
<td><a href="https://grafana.com/docs/k6/latest/javascript-api/jslib/aws">https://grafana.com/docs/k6/latest/javascript-api/jslib/aws</a></td>
</tr><tr>
<td>http-instrumentation-pyroscope</td>
Expand Down
7 changes: 3 additions & 4 deletions supported.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,14 @@
"0.8.1",
"0.9.0",
"0.10.0",
"0.11.0"
"0.11.0",
"0.12.0"
],
"bundle-filename": "aws.js",
"docs-url": "https://grafana.com/docs/k6/latest/javascript-api/jslib/aws"
},
"http-instrumentation-pyroscope": {
"versions": [
"1.0.0"
],
"versions": ["1.0.0"],
"docs-url": "https://grafana.com/docs/k6/latest/javascript-api/jslib/http-instrumentation-pyroscope/"
}
}
27 changes: 20 additions & 7 deletions tests/aws.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,28 @@ import {
SecretsManagerClient as globalSecretsManagerClient,
KMSClient as globalKMSClient,
KinesisClient as globalKinesisClient,
LambdaClient as globalLambdaClient,
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'
} from '../lib/aws/0.12.0/aws.js'
import { AWSConfig as s3AWSConfig, S3Client as s3S3Client } from '../lib/aws/0.12.0/s3.js'
import {
AWSConfig as smAWSConfig,
SecretsManagerClient as smSecretsManagerClient,
} 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'
} from '../lib/aws/0.12.0/secrets-manager.js'
import { AWSConfig as kmsAWSConfig, KMSClient as kmsKMSClient } from '../lib/aws/0.12.0/kms.js'
import { SignatureV4 } from '../lib/aws/0.12.0/signature.js'
import {
AWSConfig as kinesisAWSConfig,
KinesisClient as kinesisKinesisClient,
} from '../lib/aws/0.10.0/kinesis.js'
} from '../lib/aws/0.12.0/kinesis.js'
import {
AWSConfig as lambdaAWSConfig,
LambdaClient as lambdaLambdaClient,
} from '../lib/aws/0.12.0/lambda.js'
import {
AWSConfig as eventBridgeAWSConfig,
EventBridgeClient as eventBridgeEventBridgeClient,
} from '../lib/aws/0.10.0/event-bridge.js'
} from '../lib/aws/0.12.0/event-bridge.js'

function testAWS() {
// We can't really test the underlying AWS implementation
Expand All @@ -36,6 +41,7 @@ function testAWS() {
let secretsManager = new globalSecretsManagerClient(awsConfig)
let kms = new globalKMSClient(awsConfig)
let kinesis = new globalKinesisClient(awsConfig)
let lambda = new globalLambdaClient(awsConfig)
let eventBridge = new globalEventBridgeClient(awsConfig)

// Here we test that the s3.js exposed API corresponds
Expand Down Expand Up @@ -72,6 +78,13 @@ function testAWS() {
})
kinesis = new kinesisKinesisClient(awsConfig)

awsConfig = new lambdaAWSConfig({
region: 'us-east-1',
accessKeyId: 'aws_access_key_id',
secretAccessKey: 'aws_secret_access_key',
})
lambda = new lambdaLambdaClient(awsConfig)

let signer = new SignatureV4({
service: 's3',
region: 'us-east-1',
Expand Down

0 comments on commit 1c81e86

Please sign in to comment.