-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added tests to ensure that variables can be set for 1st level mod dep…
…endency.
- Loading branch information
Showing
9 changed files
with
133 additions
and
13 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
40 changes: 40 additions & 0 deletions
40
tests/flowpipe_mod_tests/mod_variable/.flowpipe/mods/mod_depend_a@v1.0.0/mod.fp
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,40 @@ | ||
mod "mod_depend_a" { | ||
title = "Child mod A" | ||
} | ||
|
||
pipeline "echo_one_depend_a" { | ||
step "transform" "echo_one" { | ||
value = "Hello World from Depend A" | ||
} | ||
|
||
output "val" { | ||
value = step.transform.echo_one.value | ||
} | ||
} | ||
|
||
pipeline "with_github_creds" { | ||
param "creds" { | ||
type = string | ||
} | ||
} | ||
|
||
pipeline "http" { | ||
description = "Bad HTTP step, just one step in the pipeline." | ||
|
||
step "http" "my_step_1" { | ||
url = "https://www.google.coms" | ||
} | ||
|
||
output "http" { | ||
value = step.http.my_step_1.response_body | ||
} | ||
} | ||
|
||
|
||
trigger "schedule" "http_step_trigger_in_a" { | ||
schedule = "* * * * *" | ||
|
||
enabled = false | ||
|
||
pipeline = pipeline.http | ||
} |
25 changes: 25 additions & 0 deletions
25
tests/flowpipe_mod_tests/mod_variable/.flowpipe/mods/mod_depend_a_1@v1.0.0/mod.fp
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 @@ | ||
mod "mod_depend_a_1" { | ||
title = "Child mod A.1" | ||
} | ||
|
||
|
||
pipeline "http" { | ||
description = "Bad HTTP step, just one step in the pipeline." | ||
|
||
step "http" "my_step_1" { | ||
url = "https://www.google.coms" | ||
} | ||
|
||
output "http" { | ||
value = step.http.my_step_1.response_body | ||
} | ||
} | ||
|
||
|
||
trigger "schedule" "http_step_trigger_in_a1" { | ||
schedule = "* * * * *" | ||
|
||
enabled = false | ||
|
||
pipeline = pipeline.http | ||
} |
7 changes: 7 additions & 0 deletions
7
tests/flowpipe_mod_tests/mod_variable/.flowpipe/mods/mod_depend_b@v1.0.0/mod.fp
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,7 @@ | ||
mod "mod_depend_b" { | ||
title = "Child mod B" | ||
} | ||
|
||
pipeline "echo_b" { | ||
description = "description from variable ${var.var_b_number}" | ||
} |
4 changes: 4 additions & 0 deletions
4
tests/flowpipe_mod_tests/mod_variable/.flowpipe/mods/mod_depend_b@v1.0.0/variables.fp
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 @@ | ||
variable "var_b_number" { | ||
type = number | ||
default = 300 | ||
} |
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,24 @@ | ||
{ | ||
"mod_depend_a@v1.0.0": { | ||
"mod_depend_a_1": { | ||
"version": "1.0.0", | ||
"name": "mod_depend_a_1", | ||
"struct_version": 20240429, | ||
"alias": "mod_depend_a_1" | ||
} | ||
}, | ||
"test_mod": { | ||
"mod_depend_a": { | ||
"version": "1.0.0", | ||
"name": "mod_depend_a", | ||
"struct_version": 20240429, | ||
"alias": "mod_depend_a" | ||
}, | ||
"mod_depend_b": { | ||
"version": "1.0.0", | ||
"name": "mod_depend_b", | ||
"struct_version": 20240429, | ||
"alias": "mod_depend_b" | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
|
||
var_two = "value from var file" | ||
var_three = "var_three from var file" | ||
|
||
var_three = "var_three from var file" | ||
|
||
mod_depend_b.var_b_number = 42 |
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
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