Allow disruptive conformance tests and marks 2

- Adjusts tooling to allow disrutpive tests to be marked conformance
 - Updates the corresponding tests
 - Marks 2 tests as disruptive
This commit is contained in:
John Schnake
2019-09-12 14:31:37 -05:00
parent 06fc5b7f17
commit d0ab1f06fb
3 changed files with 8 additions and 12 deletions

View File

@@ -156,17 +156,13 @@ func TestValidateTestName(t *testing.T) {
"",
},
{
"a test case with valid tags [LinuxOnly] [NodeConformance] [Serial]",
"a test case with valid tags [LinuxOnly] [NodeConformance] [Serial] [Disruptive]",
"",
},
{
"a flaky test case that is invalid [Flaky]",
"[Flaky]",
},
{
"a disruptive test case that is invalid [Disruptive]",
"[Disruptive]",
},
{
"a feature test case that is invalid [Feature:Awesome]",
"[Feature:Awesome]",
@@ -176,12 +172,12 @@ func TestValidateTestName(t *testing.T) {
"[Alpha]",
},
{
"a test case with multiple invalid tags [Flaky][Disruptive] [Feature:Awesome] [Alpha]",
"[Flaky],[Disruptive],[Feature:Awesome],[Alpha]",
"a test case with multiple invalid tags [Flaky] [Feature:Awesome] [Alpha]",
"[Flaky],[Feature:Awesome],[Alpha]",
},
{
"[sig-awesome] [Disruptive] a test case with valid and invalid tags [Alpha] [Serial] [Flaky]",
"[Disruptive],[Alpha],[Flaky]",
"[sig-awesome] [Alpha] [Disruptive] a test case with valid and invalid tags [Serial] [Flaky]",
"[Alpha],[Flaky]",
},
}
for i, tc := range testCases {