File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,20 @@ def install
3333 test do
3434 assert_match version . to_s , shell_output ( "#{ bin } /xeol version" )
3535
36- output = shell_output ( "#{ bin } /xeol alpine:latest" )
36+ output = shell_output ( "#{ bin } /xeol db delete 2>&1" )
37+ assert_match "EOL database deleted" , output
38+
39+ output = shell_output ( "#{ bin } /xeol db check 2>&1" )
40+ assert_match "Update available!" , output
41+ assert_match ( %r{Updated DB URL: https:\/ \/ data\. xeol\. io\/ xeol\/ databases\/ xeol-db_v[-\. _0-9:T]{20,}\. tar\. xz} , output )
42+
43+ output = shell_output ( "#{ bin } /xeol db update 2>&1" )
44+ assert_match "EOL database updated to latest version!" , output
45+
46+ output = shell_output ( "#{ bin } /xeol db status 2>&1" )
47+ assert_match "Status: valid" , output
48+
49+ output = shell_output ( "#{ bin } /xeol alpine:latest 2>&1" )
3750 assert_match "no EOL software has been found" , output
3851 end
3952end
You can’t perform that action at this time.
0 commit comments