Skip to content

Commit f741ad6

Browse files
authored
Merge pull request #3752 from ActiveState/mitchell/cp-1180
Fixed failing CVE integration test.
2 parents aa36d97 + be62ba9 commit f741ad6

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

test/integration/cve_int_test.go

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,24 @@ func (suite *CveIntegrationTestSuite) TestCve() {
2525
cp.Expect("0b87e7a4-dc62-46fd-825b-9c35a53fe0a2")
2626

2727
cp.Expect("Vulnerabilities")
28-
cp.Expect("CRITICAL")
28+
cp.Expect("critical")
2929
cp.Expect("Affected Packages")
3030
cp.Expect("tensorflow")
31-
cp.Expect("CRITICAL")
31+
cp.Expect("critical")
3232
cp.Expect("CVE-2019-16778")
3333
cp.ExpectExitCode(0)
34+
}
35+
36+
func (suite *CveIntegrationTestSuite) TestCveForCommit() {
37+
suite.T().Skip("Skipping because mediator migration left this feature out") // CP-1184
38+
suite.OnlyRunForTags(tagsuite.Cve)
39+
40+
ts := e2e.New(suite.T(), false)
41+
defer ts.Close()
42+
43+
ts.LoginAsPersistentUser()
3444

35-
// make sure that we can select by commit id
36-
cp = ts.Spawn("cve", "ActiveState-CLI/VulnerablePython-3.7#3b222e23-64b9-4ca1-93ee-7b8a75b18c30")
45+
cp := ts.Spawn("cve", "ActiveState-CLI/VulnerablePython-3.7#3b222e23-64b9-4ca1-93ee-7b8a75b18c30")
3746
cp.Expect("Commit ID")
3847
cp.Expect("3b222e23-64b9-4ca1-93ee-7b8a75b18c30")
3948

0 commit comments

Comments
 (0)