Run jacoco in UT VM and report to sonar
[neutron.git] / integration / test / src / test / java / org / opendaylight / neutron / e2etest / NeutronLBPoolMembersTests.java
1 /*
2  * Copyright (C) 2015 IBM, Inc.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.neutron.e2etest;
10
11 import java.io.OutputStreamWriter;
12
13 import java.lang.Thread;
14
15 import java.net.HttpURLConnection;
16 import java.net.URL;
17
18 import org.junit.Assert;
19
20 public class NeutronLBPoolMembersTests {
21     String base;
22
23     public NeutronLBPoolMembersTests(String base) {
24         this.base = base;
25     }
26
27 // TODO: have to be careful here as the pool id is included
28
29 /*    public void pool_collection_get_test() {
30         String url_s = base + "/pools";
31         try {
32             URL url = new URL(url_s);
33             HttpURLConnection httpConn = (HttpURLConnection) url.openConnection();
34             httpConn.setRequestMethod("GET");
35             httpConn.setRequestProperty("Content-Type", "application/json");
36             httpConn.setRequestProperty("Authorization", "Basic YWRtaW46YWRtaW4=");
37             Assert.assertEquals("LB Pool Collection GET failed",
38                         200, httpConn.getResponseCode());
39         } catch (Exception e) {
40             Assert.assertFalse("E2E Tests Failed", true);
41         }
42     } */
43 }