Fixed sharness test with new identity

License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
This commit is contained in:
Kishan Mohanbhai Sagathiya 2019-05-09 00:13:29 +05:30
parent f05af75abc
commit 654c376a57

View File

@ -84,14 +84,15 @@ test_cluster_init() {
}
test_cluster_config() {
export CLUSTER_CONFIG_PATH="test-config/service.json"
export CLUSTER_CONFIG_ID=`jq --raw-output ".cluster.id" $CLUSTER_CONFIG_PATH`
export CLUSTER_CONFIG_PK=`jq --raw-output ".cluster.private_key" $CLUSTER_CONFIG_PATH`
[ "$CLUSTER_CONFIG_ID" != "null" ] && [ "$CLUSTER_CONFIG_PK" != "null" ]
# export CLUSTER_CONFIG_PATH="test-config/service.json"
export CLUSTER_IDENTITY_PATH="test-config/identity.json"
export CLUSTER_IDENTITY_ID=`jq --raw-output ".id" $CLUSTER_IDENTITY_PATH`
export CLUSTER_IDENTITY_PK=`jq --raw-output ".private_key" $CLUSTER_IDENTITY_PATH`
[ "$CLUSTER_IDENTITY_ID" != "null" ] && [ "$CLUSTER_IDENTITY_PK" != "null" ]
}
cluster_id() {
jq --raw-output ".cluster.id" test-config/service.json
jq --raw-output ".id" test-config/identity.json
}
test_confirm_v1State() {