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