Skip to content

Commit 5a19120

Browse files
author
OpenShift Bot
authored
Merge pull request #14342 from liggitt/nested-tests
Merged by openshift-bot
2 parents fce1a37 + c3063a0 commit 5a19120

File tree

9 files changed

+172
-2
lines changed

9 files changed

+172
-2
lines changed

tools/junitreport/pkg/parser/gotest/data_parser.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ func newTestDataParser() testDataParser {
1010
return testDataParser{
1111
// testStartPattern matches the line in verbose `go test` output that marks the declaration of a test.
1212
// The first submatch of this regex is the name of the test
13-
testStartPattern: regexp.MustCompile(`=== RUN\s+(.+)$`),
13+
testStartPattern: regexp.MustCompile(`=== RUN\s+([^/]+)$`),
1414

1515
// testResultPattern matches the line in verbose `go test` output that marks the result of a test.
1616
// The first submatch of this regex is the result of the test (PASS, FAIL, or SKIP)
1717
// The second submatch of this regex is the name of the test
1818
// The third submatch of this regex is the time taken in seconds for the test to finish
19-
testResultPattern: regexp.MustCompile(`--- (PASS|FAIL|SKIP):\s+(.+)\s+\((\d+\.\d+)(s| seconds)\)`),
19+
testResultPattern: regexp.MustCompile(`--- (PASS|FAIL|SKIP):\s+([^/]+)\s+\((\d+\.\d+)(s| seconds)\)`),
2020
}
2121
}
2222

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<testsuites>
3+
<testsuite name="k8s.io/kubernetes/plugin/pkg/auth/authorizer/node" tests="2" skipped="1" failures="0" time="0.077">
4+
<testcase name="TestAuthorizer" time="0"></testcase>
5+
<testcase name="TestPopulationMemoryUsage" time="0">
6+
<skipped message="=== RUN TestPopulationMemoryUsage&#xA;--- SKIP: TestPopulationMemoryUsage (0.00s)&#xA;&#x9;node_authorizer_test.go:169: Skipping large population test. Run with TEST_POPULATION_MEMORY_USAGE=true to output memory profiles.&#xA;PASS"></skipped>
7+
</testcase>
8+
</testsuite>
9+
</testsuites>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<testsuites>
3+
<testsuite name="k8s.io" tests="2" skipped="1" failures="0" time="0.077">
4+
<testsuite name="k8s.io/kubernetes" tests="2" skipped="1" failures="0" time="0.077">
5+
<testsuite name="k8s.io/kubernetes/plugin" tests="2" skipped="1" failures="0" time="0.077">
6+
<testsuite name="k8s.io/kubernetes/plugin/pkg" tests="2" skipped="1" failures="0" time="0.077">
7+
<testsuite name="k8s.io/kubernetes/plugin/pkg/auth" tests="2" skipped="1" failures="0" time="0.077">
8+
<testsuite name="k8s.io/kubernetes/plugin/pkg/auth/authorizer" tests="2" skipped="1" failures="0" time="0.077">
9+
<testsuite name="k8s.io/kubernetes/plugin/pkg/auth/authorizer/node" tests="2" skipped="1" failures="0" time="0.077">
10+
<testcase name="TestAuthorizer" time="0"></testcase>
11+
<testcase name="TestPopulationMemoryUsage" time="0">
12+
<skipped message="=== RUN TestPopulationMemoryUsage&#xA;--- SKIP: TestPopulationMemoryUsage (0.00s)&#xA;&#x9;node_authorizer_test.go:169: Skipping large population test. Run with TEST_POPULATION_MEMORY_USAGE=true to output memory profiles.&#xA;PASS"></skipped>
13+
</testcase>
14+
</testsuite>
15+
</testsuite>
16+
</testsuite>
17+
</testsuite>
18+
</testsuite>
19+
</testsuite>
20+
</testsuite>
21+
</testsuites>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<testsuites>
3+
<testsuite name="k8s.io/kubernetes/plugin/pkg/auth/authorizer/node" tests="2" skipped="1" failures="1" time="0.078">
4+
<testcase name="TestAuthorizer" time="0">
5+
<failure message="">=== RUN TestAuthorizer&#xA;=== RUN TestAuthorizer/allowed_configmap&#xA;=== RUN TestAuthorizer/allowed_secret_via_pod&#xA;=== RUN TestAuthorizer/allowed_shared_secret_via_pod&#xA;=== RUN TestAuthorizer/allowed_shared_secret_via_pvc&#xA;=== RUN TestAuthorizer/allowed_pvc&#xA;=== RUN TestAuthorizer/allowed_pv&#xA;=== RUN TestAuthorizer/disallowed_configmap&#xA;=== RUN TestAuthorizer/disallowed_secret_via_pod&#xA;=== RUN TestAuthorizer/disallowed_shared_secret_via_pvc&#xA;=== RUN TestAuthorizer/disallowed_pvc&#xA;=== RUN TestAuthorizer/disallowed_pv&#xA;--- FAIL: TestAuthorizer (0.00s)&#xA; --- PASS: TestAuthorizer/allowed_configmap (0.00s)&#xA; --- PASS: TestAuthorizer/allowed_secret_via_pod (0.00s)&#xA; --- PASS: TestAuthorizer/allowed_shared_secret_via_pod (0.00s)&#xA; --- PASS: TestAuthorizer/allowed_shared_secret_via_pvc (0.00s)&#xA; --- FAIL: TestAuthorizer/allowed_pvc (0.00s)&#xA; &#x9;node_authorizer_test.go:125: expected true, got false&#xA; --- PASS: TestAuthorizer/allowed_pv (0.00s)&#xA; --- PASS: TestAuthorizer/disallowed_configmap (0.00s)&#xA; --- PASS: TestAuthorizer/disallowed_secret_via_pod (0.00s)&#xA; --- PASS: TestAuthorizer/disallowed_shared_secret_via_pvc (0.00s)&#xA; --- PASS: TestAuthorizer/disallowed_pvc (0.00s)&#xA; --- SKIP: TestAuthorizer/disallowed_pv (0.00s)&#xA; &#x9;node_authorizer_test.go:121: disallowed pv</failure>
6+
</testcase>
7+
<testcase name="TestPopulationMemoryUsage" time="0">
8+
<skipped message="=== RUN TestPopulationMemoryUsage&#xA;--- SKIP: TestPopulationMemoryUsage (0.00s)&#xA;&#x9;node_authorizer_test.go:172: Skipping large population test. Run with TEST_POPULATION_MEMORY_USAGE=true to output memory profiles.&#xA;FAIL&#xA;exit status 1"></skipped>
9+
</testcase>
10+
</testsuite>
11+
</testsuites>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<testsuites>
3+
<testsuite name="k8s.io" tests="2" skipped="1" failures="1" time="0.078">
4+
<testsuite name="k8s.io/kubernetes" tests="2" skipped="1" failures="1" time="0.078">
5+
<testsuite name="k8s.io/kubernetes/plugin" tests="2" skipped="1" failures="1" time="0.078">
6+
<testsuite name="k8s.io/kubernetes/plugin/pkg" tests="2" skipped="1" failures="1" time="0.078">
7+
<testsuite name="k8s.io/kubernetes/plugin/pkg/auth" tests="2" skipped="1" failures="1" time="0.078">
8+
<testsuite name="k8s.io/kubernetes/plugin/pkg/auth/authorizer" tests="2" skipped="1" failures="1" time="0.078">
9+
<testsuite name="k8s.io/kubernetes/plugin/pkg/auth/authorizer/node" tests="2" skipped="1" failures="1" time="0.078">
10+
<testcase name="TestAuthorizer" time="0">
11+
<failure message="">=== RUN TestAuthorizer&#xA;=== RUN TestAuthorizer/allowed_configmap&#xA;=== RUN TestAuthorizer/allowed_secret_via_pod&#xA;=== RUN TestAuthorizer/allowed_shared_secret_via_pod&#xA;=== RUN TestAuthorizer/allowed_shared_secret_via_pvc&#xA;=== RUN TestAuthorizer/allowed_pvc&#xA;=== RUN TestAuthorizer/allowed_pv&#xA;=== RUN TestAuthorizer/disallowed_configmap&#xA;=== RUN TestAuthorizer/disallowed_secret_via_pod&#xA;=== RUN TestAuthorizer/disallowed_shared_secret_via_pvc&#xA;=== RUN TestAuthorizer/disallowed_pvc&#xA;=== RUN TestAuthorizer/disallowed_pv&#xA;--- FAIL: TestAuthorizer (0.00s)&#xA; --- PASS: TestAuthorizer/allowed_configmap (0.00s)&#xA; --- PASS: TestAuthorizer/allowed_secret_via_pod (0.00s)&#xA; --- PASS: TestAuthorizer/allowed_shared_secret_via_pod (0.00s)&#xA; --- PASS: TestAuthorizer/allowed_shared_secret_via_pvc (0.00s)&#xA; --- FAIL: TestAuthorizer/allowed_pvc (0.00s)&#xA; &#x9;node_authorizer_test.go:125: expected true, got false&#xA; --- PASS: TestAuthorizer/allowed_pv (0.00s)&#xA; --- PASS: TestAuthorizer/disallowed_configmap (0.00s)&#xA; --- PASS: TestAuthorizer/disallowed_secret_via_pod (0.00s)&#xA; --- PASS: TestAuthorizer/disallowed_shared_secret_via_pvc (0.00s)&#xA; --- PASS: TestAuthorizer/disallowed_pvc (0.00s)&#xA; --- SKIP: TestAuthorizer/disallowed_pv (0.00s)&#xA; &#x9;node_authorizer_test.go:121: disallowed pv</failure>
12+
</testcase>
13+
<testcase name="TestPopulationMemoryUsage" time="0">
14+
<skipped message="=== RUN TestPopulationMemoryUsage&#xA;--- SKIP: TestPopulationMemoryUsage (0.00s)&#xA;&#x9;node_authorizer_test.go:172: Skipping large population test. Run with TEST_POPULATION_MEMORY_USAGE=true to output memory profiles.&#xA;FAIL&#xA;exit status 1"></skipped>
15+
</testcase>
16+
</testsuite>
17+
</testsuite>
18+
</testsuite>
19+
</testsuite>
20+
</testsuite>
21+
</testsuite>
22+
</testsuite>
23+
</testsuites>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Of 2 tests executed in 0.077s, 1 succeeded, 0 failed, and 1 was skipped.
2+
3+
In suite "k8s.io/kubernetes/plugin/pkg/auth/authorizer/node", test case "TestPopulationMemoryUsage" was skipped:
4+
=== RUN TestPopulationMemoryUsage
5+
--- SKIP: TestPopulationMemoryUsage (0.00s)
6+
node_authorizer_test.go:169: Skipping large population test. Run with TEST_POPULATION_MEMORY_USAGE=true to output memory profiles.
7+
PASS
8+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
Of 2 tests executed in 0.078s, 0 succeeded, 1 failed, and 1 was skipped.
2+
3+
In suite "k8s.io/kubernetes/plugin/pkg/auth/authorizer/node", test case "TestAuthorizer" failed:
4+
=== RUN TestAuthorizer
5+
=== RUN TestAuthorizer/allowed_configmap
6+
=== RUN TestAuthorizer/allowed_secret_via_pod
7+
=== RUN TestAuthorizer/allowed_shared_secret_via_pod
8+
=== RUN TestAuthorizer/allowed_shared_secret_via_pvc
9+
=== RUN TestAuthorizer/allowed_pvc
10+
=== RUN TestAuthorizer/allowed_pv
11+
=== RUN TestAuthorizer/disallowed_configmap
12+
=== RUN TestAuthorizer/disallowed_secret_via_pod
13+
=== RUN TestAuthorizer/disallowed_shared_secret_via_pvc
14+
=== RUN TestAuthorizer/disallowed_pvc
15+
=== RUN TestAuthorizer/disallowed_pv
16+
--- FAIL: TestAuthorizer (0.00s)
17+
--- PASS: TestAuthorizer/allowed_configmap (0.00s)
18+
--- PASS: TestAuthorizer/allowed_secret_via_pod (0.00s)
19+
--- PASS: TestAuthorizer/allowed_shared_secret_via_pod (0.00s)
20+
--- PASS: TestAuthorizer/allowed_shared_secret_via_pvc (0.00s)
21+
--- FAIL: TestAuthorizer/allowed_pvc (0.00s)
22+
node_authorizer_test.go:125: expected true, got false
23+
--- PASS: TestAuthorizer/allowed_pv (0.00s)
24+
--- PASS: TestAuthorizer/disallowed_configmap (0.00s)
25+
--- PASS: TestAuthorizer/disallowed_secret_via_pod (0.00s)
26+
--- PASS: TestAuthorizer/disallowed_shared_secret_via_pvc (0.00s)
27+
--- PASS: TestAuthorizer/disallowed_pvc (0.00s)
28+
--- SKIP: TestAuthorizer/disallowed_pv (0.00s)
29+
node_authorizer_test.go:121: disallowed pv
30+
31+
In suite "k8s.io/kubernetes/plugin/pkg/auth/authorizer/node", test case "TestPopulationMemoryUsage" was skipped:
32+
=== RUN TestPopulationMemoryUsage
33+
--- SKIP: TestPopulationMemoryUsage (0.00s)
34+
node_authorizer_test.go:172: Skipping large population test. Run with TEST_POPULATION_MEMORY_USAGE=true to output memory profiles.
35+
FAIL
36+
exit status 1
37+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
=== RUN TestAuthorizer
2+
=== RUN TestAuthorizer/allowed_configmap
3+
=== RUN TestAuthorizer/allowed_secret_via_pod
4+
=== RUN TestAuthorizer/allowed_shared_secret_via_pod
5+
=== RUN TestAuthorizer/allowed_shared_secret_via_pvc
6+
=== RUN TestAuthorizer/allowed_pvc
7+
=== RUN TestAuthorizer/allowed_pv
8+
=== RUN TestAuthorizer/disallowed_configmap
9+
=== RUN TestAuthorizer/disallowed_secret_via_pod
10+
=== RUN TestAuthorizer/disallowed_shared_secret_via_pvc
11+
=== RUN TestAuthorizer/disallowed_pvc
12+
=== RUN TestAuthorizer/disallowed_pv
13+
--- PASS: TestAuthorizer (0.00s)
14+
--- PASS: TestAuthorizer/allowed_configmap (0.00s)
15+
--- PASS: TestAuthorizer/allowed_secret_via_pod (0.00s)
16+
--- PASS: TestAuthorizer/allowed_shared_secret_via_pod (0.00s)
17+
--- PASS: TestAuthorizer/allowed_shared_secret_via_pvc (0.00s)
18+
--- PASS: TestAuthorizer/allowed_pvc (0.00s)
19+
--- PASS: TestAuthorizer/allowed_pv (0.00s)
20+
--- PASS: TestAuthorizer/disallowed_configmap (0.00s)
21+
--- PASS: TestAuthorizer/disallowed_secret_via_pod (0.00s)
22+
--- PASS: TestAuthorizer/disallowed_shared_secret_via_pvc (0.00s)
23+
--- PASS: TestAuthorizer/disallowed_pvc (0.00s)
24+
--- PASS: TestAuthorizer/disallowed_pv (0.00s)
25+
=== RUN TestPopulationMemoryUsage
26+
--- SKIP: TestPopulationMemoryUsage (0.00s)
27+
node_authorizer_test.go:169: Skipping large population test. Run with TEST_POPULATION_MEMORY_USAGE=true to output memory profiles.
28+
PASS
29+
ok k8s.io/kubernetes/plugin/pkg/auth/authorizer/node 0.077s
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
=== RUN TestAuthorizer
2+
=== RUN TestAuthorizer/allowed_configmap
3+
=== RUN TestAuthorizer/allowed_secret_via_pod
4+
=== RUN TestAuthorizer/allowed_shared_secret_via_pod
5+
=== RUN TestAuthorizer/allowed_shared_secret_via_pvc
6+
=== RUN TestAuthorizer/allowed_pvc
7+
=== RUN TestAuthorizer/allowed_pv
8+
=== RUN TestAuthorizer/disallowed_configmap
9+
=== RUN TestAuthorizer/disallowed_secret_via_pod
10+
=== RUN TestAuthorizer/disallowed_shared_secret_via_pvc
11+
=== RUN TestAuthorizer/disallowed_pvc
12+
=== RUN TestAuthorizer/disallowed_pv
13+
--- FAIL: TestAuthorizer (0.00s)
14+
--- PASS: TestAuthorizer/allowed_configmap (0.00s)
15+
--- PASS: TestAuthorizer/allowed_secret_via_pod (0.00s)
16+
--- PASS: TestAuthorizer/allowed_shared_secret_via_pod (0.00s)
17+
--- PASS: TestAuthorizer/allowed_shared_secret_via_pvc (0.00s)
18+
--- FAIL: TestAuthorizer/allowed_pvc (0.00s)
19+
node_authorizer_test.go:125: expected true, got false
20+
--- PASS: TestAuthorizer/allowed_pv (0.00s)
21+
--- PASS: TestAuthorizer/disallowed_configmap (0.00s)
22+
--- PASS: TestAuthorizer/disallowed_secret_via_pod (0.00s)
23+
--- PASS: TestAuthorizer/disallowed_shared_secret_via_pvc (0.00s)
24+
--- PASS: TestAuthorizer/disallowed_pvc (0.00s)
25+
--- SKIP: TestAuthorizer/disallowed_pv (0.00s)
26+
node_authorizer_test.go:121: disallowed pv
27+
=== RUN TestPopulationMemoryUsage
28+
--- SKIP: TestPopulationMemoryUsage (0.00s)
29+
node_authorizer_test.go:172: Skipping large population test. Run with TEST_POPULATION_MEMORY_USAGE=true to output memory profiles.
30+
FAIL
31+
exit status 1
32+
FAIL k8s.io/kubernetes/plugin/pkg/auth/authorizer/node 0.078s

0 commit comments

Comments
 (0)