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
aap_policy_examples.project_scm_branch_validation.allowed ==true withinput as test_input
12
+
}
13
+
14
+
test_valid_v1_branch_allowed if {
15
+
test_input := {
16
+
"project": {
17
+
"scm_branch": "v1"
18
+
}
19
+
}
20
+
aap_policy_examples.project_scm_branch_validation.allowed ==true withinput as test_input
21
+
}
22
+
23
+
test_invalid_branch_blocked if {
24
+
test_input := {
25
+
"project": {
26
+
"scm_branch": "develop"
27
+
}
28
+
}
29
+
aap_policy_examples.project_scm_branch_validation.allowed ==false withinput as test_input
30
+
}
31
+
32
+
test_invalid_branch_violation_message if {
33
+
test_input := {
34
+
"project": {
35
+
"scm_branch": "develop"
36
+
}
37
+
}
38
+
aap_policy_examples.project_scm_branch_validation.violations[0] =="Invalid branch: develop. Only named 'main' or 'v1' branches are allowed." withinput as test_input
0 commit comments