Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
flostadler committed Sep 30, 2024
1 parent 03487a3 commit 773327a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/cluster/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ const cluster1 = new eks.Cluster(`${projectName}-1`, {
nodeAmiId: "ami-066e69f6f03b5383e",
});

export const defaultAsgArn = cluster1.defaultNodeGroup.apply(ng => ng?.autoScalingGroup.arn ?? "");

const cluster2 = new eks.Cluster(`${projectName}-2`, {
vpcId: vpc.vpcId,
publicSubnetIds: vpc.publicSubnetIds,
Expand Down
2 changes: 2 additions & 0 deletions examples/examples_nodejs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ func TestAccCluster(t *testing.T) {
info.Outputs["kubeconfig4"],
)

assert.NotEmpty(t, info.Outputs["defaultAsgArn"], "should have a default ASG")

// let's test there's a iamRoleArn specified for the cluster
assert.NotEmpty(t, info.Outputs["iamRoleArn"])

Expand Down

0 comments on commit 773327a

Please sign in to comment.