-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update more tests to get rid of NativeAppManager (#1724)
Convert package post-deploy tests and one skipped integration tests to remove use of `NativeAppManager`.
- Loading branch information
1 parent
35e4242
commit 7e0950c
Showing
9 changed files
with
135 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
Empty file.
20 changes: 20 additions & 0 deletions
20
tests/test_data/projects/napp_post_deploy_missing_file_v2/snowflake.yml
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,20 @@ | ||
definition_version: '2' | ||
entities: | ||
myapp_pkg: | ||
type: application package | ||
identifier: <% fn.concat_ids('myapp', '_pkg_', fn.sanitize_id(fn.get_username('unknown_user')) | lower) %> | ||
artifacts: | ||
- src: app/* | ||
dest: ./ | ||
manifest: app/manifest.yml | ||
meta: | ||
post_deploy: | ||
- sql_script: scripts/package_missing_script.sql | ||
myapp: | ||
type: application | ||
identifier: <% fn.concat_ids('myapp', '_', fn.sanitize_id(fn.get_username('unknown_user')) | lower) %> | ||
from: | ||
target: myapp_pkg | ||
meta: | ||
post_deploy: | ||
- sql_script: scripts/missing.sql |
4 changes: 4 additions & 0 deletions
4
tests/test_data/projects/napp_post_deploy_v2/scripts/app_post_deploy1.sql
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,4 @@ | ||
-- app post-deploy script (1/2) | ||
|
||
select <% ctx.entities.myapp.identifier %>; | ||
select <% ctx.env.foo %>; |
1 change: 1 addition & 0 deletions
1
tests/test_data/projects/napp_post_deploy_v2/scripts/app_post_deploy2.sql
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 @@ | ||
-- app post-deploy script (2/2) |
4 changes: 4 additions & 0 deletions
4
tests/test_data/projects/napp_post_deploy_v2/scripts/package_post_deploy1.sql
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,4 @@ | ||
-- package post-deploy script (1/2) | ||
|
||
select <% ctx.entities.myapp.identifier %>; | ||
select <% ctx.env.package_foo %>; |
1 change: 1 addition & 0 deletions
1
tests/test_data/projects/napp_post_deploy_v2/scripts/package_post_deploy2.sql
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 @@ | ||
-- package post-deploy script (2/2) |
25 changes: 25 additions & 0 deletions
25
tests/test_data/projects/napp_post_deploy_v2/snowflake.yml
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,25 @@ | ||
definition_version: 2 | ||
entities: | ||
myapp_pkg: | ||
type: application package | ||
identifier: <% fn.concat_ids('myapp', '_pkg_', fn.sanitize_id(fn.get_username('unknown_user')) | lower) %> | ||
artifacts: | ||
- src: app/* | ||
dest: ./ | ||
manifest: app/manifest.yml | ||
meta: | ||
post_deploy: | ||
- sql_script: scripts/package_post_deploy1.sql | ||
- sql_script: scripts/package_post_deploy2.sql | ||
myapp: | ||
type: application | ||
identifier: myapp | ||
from: | ||
target: myapp_pkg | ||
meta: | ||
post_deploy: | ||
- sql_script: scripts/app_post_deploy1.sql | ||
- sql_script: scripts/app_post_deploy2.sql | ||
env: | ||
foo: bar | ||
package_foo: package_bar |
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