You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scenario: Use --layer flag without specifying layer digest
51
+
Given I run skiff with the subcommand "top --layer registry.suse.com/bci/python@sha256:677b52cc1d587ff72430f1b607343a3d1f88b15a9bbd999601554ff303d6774f"
52
+
Then the exit code is 1
53
+
And stderr contains
54
+
"""
55
+
image URL is required
56
+
"""
57
+
58
+
Scenario: Filter by single layer using full digest
59
+
Given I run skiff with the subcommand "top --layer abb83fe2605d registry.suse.com/bci/python@sha256:677b52cc1d587ff72430f1b607343a3d1f88b15a9bbd999601554ff303d6774f"
Scenario: Filter by single layer using partial digest
77
+
Given I run skiff with the subcommand "top --layer abb83 registry.suse.com/bci/python@sha256:677b52cc1d587ff72430f1b607343a3d1f88b15a9bbd999601554ff303d6774f"
Scenario: Filter by single layer using full digest (dbdff6b3e297)
95
+
Given I run skiff with the subcommand "top --layer dbdff6b3e297 registry.suse.com/bci/python@sha256:677b52cc1d587ff72430f1b607343a3d1f88b15a9bbd999601554ff303d6774f"
Given I run skiff with the subcommand "top --layer abb83fe2605d --layer dbdff6b3e297 registry.suse.com/bci/python@sha256:677b52cc1d587ff72430f1b607343a3d1f88b15a9bbd999601554ff303d6774f"
Given I run skiff with the subcommand "top --layer nonexistentlayer registry.suse.com/bci/python@sha256:677b52cc1d587ff72430f1b607343a3d1f88b15a9bbd999601554ff303d6774f"
132
+
Then the exit code is 1
133
+
And stderr contains
134
+
"""
135
+
layer nonexistentlayer not found in image
136
+
"""
137
+
138
+
Scenario: Use --layer with short flag alias
139
+
Given I run skiff with the subcommand "top -l abb83fe2605d registry.suse.com/bci/python@sha256:677b52cc1d587ff72430f1b607343a3d1f88b15a9bbd999601554ff303d6774f"
140
+
Then the exit code is 0
141
+
And stdout contains "abb83fe2605d"
142
+
And stdout does not contain "dbdff6b3e297"
143
+
144
+
Scenario: Use --layer with multiple short flag aliases
145
+
Given I run skiff with the subcommand "top -l abb83fe2605d -l dbdff6b3e297 registry.suse.com/bci/python@sha256:677b52cc1d587ff72430f1b607343a3d1f88b15a9bbd999601554ff303d6774f"
146
+
Then the exit code is 0
147
+
And stdout contains "abb83fe2605d"
148
+
And stdout contains "dbdff6b3e297"
149
+
150
+
Scenario: Use --layer with empty string
151
+
Given I run skiff with the subcommand "top --layer '' registry.suse.com/bci/python@sha256:677b52cc1d587ff72430f1b607343a3d1f88b15a9bbd999601554ff303d6774f"
152
+
Then the exit code is 1
153
+
And stderr contains
154
+
"""
155
+
multiple layers match shortened digest
156
+
"""
157
+
158
+
Scenario: Use --human-readable flag for human-readable file sizes
159
+
Given I run skiff with the subcommand "top --human-readable registry.suse.com/bci/python@sha256:677b52cc1d587ff72430f1b607343a3d1f88b15a9bbd999601554ff303d6774f"
Scenario: Use --human-readable with layer filtering
177
+
Given I run skiff with the subcommand "top --human-readable --layer abb83fe2605d registry.suse.com/bci/python@sha256:677b52cc1d587ff72430f1b607343a3d1f88b15a9bbd999601554ff303d6774f"
Scenario: Use --human-readable with multiple layer filtering
195
+
Given I run skiff with the subcommand "top --human-readable --layer abb83fe2605d --layer dbdff6b3e297 registry.suse.com/bci/python@sha256:677b52cc1d587ff72430f1b607343a3d1f88b15a9bbd999601554ff303d6774f"
0 commit comments