File tree 2 files changed +6
-6
lines changed
discovery/src/test/java/com/ibm/watson/discovery
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 {
147
147
public void setup () throws Exception {
148
148
super .setUp ();
149
149
String apiKey = System .getenv ("DISCOVERY_APIKEY" );
150
- String url = System .getenv ("DISCOVERY_URL" );
150
+ String serviceUrl = System .getenv ("DISCOVERY_URL" );
151
151
152
152
if (apiKey == null ) {
153
153
apiKey = getProperty ("discovery.apikey" );
154
- url = getProperty ("discovery.url" );
154
+ serviceUrl = getProperty ("discovery.url" );
155
155
}
156
156
157
157
Authenticator authenticator = new IamAuthenticator (apiKey );
158
158
discovery = new Discovery ("2019-04-30" , authenticator );
159
- discovery .setServiceUrl (url );
159
+ discovery .setServiceUrl (serviceUrl );
160
160
discovery .setDefaultHeaders (getDefaultHeaders ());
161
161
162
162
uniqueName = UUID .randomUUID ().toString ();
Original file line number Diff line number Diff line change @@ -65,19 +65,19 @@ public void setUp() throws Exception {
65
65
super .setUp ();
66
66
67
67
String apiKey = System .getenv ("DISCOVERY_V2_APIKEY" );
68
- String url = System .getenv ("DISCOVERY_V2_URL" );
68
+ String serviceUrl = System .getenv ("DISCOVERY_V2_URL" );
69
69
70
70
if (apiKey == null ) {
71
71
apiKey = getProperty ("discovery_v2.apikey" );
72
- url = getProperty ("discovery_v2.url" );
72
+ serviceUrl = getProperty ("discovery_v2.url" );
73
73
}
74
74
75
75
assertNotNull ("DISCOVERY_V2_APIKEY is not defined and config.properties doesn't have valid credentials." , apiKey );
76
76
77
77
Authenticator authenticator = new IamAuthenticator (apiKey );
78
78
service = new Discovery (VERSION , authenticator );
79
79
service .setDefaultHeaders (getDefaultHeaders ());
80
- service .setServiceUrl (url );
80
+ service .setServiceUrl (serviceUrl );
81
81
82
82
HttpConfigOptions configOptions =
83
83
new HttpConfigOptions .Builder ().disableSslVerification (true ).build ();
You can’t perform that action at this time.
0 commit comments