cmd: drop TestListImagesOverrideDatadir
With the new build-in repos this test is no longer relevant. We need to look into a different way to test overrides but just providing an empty datadir will no longer work so drop that.
This commit is contained in:
parent
d35c95a9bc
commit
fb56109048
1 changed files with 0 additions and 12 deletions
|
|
@ -102,18 +102,6 @@ func TestBadCmdErrorsNoExtraCobraNoise(t *testing.T) {
|
||||||
assert.Equal(t, "", fakeStderr.String())
|
assert.Equal(t, "", fakeStderr.String())
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestListImagesOverrideDatadir(t *testing.T) {
|
|
||||||
restore := main.MockOsArgs([]string{"--datadir=/this/path/does/not/exist", "list-images"})
|
|
||||||
defer restore()
|
|
||||||
|
|
||||||
var fakeStdout bytes.Buffer
|
|
||||||
restore = main.MockOsStdout(&fakeStdout)
|
|
||||||
defer restore()
|
|
||||||
|
|
||||||
err := main.Run()
|
|
||||||
assert.EqualError(t, err, `no repositories found in the given paths: [/this/path/does/not/exist]`)
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestListImagesErrorsOnExtraArgs(t *testing.T) {
|
func TestListImagesErrorsOnExtraArgs(t *testing.T) {
|
||||||
restore := main.MockNewRepoRegistry(testrepos.New)
|
restore := main.MockNewRepoRegistry(testrepos.New)
|
||||||
defer restore()
|
defer restore()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue