func TestGetGoldenImages(t *testing.T) { var ( c *i3s.I3SClient ) if os.Getenv("I3S_TEST_ACCEPTANCE") == "true" { _, c = getTestDriverA("test_golden_image") if c == nil { t.Fatalf("Failed to execute getTestDriver() ") } goldenImages, err := c.GetGoldenImages("", "") assert.NoError(t, err, "GetGoldenImages threw error -> %s, %+v\n", err, goldenImages) goldenImages, err = c.GetGoldenImages("", "name:asc") assert.NoError(t, err, "GetGoldenImages name:asc error -> %s, %+v\n", err, goldenImages) } else { _, c = getTestDriverU("test_golden_image") data, err := c.GetGoldenImages("", "") assert.Error(t, err, fmt.Sprintf("ALL ok, no error, caught as expected: %s,%+v\n", err, data)) } }