2 * Copyright (C) 2015 IBM, Inc.
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
9 package org.opendaylight.neutron.e2etest;
11 import java.io.OutputStreamWriter;
13 import java.lang.Thread;
15 import java.net.HttpURLConnection;
18 import org.junit.Assert;
20 public class NeutronLBPoolMembersTests {
23 public NeutronLBPoolMembersTests(String base) {
27 // TODO: have to be careful here as the pool id is included
29 /* public void pool_collection_get_test() {
30 String url_s = base + "/pools";
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);