func TestDeleteProfileTemplate(t *testing.T) {
	var (
		d                         *OVTest
		c                         *ov.OVClient
		testName                  string
		testServerProfileTemplate ov.ServerProfile
	)
	if os.Getenv("ONEVIEW_TEST_ACCEPTANCE") == "true" {
		d, c = getTestDriverA("test_server_profile_template")
		if c == nil {
			t.Fatalf("Failed to execute getTestDriver() ")
		}
		testName = d.Tc.GetTestData(d.Env, "Name").(string)

		err := c.DeleteProfileTemplate(testName)
		assert.NoError(t, err, "DeleteServerProfileTemplate err-> %s", err)

		testServerProfileTemplate, err = c.GetProfileTemplateByName(testName)
		assert.NoError(t, err, "GetServerProfileTemplateByName with deleted serverProfileTemplate-> %+v", err)
		assert.Equal(t, "", testServerProfileTemplate.Name, fmt.Sprintf("Problem getting serverProfileTemplate name, %+v", testServerProfileTemplate))
	} else {
		_, c = getTestDriverU("test_server_profile_template")
		err := c.DeleteProfileTemplate("footest")
		assert.Error(t, err, fmt.Sprintf("ALL ok, no error, caught as expected: %s,%+v\n", err, testServerProfileTemplate))
	}

}