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