/*
 * Copyright 2016 Red Hat Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package enmasse.smoketest;

import com.openshift.restclient.ClientBuilder;
import com.openshift.restclient.IClient;

public class Environment {
    public static final String user = System.getenv("OPENSHIFT_USER");
    public static final String token = System.getenv("OPENSHIFT_TOKEN");
    public static final String url = System.getenv("OPENSHIFT_URL");
    public static final String namespace = "myproject";
//    public static final IClient client = new ClientBuilder(url).usingToken(token).withUserName(user).build();
    //   val service: IService = client.get(ResourceKind.SERVICE, "messaging", namespace)
    //  val endpoint = Endpoint(service.portalIP, service.port)
    //val endpoint = Endpoint("172.30.56.135", 5672)
    public static final Endpoint endpoint = new Endpoint("172.30.56.135", 5672);
}

@@ -705,16 +705,110 @@
 IClient;
+%0Aimport com.openshift.restclient.ResourceKind;%0Aimport com.openshift.restclient.model.IService;
 %0A%0Apublic
@@ -1097,18 +1097,16 @@
 oject%22;%0A
-//
     publ
@@ -1215,28 +1215,38 @@
     
-//   val s
+public static final IS
 ervice
-: IS
+ s
 ervi
@@ -1310,20 +1310,42 @@
 ace)
+;
 %0A    
-//  val
+public static final Endpoint
  end
@@ -1343,32 +1343,36 @@
 point endpoint =
+ new
  Endpoint(servic
@@ -1377,16 +1377,21 @@
 ice.
-p
+getP
 ortalIP
+()
 , se
@@ -1400,71 +1400,26 @@
 ice.
-port)%0A    //val endpoint = Endpoint(%22172.30.56.135%22, 5672)%0A    
+getPort());%0A    //
 publ

Revert unintended commit