Skip to content

Commit 7d116df

Browse files
authored
Merge pull request #3505 from simonbaird/restore-commented-out-test
Restore commented out acceptance test scenario
2 parents a94dbb6 + 2d699e2 commit 7d116df

1 file changed

Lines changed: 19 additions & 20 deletions

File tree

‎features/validate_image.feature‎

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1461,26 +1461,25 @@ Feature: evaluate enterprise contract
14611461
Then the exit status should be 0
14621462
Then the output should match the snapshot
14631463

1464-
# Commented out as part of EC-1023. This will be enabled once the issue is resolved.
1465-
# Scenario: many components and sources
1466-
# Given a key pair named "known"
1467-
# And a git repository named "multitude-policy" with
1468-
# | main.rego | examples/happy_day.rego |
1469-
# And policy configuration named "ec-policy" with 10 policy sources from "git::https://${GITHOST}/git/multitude-policy.git", patched with
1470-
# | [{"op": "add", "path": "/sources/0/ruleData", "value": {"key": "value"}}] |
1471-
# | [{"op": "add", "path": "/sources/1/ruleData", "value": {"something": "here"}}] |
1472-
# | [{"op": "add", "path": "/sources/2/ruleData", "value": {"key": "different"}}] |
1473-
# | [{"op": "add", "path": "/sources/3/ruleData", "value": {"hello": "world"}}] |
1474-
# | [{"op": "add", "path": "/sources/4/ruleData", "value": {"foo": "bar"}}] |
1475-
# | [{"op": "add", "path": "/sources/5/ruleData", "value": {"peek": "poke"}}] |
1476-
# | [{"op": "add", "path": "/sources/6/ruleData", "value": {"hide": "seek"}}] |
1477-
# | [{"op": "add", "path": "/sources/7/ruleData", "value": {"hokus": "pokus"}}] |
1478-
# | [{"op": "add", "path": "/sources/8/ruleData", "value": {"mr": "mxyzptlk"}}] |
1479-
# | [{"op": "add", "path": "/sources/9/ruleData", "value": {"more": "data"}}] |
1480-
# And an Snapshot named "multitude" with 10 components signed with "known" key
1481-
# When ec command is run with "validate image --snapshot acceptance/multitude --policy acceptance/ec-policy --public-key ${known_PUBLIC_KEY} --rekor-url ${REKOR} --show-successes --output json"
1482-
# Then the exit status should be 0
1483-
# And the output should match the snapshot
1464+
Scenario: many components and sources
1465+
Given a key pair named "known"
1466+
And a git repository named "multitude-policy" with
1467+
| main.rego | examples/happy_day.rego |
1468+
And policy configuration named "ec-policy" with 10 policy sources from "git::https://${GITHOST}/git/multitude-policy.git", patched with
1469+
| [{"op": "add", "path": "/sources/0/ruleData", "value": {"key": "value"}}] |
1470+
| [{"op": "add", "path": "/sources/1/ruleData", "value": {"something": "here"}}] |
1471+
| [{"op": "add", "path": "/sources/2/ruleData", "value": {"key": "different"}}] |
1472+
| [{"op": "add", "path": "/sources/3/ruleData", "value": {"hello": "world"}}] |
1473+
| [{"op": "add", "path": "/sources/4/ruleData", "value": {"foo": "bar"}}] |
1474+
| [{"op": "add", "path": "/sources/5/ruleData", "value": {"peek": "poke"}}] |
1475+
| [{"op": "add", "path": "/sources/6/ruleData", "value": {"hide": "seek"}}] |
1476+
| [{"op": "add", "path": "/sources/7/ruleData", "value": {"hokus": "pokus"}}] |
1477+
| [{"op": "add", "path": "/sources/8/ruleData", "value": {"mr": "mxyzptlk"}}] |
1478+
| [{"op": "add", "path": "/sources/9/ruleData", "value": {"more": "data"}}] |
1479+
And an Snapshot named "multitude" with 10 components signed with "known" key
1480+
When ec command is run with "validate image --snapshot acceptance/multitude --policy acceptance/ec-policy --public-key ${known_PUBLIC_KEY} --rekor-url ${REKOR} --show-successes --output json"
1481+
Then the exit status should be 0
1482+
And the output should match the snapshot
14841483

14851484
Scenario: Format options
14861485
Given a key pair named "known"

0 commit comments

Comments
 (0)