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