String url = base + "/vpn/ikepolicies";
ITNeutronE2E.test_fetch(url, "IKE Policy GET failed");
}
+
+ public void singleton_ikePolicy_create_test() {
+ String url = base + "/vpn/ikepolicies";
+ String content = " { \"ikepolicy\": { \"name\": \"ikepolicy1\"," +
+ "\"tenant_id\": \"ccb81365fe36411a9011e90491fe1330\"," +
+ "\"auth_algorithm\": \"sha1\"," +
+ "\"encryption_algorithm\": \"aes-128\"," +
+ "\"pfs\": \"group5\"," +
+ "\"phase1_negotiation_mode\": \"main\"," +
+ "\"lifetime\": { \"units\": \"seconds\"," +
+ "\"value\": 7200}," +
+ "\"ike_version\": \"v1\"," +
+ "\"id\": \"5522aff7-1b3c-48dd-9c3c-b50f016b73db\"," +
+ "\"description\": \"\" } }";
+ ITNeutronE2E.test_create(url, content, "IKE Policy POST failed");
+ }
+
+ public void ikePolicy_update_test() {
+ String url = base + "/vpn/ikepolicies/5522aff7-1b3c-48dd-9c3c-b50f016b73db";
+ String content = " { \"ikepolicy\": { \"name\": \"ikepolicy1\"," +
+ "\"tenant_id\": \"ccb81365fe36411a9011e90491fe1330\"," +
+ "\"auth_algorithm\": \"sha1\"," +
+ "\"encryption_algorithm\": \"aes-256\"," +
+ "\"pfs\": \"group5\"," +
+ "\"phase1_negotiation_mode\": \"main\"," +
+ "\"lifetime\": { \"units\": \"seconds\", \"value\": 3600 }," +
+ "\"ike_version\": \"v1\"," +
+ "\"id\": \"5522aff7-1b3c-48dd-9c3c-b50f016b73db\"," +
+ "\"description\": \"\" } }";
+ ITNeutronE2E.test_modify(url, content, "IKE Policy PUT failed");
+ }
+
+ public void ikePolicy_element_get_test() {
+ String url = base + "/vpn/ikepolicies/5522aff7-1b3c-48dd-9c3c-b50f016b73db";
+ ITNeutronE2E.test_fetch(url, true, "IKE Policy Element GET failed");
+ }
+
+ public void ikePolicy_delete_test() {
+ String url = base + "/vpn/ikepolicies/5522aff7-1b3c-48dd-9c3c-b50f016b73db";
+ ITNeutronE2E.test_delete(url, "IKE Policy DELETE failed");
+ }
+
+ public void ikePolicy_element_negative_get_test() {
+ String url = base + "/vpn/ikepolicies/5522aff7-1b3c-48dd-9c3c-b50f016b73db";
+ ITNeutronE2E.test_fetch(url, false, "IKE Policy Element Negative GET failed");
+ }
+
+ public static void runTests(String base) {
+ NeutronIKEPoliciesTests ike_policy_tester = new NeutronIKEPoliciesTests(base);
+ ike_policy_tester.ikePolicy_collection_get_test();
+ ike_policy_tester.singleton_ikePolicy_create_test();
+ ike_policy_tester.ikePolicy_update_test();
+ ike_policy_tester.ikePolicy_element_get_test();
+ ike_policy_tester.ikePolicy_delete_test();
+ ike_policy_tester.ikePolicy_element_negative_get_test();
+ }
}
+