@@ -3,13 +3,13 @@ pipeline "test_branch_operations" {
33 description = "Test the create_branch, get_branch, and delete_branch pipelines."
44
55 tags = {
6- type = "test "
6+ folder = "Tests "
77 }
88
9- param "cred " {
10- type = string
11- description = local.cred_param_description
12- default = " default "
9+ param "conn " {
10+ type = connection.github
11+ description = local.conn_param_description
12+ default = connection.github. default
1313 }
1414
1515 param "repository_owner" {
@@ -26,7 +26,7 @@ pipeline "test_branch_operations" {
2626
2727 step "transform" "args" {
2828 value = {
29- cred = param.cred
29+ conn = param.conn
3030 repository_owner = param.repository_owner
3131 repository_name = param.repository_name
3232 branch_name = param.branch_name
@@ -51,15 +51,15 @@ pipeline "test_branch_operations" {
5151 }
5252
5353 output "check_create_branch" {
54- value = step .pipeline.create_branch.output.branch.status_code == 201 ? "pass" : "fail"
54+ value = step .pipeline.create_branch.output.branch.status_code == 201 ? "pass" : "fail"
5555 }
5656
5757 output "check_get_branch" {
58- value = step .pipeline.get_branch.output.branch.status_code == 200 ? "pass" : "fail"
58+ value = step .pipeline.get_branch.output.branch.status_code == 200 ? "pass" : "fail"
5959 }
6060
6161 output "check_delete_branch" {
62- value = step .pipeline.delete_branch.output.branch.status_code == 204 ? "pass" : "fail"
62+ value = step .pipeline.delete_branch.output.branch.status_code == 204 ? "pass" : "fail"
6363 }
6464
6565}
0 commit comments