Skip to content

Commit

Permalink
CLOUD-2261 more tweaks to pass unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: rcernich <[email protected]>
  • Loading branch information
rcernich committed Jun 8, 2018
1 parent fca2b70 commit c0ad3d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions os-partition/added/partitionPV.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function migratePV() {
# 1.a.i) if <applicationPodName> is not in the cluster
echo "examining existence of living pod for directory: '${applicationPodDir}'"
unset LIVING_PODS
LIVING_PODS=($(${BASH_SOURCE[0]}/query.py -q pods_living -f list_space ${DEBUG_QUERY_API_PARAM}))
LIVING_PODS=($($(dirname ${BASH_SOURCE[0]})/query.py -q pods_living -f list_space ${DEBUG_QUERY_API_PARAM}))
[ $? -ne 0 ] && echo "ERROR: Can't get list of living pods" && continue
STATUS=-1 # here we have data about living pods and the recovery marker can be removed if the pod is living
if ! arrContains ${applicationPodName} "${LIVING_PODS[@]}"; then
Expand Down Expand Up @@ -174,7 +174,7 @@ function migratePV() {
local recoveryPodNameToCheck=${recoveryPodFileToCheck#*RECOVERY-}

unset LIVING_PODS
LIVING_PODS=($(${BASH_SOURCE[0]}/query.py -q pods_living -f list_space ${DEBUG_QUERY_API_PARAM}))
LIVING_PODS=($($(dirname ${BASH_SOURCE[0]})/query.py -q pods_living -f list_space ${DEBUG_QUERY_API_PARAM}))
[ $? -ne 0 ] && echo "ERROR: Can't get list of living pods" && continue

if ! arrContains ${recoveryPodNameToCheck} "${LIVING_PODS[@]}"; then
Expand All @@ -196,7 +196,7 @@ function probePodLog() {
init_pod_name
local podNameToProbe=${1:-$POD_NAME}

local logOutput=$(${BASH_SOURCE[0]}/query.py -q log ${podNameToProbe})
local logOutput=$($(dirname ${BASH_SOURCE[0]})/query.py -q log ${podNameToProbe})
local probeStatus=$?

if [ $probeStatus -ne 0 ]; then
Expand Down
6 changes: 3 additions & 3 deletions tests/features/datagrid/datagrid_split.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ Feature: Openshift DataGrid SPLIT tests
Scenario: Ensure split doesn't happen with regular configuration
When container is ready
Then container log should match regex .*Data Grid.*started.*
And available container log should not contain Attempting to obtain lock for directory:
And available container log should contain jboss.server.data.dir = /opt/datagrid/standalone/data

@jboss-datagrid-6 @jboss-datagrid-7
Scenario: Ensure split happens with SPLIT_DATA
When container is started with env
| variable | value |
| SPLIT_DATA | TRUE |
Then container log should match regex .*Data Grid.*started.*
And available container log should contain Attempting to obtain lock for directory:
And available container log should contain jboss.server.data.dir = /opt/datagrid/standalone/partitioned_data/

@jboss-datagrid-7
Scenario: Ensure split happens with DATAGRID_SPLIT
When container is started with env
| variable | value |
| DATAGRID_SPLIT | TRUE |
Then container log should match regex .*Data Grid.*started.*
And available container log should contain Attempting to obtain lock for directory:
And available container log should contain jboss.server.data.dir = /opt/datagrid/standalone/partitioned_data/

0 comments on commit c0ad3d3

Please sign in to comment.