-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Submit new ARM VM sizes and fix pipeline failure (#335)
* fix pipeline. * increase pom * Update ARM VM sizes (#3) * Increment pom due to other outstanding PR. --------- Co-authored-by: Ed Burns <edburns@microsoft.com>
- Loading branch information
1 parent
719ec79
commit 1e4dea3
Showing
5 changed files
with
50 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 39 additions & 39 deletions
78
weblogic-azure-vm/arm-oraclelinux-wls-admin/test/scripts/verify-services.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2021, Oracle and/or its affiliates. | ||
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. | ||
|
||
# Verify the service using systemctl status | ||
function verifyServiceStatus() | ||
{ | ||
serviceName=$1 | ||
systemctl status $serviceName | grep "active (running)" | ||
if [[ $? != 0 ]]; then | ||
echo "$serviceName is not in active (running) state" | ||
exit 1 | ||
fi | ||
echo "$serviceName is active (running)" | ||
} | ||
|
||
#Verify the service using systemctl is-active | ||
function verifyServiceActive() | ||
{ | ||
serviceName=$1 | ||
state=$(systemctl is-active $serviceName) | ||
if [[ $state == "active" ]]; then | ||
echo "$serviceName is active" | ||
else | ||
echo "$serviceName is not active" | ||
exit 1 | ||
fi | ||
} | ||
|
||
echo "Testing on admin server" | ||
servicesList="rngd wls_admin" | ||
|
||
for service in $servicesList | ||
do | ||
verifyServiceStatus $service | ||
verifyServiceActive $service | ||
done | ||
|
||
exit 0 | ||
#!/bin/bash | ||
# Copyright (c) 2021, Oracle and/or its affiliates. | ||
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. | ||
|
||
# Verify the service using systemctl status | ||
function verifyServiceStatus() | ||
{ | ||
serviceName=$1 | ||
systemctl status $serviceName | grep "active (running)" | ||
if [[ $? != 0 ]]; then | ||
echo "$serviceName is not in active (running) state" | ||
exit 1 | ||
fi | ||
echo "$serviceName is active (running)" | ||
} | ||
|
||
#Verify the service using systemctl is-active | ||
function verifyServiceActive() | ||
{ | ||
serviceName=$1 | ||
state=$(systemctl is-active $serviceName) | ||
if [[ $state == "active" ]]; then | ||
echo "$serviceName is active" | ||
else | ||
echo "$serviceName is not active" | ||
exit 1 | ||
fi | ||
} | ||
|
||
echo "Testing on admin server" | ||
servicesList="rngd wls_admin" | ||
|
||
for service in $servicesList | ||
do | ||
verifyServiceStatus $service | ||
verifyServiceActive $service | ||
done | ||
|
||
exit 0 |
12 changes: 6 additions & 6 deletions
12
weblogic-azure-vm/arm-oraclelinux-wls-admin/test/scripts/verify-wls-path.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2021, Oracle and/or its affiliates. | ||
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. | ||
|
||
echo "#adminPasswordOrKey#" | sudo -S [ -d "/u01/app/wls/install/oracle/middleware/oracle_home/wlserver/modules" ] && exit 0 | ||
exit 1 | ||
#!/bin/bash | ||
# Copyright (c) 2021, Oracle and/or its affiliates. | ||
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. | ||
|
||
echo "#adminPasswordOrKey#" | sudo -S [ -d "/u01/app/wls/install/oracle/middleware/oracle_home/wlserver/modules" ] && exit 0 | ||
exit 1 |