Skip to content

Commit 9dcd92b

Browse files
committed
Skip CVE check for commit ID.
1 parent 2f6c126 commit 9dcd92b

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

test/integration/cve_int_test.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,23 @@ func (suite *CveIntegrationTestSuite) TestCve() {
4141
cp.ExpectExitCode(0)
4242
}
4343

44+
func (suite *CveIntegrationTestSuite) TestCveForCommit() {
45+
suite.T().Skip("Skipping because mediator migration left this feature out") // CP-1184
46+
suite.OnlyRunForTags(tagsuite.Cve)
47+
48+
ts := e2e.New(suite.T(), false)
49+
defer ts.Close()
50+
51+
ts.LoginAsPersistentUser()
52+
53+
cp := ts.Spawn("cve", "ActiveState-CLI/VulnerablePython-3.7#3b222e23-64b9-4ca1-93ee-7b8a75b18c30")
54+
cp.Expect("Commit ID")
55+
cp.Expect("3b222e23-64b9-4ca1-93ee-7b8a75b18c30")
56+
57+
cp.Expect("Vulnerabilities")
58+
cp.ExpectExitCode(0)
59+
}
60+
4461
func (suite *CveIntegrationTestSuite) TestCveNoVulnerabilities() {
4562
// If you need to run this test comment the next line and provide a commit that has no CVE's
4663
suite.T().Skip("Skipping test because due to the nature of CVE's it's impossible to nail down a commit without CVE's.")

0 commit comments

Comments
 (0)