Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix passing tests not being visible in JUnit test output (#1534)
Signed-off-by: Oğuzhan Durgun <oguzhandurgun95@gmail.com>
- Loading branch information
1 parent
b6756b0
commit b6fdc81
Showing
4 changed files
with
69 additions
and
5 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
description: Passing tests |
19 changes: 19 additions & 0 deletions
19
internal/test/testdata/verify_junit/cases/case_006.yaml.golden
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,19 @@ | ||
<testsuites errors="0" failures="0" skipped="0" tests="2"> | ||
<testsuite description="Tests for verifying the company resource policy" name="CompanyTestSuite" file="suite_test.yaml" errors="0" failures="0" skipped="0" tests="2"> | ||
<properties></properties> | ||
<testcase file="suite_test.yaml" classname="admin.company.create" name="Company Test 1"> | ||
<properties> | ||
<property name="principal">admin</property> | ||
<property name="resource">company</property> | ||
<property name="action">create</property> | ||
</properties> | ||
</testcase> | ||
<testcase file="suite_test.yaml" classname="admin.company.create" name="Company Test 2"> | ||
<properties> | ||
<property name="principal">admin</property> | ||
<property name="resource">company</property> | ||
<property name="action">create</property> | ||
</properties> | ||
</testcase> | ||
</testsuite> | ||
</testsuites> |
46 changes: 46 additions & 0 deletions
46
internal/test/testdata/verify_junit/cases/case_006.yaml.input
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,46 @@ | ||
-- suite_test.yaml -- | ||
--- | ||
name: CompanyTestSuite | ||
description: Tests for verifying the company resource policy | ||
principals: | ||
admin: | ||
id: admin | ||
roles: | ||
- admin | ||
user: | ||
id: user | ||
roles: | ||
- user | ||
resources: | ||
company: | ||
id: xx1 | ||
kind: company | ||
|
||
tests: | ||
- name: Company Test 1 | ||
input: | ||
principals: | ||
- admin | ||
resources: | ||
- company | ||
actions: | ||
- create | ||
expected: | ||
- principal: admin | ||
resource: company | ||
actions: | ||
create: EFFECT_ALLOW | ||
|
||
- name: Company Test 2 | ||
input: | ||
principals: | ||
- admin | ||
resources: | ||
- company | ||
actions: | ||
- create | ||
expected: | ||
- principal: admin | ||
resource: company | ||
actions: | ||
create: EFFECT_ALLOW |
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