Skip to content

Commit

Permalink
test: what is even going on
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhe committed Oct 30, 2024
1 parent 7b6a9a3 commit 2e2d3cb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion tests/e2e/delete-stale-changesets.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { ListChangeSetsCommand, DeleteChangeSetCommand } = require("../../clients/client-cloudformation");
const { ListChangeSetsCommand, DeleteChangeSetCommand } = require("@aws-sdk/client-cloudformation");

exports.deleteStaleChangesets = async (client, stackName) => {
const changesets = await client.send(
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/ensure-test-stack.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const {
waitUntilStackCreateComplete,
DescribeChangeSetCommand,
DeleteChangeSetCommand,
} = require("../../clients/client-cloudformation");
} = require("@aws-sdk/client-cloudformation");

/**
* Deploy the integration test stack if it does not exist. Update the
Expand Down
15 changes: 6 additions & 9 deletions tests/e2e/get-integ-test-resources.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const { readFileSync } = require("fs");
const { join } = require("path");
const { STSClient, GetCallerIdentityCommand } = require("../../clients/client-sts");
const { CloudFormationClient, DescribeStackResourcesCommand } = require("../../clients/client-cloudformation");
const { S3ControlClient, ListMultiRegionAccessPointsCommand } = require("../../clients/client-s3-control");
const { STSClient, GetCallerIdentityCommand } = require("@aws-sdk/client-sts");
const { CloudFormationClient, DescribeStackResourcesCommand } = require("@aws-sdk/client-cloudformation");
const { S3ControlClient, ListMultiRegionAccessPointsCommand } = require("@aws-sdk/client-s3-control");
const { ensureTestStack } = require("./ensure-test-stack");
const { deleteStaleChangesets } = require("./delete-stale-changesets");
const { loadSharedConfigFiles } = require("@smithy/shared-ini-file-loader");
const { fromIni } = require("@aws-sdk/credential-providers");
const { createCredentialChain, fromIni, fromHttp } = require("@aws-sdk/credential-providers");

exports.getIntegTestResources = async () => {
const ini = await loadSharedConfigFiles();
Expand All @@ -17,15 +17,12 @@ exports.getIntegTestResources = async () => {
console.log("AWS_PROFILE is", process.env.AWS_PROFILE);
}

// TODO(debug)
console.log({
config: ini.configFile,
credentials: ini.credentialsFile,
});
const credentials = fromIni({ profile: process.env.AWS_PROFILE ?? "default", logger: console });

const region = "us-west-2";
const cloudformation = new CloudFormationClient({
region,
credentials,
});
const stackName = "SdkReleaseV3IntegTestResourcesStack";

Expand Down

0 comments on commit 2e2d3cb

Please sign in to comment.