Skip to content

Commit 0f40c5c

Browse files
committed
acceptance tests for experimental ssh command
1 parent 5c0aa32 commit 0f40c5c

9 files changed

Lines changed: 50 additions & 0 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# not actually checked by tests
2+
cluster ssh-rsa key

acceptance/ssh/connect-dedicated-cluster/out.test.toml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Connecting to [TEST_DEFAULT_CLUSTER_ID]...
2+
Checking cluster state...
3+
Uploading binaries...
4+
Starting SSH server...
5+
Job submitted successfully with run ID: [NUMID]
6+
Health check successful, starting ssh WebSocket connection...
7+
Connected!
8+
Checking cluster state...
9+
Warning: Permanently added '[TEST_DEFAULT_CLUSTER_ID]' (RSA) to the list of known hosts.
10+
Connection successful
11+
Received termination signal, cleaning up...
12+
Error: context canceled
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$CLI ssh connect --cluster=$TEST_DEFAULT_CLUSTER_ID --user-known-hosts-file=known_hosts --releases-dir=$CLI_RELEASES_DIR -- "echo 'Connection successful'"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Local = false
2+
Cloud = true
3+
RequiresCluster = true
4+
5+
[EnvMatrix]
6+
DATABRICKS_BUNDLE_ENGINE = ["direct"]

acceptance/ssh/connect-serverless-cpu/out.test.toml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Connecting to databricks-cpu-6e7644d0...
2+
WARNING: serverless compute without an accelerator is in private preview. If you are not enrolled, this command will likely time out with an error. Contact your Databricks account team to enroll.
3+
Uploading binaries...
4+
Starting SSH server...
5+
Job submitted successfully with run ID: [NUMID]
6+
Error: failed to ensure that ssh server is running: failed to start the ssh server: server metadata error
7+
server is not ok, status code 503
8+
9+
This may be because serverless compute without an accelerator is in private preview.
10+
Contact your Databricks account team to enroll.
11+
12+
Exit code: 1
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$CLI ssh connect --releases-dir=$CLI_RELEASES_DIR
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Local = false
2+
Cloud = true
3+
4+
# Serverless worklaods are only available in newer environments
5+
RequiresUnityCatalog = true
6+
7+
[EnvMatrix]
8+
DATABRICKS_BUNDLE_ENGINE = ["direct"]

0 commit comments

Comments
 (0)