-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtest.pl
executable file
·29 lines (15 loc) · 889 Bytes
/
test.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$developmentRoute = `oc get route -n myapp-development myapp-route -o jsonpath='{.spec.host}'`;
print $developmentRoute."\n";
$QARoute = `oc get route -n myapp-qa myapp-route -o jsonpath='{.spec.host}'`;
print $QARoute."\n";
$productionRoute = `oc get route -n myapp-production myapp-route -o jsonpath='{.spec.host}'`;
print $productionRoute."\n";
$curlCommandDev = "curl -k -s http://".$developmentRoute."/System/propertiesJavaHome";
$curlResponseDev = `$curlCommandDev`;
print "Development : ".$curlResponseDev."\n";
$curlCommandQA = "curl -k -s http://".$QARoute."/System/propertiesJavaHome";
$curlResponseQA = `$curlCommandQA`;
print "QA : ".$curlResponseQA."\n";
$curlCommandProduction = "curl -k -s http://".$productionRoute."/System/propertiesJavaHome";
$curlResponseProduction = `$curlCommandProduction`;
print "Production : ".$curlResponseProduction."\n";