From 1a7ffe4fe45642c7482e206e15ae50eeba85e02a Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 19 Aug 2019 16:04:56 +0200 Subject: [PATCH] integration/secret: add check for empty list not producing an error Signed-off-by: Sebastiaan van Stijn --- integration/secret/secret_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/integration/secret/secret_test.go b/integration/secret/secret_test.go index 564b9c28fd..fb307bb60e 100644 --- a/integration/secret/secret_test.go +++ b/integration/secret/secret_test.go @@ -55,6 +55,10 @@ func TestSecretList(t *testing.T) { defer c.Close() ctx := context.Background() + configs, err := c.SecretList(ctx, types.SecretListOptions{}) + assert.NilError(t, err) + assert.Check(t, is.Equal(len(configs), 0)) + testName0 := "test0_" + t.Name() testName1 := "test1_" + t.Name() testNames := []string{testName0, testName1}