Skip to content

Commit

Permalink
change test to cudos v5
Browse files Browse the repository at this point in the history
  • Loading branch information
iakov-aws committed Nov 13, 2023
1 parent 15f7b2f commit 77b5f7f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cid/test/bats/10-deploy-update-delete/cudos.bats
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ quicksight_datasource_id="${quicksight_datasource_id:-31c87a3c-8494-4f42-a590-c6

@test "Install" {
run cid-cmd -vv deploy \
--dashboard-id cudos \
--dashboard-id cudos-v5 \
--athena-database $database_name\
--account-map-source dummy \
--quicksight-user $quicksight_user \
Expand Down Expand Up @@ -45,14 +45,14 @@ quicksight_datasource_id="${quicksight_datasource_id:-31c87a3c-8494-4f42-a590-c6
@test "Dashboard created" {
run aws quicksight describe-dashboard \
--aws-account-id $account_id \
--dashboard-id cudos
--dashboard-id cudos-v5

[ "$status" -eq 0 ]
}

@test "Update works" {
run cid-cmd -vv --yes update --force --recursive \
--dashboard-id cudos \
--dashboard-id cudos-v5 \
--quicksight-user $quicksight_user \

[ "$status" -eq 0 ]
Expand All @@ -61,15 +61,15 @@ quicksight_datasource_id="${quicksight_datasource_id:-31c87a3c-8494-4f42-a590-c6

@test "Delete runs" {
run cid-cmd -vv --yes delete \
--dashboard-id cudos
--dashboard-id cudos-v5

[ "$status" -eq 0 ]
}

@test "Dashboard is deleted" {
run aws quicksight describe-dashboard \
--aws-account-id $account_id \
--dashboard-id cudos
--dashboard-id cudos-v5

[ "$status" -ne 0 ]
}
Expand Down

0 comments on commit 77b5f7f

Please sign in to comment.