Clean up IT and address Bug 3812
[neutron.git] / integration / test / src / test / java / org / opendaylight / neutron / e2etest / NeutronSecurityRuleTests.java
index ef5cd2f96dd6120d3cbd9e17ad75b9e9319daf3c..04fdace8d1c81452ab0118c5e3e825bc64b320af 100644 (file)
@@ -25,17 +25,7 @@ public class NeutronSecurityRuleTests {
     }
 
     public void securityRule_collection_get_test() {
-        String url_s = base + "/security-group-rules";
-        try {
-            URL url = new URL(url_s);
-            HttpURLConnection httpConn = (HttpURLConnection) url.openConnection();
-            httpConn.setRequestMethod("GET");
-            httpConn.setRequestProperty("Content-Type", "application/json");
-            httpConn.setRequestProperty("Authorization", "Basic YWRtaW46YWRtaW4=");
-            Assert.assertEquals("Security Rule Collection GET failed",
-                        200, httpConn.getResponseCode());
-        } catch (Exception e) {
-            Assert.assertFalse("E2E Tests Failed", true);
-        }
+        String url = base + "/security-group-rules";
+        ITNeutronE2E.test_fetch(url, "Security Rule Collection GET failed");
     }
 }