-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrated mod load test from flowpipe repo to pipe-fittings repo.
- Loading branch information
Showing
30 changed files
with
1,252 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
13 changes: 13 additions & 0 deletions
13
tests/flowpipe_mod_tests/backward_compatible_mod/.flowpipe/mods/[email protected]/mod.sp
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,13 @@ | ||
mod "mod_child_a" { | ||
title = "Child Mod A" | ||
} | ||
|
||
pipeline "this_pipeline_is_in_the_child" { | ||
step "echo" "foo" { | ||
text = "foo" | ||
} | ||
|
||
output "foo_a" { | ||
value = step.echo.foo.text | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
tests/flowpipe_mod_tests/backward_compatible_mod/.flowpipe/mods/[email protected]/mod.hcl
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,13 @@ | ||
mod "mod_child_b" { | ||
title = "Child Mod b" | ||
} | ||
|
||
pipeline "this_pipeline_is_in_the_child" { | ||
step "echo" "foo" { | ||
text = "foo" | ||
} | ||
|
||
output "foo_b" { | ||
value = step.echo.foo.text | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...s/flowpipe_mod_tests/backward_compatible_mod/.flowpipe/mods/[email protected]/pipe_a.hcl
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,9 @@ | ||
pipeline "another_child_pipeline" { | ||
step "echo" "foo" { | ||
text = "foo" | ||
} | ||
|
||
output "foo_b" { | ||
value = step.echo.foo.text | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...e_mod_tests/backward_compatible_mod/.flowpipe/mods/[email protected]/pipelines/pipe_a.sp
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,9 @@ | ||
pipeline "second_pipe_in_the_child" { | ||
step "echo" "foo" { | ||
text = "foo" | ||
} | ||
|
||
output "foo_b" { | ||
value = step.echo.foo.text | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...e_mod_tests/backward_compatible_mod/.flowpipe/mods/[email protected]/pipelines/pipes.hcl
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,9 @@ | ||
pipeline "nested_pipe_in_child_hcl" { | ||
step "echo" "foo" { | ||
text = "foo" | ||
} | ||
|
||
output "foo_b" { | ||
value = step.echo.foo.text | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
tests/flowpipe_mod_tests/backward_compatible_mod/.mod.cache.json
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,18 @@ | ||
{ | ||
"mod_parent": { | ||
"mod_child_a": { | ||
"name": "mod_child_a", | ||
"alias": "mod_child_a", | ||
"version": "1.0.0", | ||
"constraint": "*", | ||
"struct_version": 20220411 | ||
}, | ||
"mod_child_b": { | ||
"name": "mod_child_b", | ||
"alias": "mod_child_b", | ||
"version": "2.0.0", | ||
"constraint": "*", | ||
"struct_version": 20220411 | ||
} | ||
} | ||
} |
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,32 @@ | ||
mod "mod_parent" { | ||
title = "Parent Mod" | ||
require { | ||
mod "mod_child_a" { | ||
version = "1.0.0" | ||
} | ||
mod "mod_child_b" { | ||
version = "2.0.0" | ||
} | ||
} | ||
} | ||
|
||
pipeline "json" { | ||
step "echo" "json" { | ||
json = jsonencode({ | ||
Version = "2012-10-17" | ||
Statement = [ | ||
{ | ||
Action = [ | ||
"ec2:Describe*", | ||
] | ||
Effect = "Allow" | ||
Resource = "*" | ||
}, | ||
] | ||
}) | ||
} | ||
|
||
output "foo" { | ||
value = step.echo.json.json | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
tests/flowpipe_mod_tests/backward_compatible_mod/pipelines/pipes.hcl
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,9 @@ | ||
pipeline "parent_pipeline_hcl_nested" { | ||
step "echo" "foo" { | ||
text = "foo" | ||
} | ||
|
||
output "foo_b" { | ||
value = step.echo.foo.text | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
tests/flowpipe_mod_tests/backward_compatible_mod/pipelines/pipes.sp
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,9 @@ | ||
pipeline "parent_pipeline_sp_nested" { | ||
step "echo" "foo" { | ||
text = "foo" | ||
} | ||
|
||
output "foo_b" { | ||
value = step.echo.foo.text | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
tests/flowpipe_mod_tests/backward_compatible_mod/pipes.hcl
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 @@ | ||
pipeline "parent_pipeline_hcl" { | ||
step "echo" "foo" { | ||
text = "foo" | ||
} | ||
|
||
output "foo_b" { | ||
value = step.echo.foo.text | ||
} | ||
} | ||
|
||
|
||
pipeline "parent_pipeline_hcl_b" { | ||
step "echo" "foo" { | ||
text = "foo" | ||
} | ||
|
||
output "foo_b" { | ||
value = step.echo.foo.text | ||
} | ||
} |
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,10 @@ | ||
pipeline "parent_pipeline_sp" { | ||
step "echo" "foo" { | ||
text = "foo" | ||
} | ||
|
||
output "foo_b" { | ||
value = step.echo.foo.text | ||
} | ||
} | ||
|
Oops, something went wrong.