@@ -93,25 +93,6 @@ func TestOption_Init(t *testing.T) {
9393 },
9494 },
9595 },
96- {
97- name : "deprecated options" ,
98- args : []string {"--only-update" , "alpine" , "--severity" , "LOW" , "debian:buster" },
99- logs : []string {
100- "--only-update, --refresh and --auto-refresh are unnecessary and ignored now. These commands will be removed in the next version." ,
101- },
102- want : Option {
103- ReportOption : option.ReportOption {
104- Severities : []dbTypes.Severity {dbTypes .SeverityLow },
105- Output : os .Stdout ,
106- VulnType : []string {types .VulnTypeOS , types .VulnTypeLibrary },
107- SecurityChecks : []string {types .SecurityCheckVulnerability },
108- },
109- ArtifactOption : option.ArtifactOption {
110- Target : "debian:buster" ,
111- },
112- onlyUpdate : "alpine" ,
113- },
114- },
11596 {
11697 name : "invalid option combination: --template enabled without --format" ,
11798 args : []string {"--template" , "@contrib/gitlab.tpl" , "gitlab/gitlab-ce:12.7.2-ce.0" },
@@ -196,11 +177,9 @@ func TestOption_Init(t *testing.T) {
196177 set .Bool ("reset" , false , "" )
197178 set .Bool ("skip-db-update" , false , "" )
198179 set .Bool ("download-db-only" , false , "" )
199- set .Bool ("auto-refresh" , false , "" )
200180 set .String ("severity" , "CRITICAL" , "" )
201181 set .String ("vuln-type" , "os,library" , "" )
202182 set .String ("security-checks" , "vuln" , "" )
203- set .String ("only-update" , "" , "" )
204183 set .String ("template" , "" , "" )
205184 set .String ("format" , "" , "" )
206185
0 commit comments