Skip to content

Commit 1b3af30

Browse files
author
Varun Deep Saini
committed
Updated existing tests
Signed-off-by: Varun Deep Saini <varun.23bcs10048@ms.sst.scaler.com>
1 parent 0e7c9fa commit 1b3af30

File tree

85 files changed

+355
-169
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+355
-169
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
>>> [CLI] bundle deploy
3+
Uploading whl/source.whl...
4+
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
5+
Deploying resources...
6+
Updating deployment state...
7+
Deployment complete!
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
>>> [CLI] bundle deploy
3+
Uploading whl/source.whl...
4+
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
5+
Deploying resources...
6+
Deployment complete!

acceptance/bundle/artifacts/artifact_upload_with_no_library_reference/output.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11

2-
>>> [CLI] bundle deploy
3-
Uploading whl/source.whl...
4-
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
5-
Deploying resources...
6-
Deployment complete!
7-
82
=== Expecting wheel to be uploaded
93
>>> jq .path
104
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/whl/source.whl"

acceptance/bundle/artifacts/artifact_upload_with_no_library_reference/script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
mkdir -p whl
33
echo "test wheel content" > whl/source.whl
44

5-
trace $CLI bundle deploy
5+
trace $CLI bundle deploy > out.deploy.$DATABRICKS_BUNDLE_ENGINE.txt 2>&1
66

77
title "Expecting wheel to be uploaded"
88
trace jq .path < out.requests.txt | grep import | grep whl | sort

acceptance/bundle/artifacts/artifact_upload_with_no_library_reference/test.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
RecordRequests = true
2+
EnvVaryOutput = "DATABRICKS_BUNDLE_ENGINE"
23
Ignore = [
34
'.venv',
45
'dist',
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
>>> errcode [CLI] bundle deploy
3+
Building artifact_with_custom_dist...
4+
Uploading mydist/my_test_code-0.0.1-py3-none-any.whl...
5+
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
6+
Deploying resources...
7+
Updating deployment state...
8+
Deployment complete!
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
>>> errcode [CLI] bundle deploy
3+
Building artifact_with_custom_dist...
4+
Uploading mydist/my_test_code-0.0.1-py3-none-any.whl...
5+
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
6+
Deploying resources...
7+
Deployment complete!

acceptance/bundle/artifacts/build_and_files_whl/output.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,3 @@ Workspace:
77
Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default
88

99
Validation OK!
10-
11-
>>> errcode [CLI] bundle deploy
12-
Building artifact_with_custom_dist...
13-
Uploading mydist/my_test_code-0.0.1-py3-none-any.whl...
14-
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
15-
Deploying resources...
16-
Deployment complete!
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cp -r $TESTDIR/../whl_explicit/my_test_code/{setup.py,src} .
22
trace $CLI bundle validate
33
# I expect this deploy to work because I explicitly told where to find the wheel, but it does not:
4-
trace errcode $CLI bundle deploy
4+
trace errcode $CLI bundle deploy > out.deploy.$DATABRICKS_BUNDLE_ENGINE.txt 2>&1
55
rm mydist/my_test_code-0.0.1-py3-none-any.whl setup.py src/*.py
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
RecordRequests = false
2+
EnvVaryOutput = "DATABRICKS_BUNDLE_ENGINE"

0 commit comments

Comments
 (0)