Skip to content

Commit

Permalink
fixup restrictive test
Browse files Browse the repository at this point in the history
  • Loading branch information
vroyer committed Dec 10, 2019
1 parent 34eda1d commit de89ee7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/tests/elassandra-config/run.sh
Expand Up @@ -54,7 +54,7 @@ test_config_yq() {
key=$2
expected=$3
actual="$(docker exec $cid cat $file | grep -v '#' | grep -e "^\s*$key:")"
re=${4:-^"$key: $expected"$}
re=${4:-"$key: $expected"$}

if [[ ! "$actual" =~ $re ]]; then
echo "$file: $key not honored, expected: $expected, actual: $actual"
Expand All @@ -66,7 +66,7 @@ test_config_yq() {
verify /etc/cassandra/cassandra.yaml num_tokens 5
verify /etc/cassandra/cassandra.yaml hinted_handoff_enabled false
verify /etc/cassandra/cassandra.yaml authenticator PasswordAuthenticator
verify /etc/cassandra/elasticsearch.yml 'port' 9201 ^[[:space:]]+'port: 9201'$
verify /etc/cassandra/elasticsearch.yml 'port' 9201 'port: 9201'$
}

# execute tests in sub-shells to allow trapping the containers
Expand Down

0 comments on commit de89ee7

Please sign in to comment.