You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/validate_input.feature
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,29 @@ Feature: validate input
27
27
Then the exit status should be 0
28
28
Then the output should match the snapshot
29
29
30
+
Scenario: valid policy URL with text output
31
+
Given a git repository named "happy-day-config" with
32
+
| policy.yaml | examples/happy_config.yaml |
33
+
Given a git repository named "happy-day-policy" with
34
+
| main.rego | examples/happy_day.rego |
35
+
Given a pipeline definition file named "pipeline_definition.yaml" containing
36
+
"""
37
+
---
38
+
apiVersion: tekton.dev/v1
39
+
kind: Pipeline
40
+
metadata:
41
+
name: basic-build
42
+
spec:
43
+
tasks:
44
+
- name: appstudio-init
45
+
taskRef:
46
+
name: init
47
+
version: "0.1"
48
+
"""
49
+
When ec command is run with "validate input --file pipeline_definition.yaml --policy git::https://${GITHOST}/git/happy-day-config.git --output text --show-successes --color"
50
+
Then the exit status should be 0
51
+
Then the output should match the snapshot
52
+
30
53
Scenario: policy URL with no rego files
31
54
Given a git repository named "sad-day-config" with
0 commit comments