File tree Expand file tree Collapse file tree
acceptance/cmd/auth/logout
stale-account-id-workspace-host Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ host = [DATABRICKS_URL]
1111auth_type = databricks-cli
1212
1313=== Delete the DEFAULT profile
14- >>> [CLI] auth logout --profile DEFAULT --force --delete
14+ >>> [CLI] auth logout --profile DEFAULT --auto-approve --delete
1515Logged out of and deleted profile "DEFAULT".
1616
1717=== Backup file should exist
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ title "Initial config\n"
1616cat "./home/.databrickscfg"
1717
1818title "Delete the DEFAULT profile"
19- trace $CLI auth logout --profile DEFAULT --force --delete
19+ trace $CLI auth logout --profile DEFAULT --auto-approve --delete
2020
2121title "Backup file should exist\n"
2222assert_backup_exists
Original file line number Diff line number Diff line change 44default_profile = workspace-a
55
66=== Delete the default profile
7- >>> [CLI] auth logout --profile workspace-a --force --delete
7+ >>> [CLI] auth logout --profile workspace-a --auto-approve --delete
88Deleted profile "workspace-a" with no tokens to clear.
99
1010=== Settings after deleting default — default_profile should be cleared
1111[__settings__]
1212
1313=== Delete a non-default profile
14- >>> [CLI] auth logout --profile workspace-b --force --delete
14+ >>> [CLI] auth logout --profile workspace-b --auto-approve --delete
1515Deleted profile "workspace-b" with no tokens to clear.
1616
1717=== Settings after deleting non-default — section should still be present but empty
Original file line number Diff line number Diff line change @@ -22,13 +22,13 @@ title "Initial settings section\n"
2222cat "./home/.databrickscfg" | grep -A1 __settings__
2323
2424title "Delete the default profile"
25- trace $CLI auth logout --profile workspace-a --force --delete
25+ trace $CLI auth logout --profile workspace-a --auto-approve --delete
2626
2727title "Settings after deleting default — default_profile should be cleared\n"
2828cat "./home/.databrickscfg" | grep -A1 __settings__
2929
3030title "Delete a non-default profile"
31- trace $CLI auth logout --profile workspace-b --force --delete
31+ trace $CLI auth logout --profile workspace-b --auto-approve --delete
3232
3333title "Settings after deleting non-default — section should still be present but empty\n"
3434cat "./home/.databrickscfg" | grep -A1 __settings__
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ host = https://dev.cloud.databricks.com
88token = dev-pat-token
99
1010=== Logout without --delete — should report no changes for non-U2M profile
11- >>> [CLI] auth logout --profile dev --force
11+ >>> [CLI] auth logout --profile dev --auto-approve
1212No tokens to clear for profile "dev". Use --delete to remove it from the config file.
1313
1414=== Config after logout — profile should be unchanged
@@ -20,7 +20,7 @@ host = https://dev.cloud.databricks.com
2020token = dev-pat-token
2121
2222=== Logout with --delete — should delete the profile
23- >>> [CLI] auth logout --profile dev --force --delete
23+ >>> [CLI] auth logout --profile dev --auto-approve --delete
2424Deleted profile "dev" with no tokens to clear.
2525
2626=== Backup file should exist
Original file line number Diff line number Diff line change @@ -13,13 +13,13 @@ title "Initial config\n"
1313cat "./home/.databrickscfg"
1414
1515title "Logout without --delete — should report no changes for non-U2M profile"
16- trace $CLI auth logout --profile dev --force
16+ trace $CLI auth logout --profile dev --auto-approve
1717
1818title "Config after logout — profile should be unchanged\n"
1919cat "./home/.databrickscfg"
2020
2121title "Logout with --delete — should delete the profile"
22- trace $CLI auth logout --profile dev --force --delete
22+ trace $CLI auth logout --profile dev --auto-approve --delete
2323
2424title "Backup file should exist\n"
2525assert_backup_exists
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ auth_type = databricks-cli
1010EOF
1111
1212title "Logout of non-existent profile\n"
13- errcode $CLI auth logout --profile nonexistent --force
13+ errcode $CLI auth logout --profile nonexistent --auto-approve
1414
1515title "Logout without --profile in non-interactive mode\n"
16- errcode $CLI auth logout --force
16+ errcode $CLI auth logout --auto-approve
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ host = [DATABRICKS_URL]
99auth_type = databricks-cli
1010
1111=== Delete the only non-default profile
12- >>> [CLI] auth logout --profile only-profile --force --delete
12+ >>> [CLI] auth logout --profile only-profile --auto-approve --delete
1313Logged out of and deleted profile "only-profile".
1414
1515=== Backup file should exist
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ title "Initial config\n"
1414cat "./home/.databrickscfg"
1515
1616title "Delete the only non-default profile"
17- trace $CLI auth logout --profile only-profile --force --delete
17+ trace $CLI auth logout --profile only-profile --auto-approve --delete
1818
1919title "Backup file should exist\n"
2020assert_backup_exists
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ account_id = account-id
2222auth_type = databricks-cli
2323
2424=== Delete first non-default profile (alpha)
25- >>> [CLI] auth logout --profile alpha --force --delete
25+ >>> [CLI] auth logout --profile alpha --auto-approve --delete
2626Logged out of and deleted profile "alpha".
2727
2828=== Backup file should exist
@@ -46,7 +46,7 @@ account_id = account-id
4646auth_type = databricks-cli
4747
4848=== Delete last profile (gamma)
49- >>> [CLI] auth logout --profile gamma --force --delete
49+ >>> [CLI] auth logout --profile gamma --auto-approve --delete
5050Logged out of and deleted profile "gamma".
5151
5252=== Config after deleting gamma
You can’t perform that action at this time.
0 commit comments