File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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+
4461func (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." )
You can’t perform that action at this time.
0 commit comments