-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
141 additions
and
1 deletion.
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
11 changes: 11 additions & 0 deletions
11
tests/acceptance/test_data/mods/mod_with_db_steampipe_search_path/mod.pp
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,11 @@ | ||
variable "database" { | ||
type = connection | ||
default = connection.steampipe.with_search_path_prefix | ||
} | ||
|
||
mod "mod_with_db_steampipe_search_path"{ | ||
title = "Mod with database defined which is a steampipe connection ref" | ||
description = "This is a simple mod used for testing the database precedence. This mod has a database(steampipe connection) specified in the mod.pp. The steampipe connection has a search_path_prefix defined." | ||
database = var.database | ||
} | ||
|
5 changes: 5 additions & 0 deletions
5
tests/acceptance/test_data/mods/mod_with_db_steampipe_search_path/query.pp
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,5 @@ | ||
query "search_path" { | ||
sql = <<-EOQ | ||
SHOW search_path; | ||
EOQ | ||
} |
11 changes: 11 additions & 0 deletions
11
tests/acceptance/test_data/mods/mod_with_resource_db_steampipe_search_path/mod.pp
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,11 @@ | ||
variable "database" { | ||
type = connection | ||
default = connection.steampipe.with_search_path_prefix | ||
} | ||
|
||
mod "mod_with_resource_db_steampipe_search_path"{ | ||
title = "Mod with database defined which is a steampipe connection ref" | ||
description = "This is a simple mod used for testing the database precedence. This mod has a database(steampipe connection) specified in the mod.pp. The steampipe connection has a search_path_prefix defined. This mod has a query resource with a database defined." | ||
database = var.database | ||
} | ||
|
6 changes: 6 additions & 0 deletions
6
tests/acceptance/test_data/mods/mod_with_resource_db_steampipe_search_path/query.pp
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,6 @@ | ||
query "search_path" { | ||
database = connection.steampipe.with_search_path_prefix_bar | ||
sql = <<-EOQ | ||
SHOW search_path; | ||
EOQ | ||
} |
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