File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
discovery/src/test/java/com/ibm/watson/discovery Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -147,16 +147,16 @@ public static void cleanupClass() throws Exception {
147147 public void setup () throws Exception {
148148 super .setUp ();
149149 String apiKey = System .getenv ("DISCOVERY_APIKEY" );
150- String url = System .getenv ("DISCOVERY_URL" );
150+ String serviceUrl = System .getenv ("DISCOVERY_URL" );
151151
152152 if (apiKey == null ) {
153153 apiKey = getProperty ("discovery.apikey" );
154- url = getProperty ("discovery.url" );
154+ serviceUrl = getProperty ("discovery.url" );
155155 }
156156
157157 Authenticator authenticator = new IamAuthenticator (apiKey );
158158 discovery = new Discovery ("2019-04-30" , authenticator );
159- discovery .setServiceUrl (url );
159+ discovery .setServiceUrl (serviceUrl );
160160 discovery .setDefaultHeaders (getDefaultHeaders ());
161161
162162 uniqueName = UUID .randomUUID ().toString ();
Original file line number Diff line number Diff line change @@ -65,19 +65,19 @@ public void setUp() throws Exception {
6565 super .setUp ();
6666
6767 String apiKey = System .getenv ("DISCOVERY_V2_APIKEY" );
68- String url = System .getenv ("DISCOVERY_V2_URL" );
68+ String serviceUrl = System .getenv ("DISCOVERY_V2_URL" );
6969
7070 if (apiKey == null ) {
7171 apiKey = getProperty ("discovery_v2.apikey" );
72- url = getProperty ("discovery_v2.url" );
72+ serviceUrl = getProperty ("discovery_v2.url" );
7373 }
7474
7575 assertNotNull ("DISCOVERY_V2_APIKEY is not defined and config.properties doesn't have valid credentials." , apiKey );
7676
7777 Authenticator authenticator = new IamAuthenticator (apiKey );
7878 service = new Discovery (VERSION , authenticator );
7979 service .setDefaultHeaders (getDefaultHeaders ());
80- service .setServiceUrl (url );
80+ service .setServiceUrl (serviceUrl );
8181
8282 HttpConfigOptions configOptions =
8383 new HttpConfigOptions .Builder ().disableSslVerification (true ).build ();
You can’t perform that action at this time.
0 commit comments