-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature-role
- Loading branch information
Showing
10 changed files
with
139 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
|
||
__version__ = '0.2.24' | ||
__version__ = '0.2.25' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
cid/test/bats/20-init-quicksight/create-qs-subscription.bats
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/bats | ||
|
||
account_id=$(aws sts get-caller-identity --query "Account" --output text ) | ||
BATS_TEST_TIMEOUT=300 | ||
|
||
# Helper function for waiting for the requred SubscriptionStatus status. | ||
# TODO: add timeout | ||
function wait_subscription { | ||
status=$1 | ||
until (aws quicksight describe-account-subscription \ | ||
--aws-account-id $account_id \ | ||
--query AccountInfo.AccountSubscriptionStatus | grep -m 1 $status); | ||
do : | ||
sleep 5; | ||
done | ||
} | ||
|
||
@test "Delete Account Subscription" { | ||
aws quicksight update-account-settings \ | ||
--aws-account-id $account_id \ | ||
--default-namespace default \ | ||
--no-termination-protection-enabled | ||
aws quicksight delete-account-subscription --aws-account-id $account_id | ||
} | ||
|
||
@test "Waiting for SubscriptionStatus = UNSUBSCRIBED (can take 2 minutes)" { | ||
wait_subscription "UNSUBSCRIBED" | ||
} | ||
|
||
@test "Run cid-cmd initqs (can take 1 minute)" { | ||
run timeout 300 cid-cmd -vv initqs \ | ||
--enable-quicksight-enterprise yes \ | ||
--account-name $account_id \ | ||
--notification-email 'aaa@bb.com' | ||
|
||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "SubscriptionStatus is ACCOUNT_CREATED" { | ||
wait_subscription "ACCOUNT_CREATED" | ||
} | ||
|
||
@test "Edition is ENTERPRISE" { | ||
aws quicksight describe-account-subscription \ | ||
--aws-account-id $account_id \ | ||
--query AccountInfo.Edition | grep "ENTERPRISE" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters