@@ -76,7 +76,7 @@ init_pool() {
76
76
make localnet_start & > ${DETAILED_OUTPUT_TARGET}
77
77
78
78
log " -> Waiting for the second block (needed to request proofs)" > ${DETAILED_OUTPUT_TARGET}
79
- execute_with_retry " dcld status" " connection refused "
79
+ execute_with_retry " dcld status" " connection"
80
80
wait_for_height 2 20
81
81
}
82
82
@@ -106,30 +106,8 @@ make image &>${DETAILED_OUTPUT_TARGET}
106
106
cleanup_pool
107
107
108
108
# Cli shell tests
109
- # if [[ $TESTS_TO_RUN =~ "all" || $TESTS_TO_RUN =~ "cli" ]]; then
110
- # CLI_SHELL_TESTS=$(find integration_tests/cli -type f -name '*.sh' -not -name "common.sh")
111
- #
112
- # for CLI_SHELL_TEST in ${CLI_SHELL_TESTS}; do
113
- # init_pool
114
- #
115
- # log "*****************************************************************************************"
116
- # log "Running $CLI_SHELL_TEST"
117
- # log "*****************************************************************************************"
118
- #
119
- # if bash "$CLI_SHELL_TEST" &>${DETAILED_OUTPUT_TARGET}; then
120
- # log "$CLI_SHELL_TEST finished successfully"
121
- # else
122
- # log "$CLI_SHELL_TEST failed"
123
- # exit 1
124
- # fi
125
- #
126
- # cleanup_pool
127
- # done
128
- # fi
129
-
130
- # Light Client Proxy Cli shell tests
131
- if [[ $TESTS_TO_RUN =~ " all" || $TESTS_TO_RUN =~ " light" ]]; then
132
- CLI_SHELL_TESTS=$( find integration_tests/light_client_proxy -type f -name ' *.sh' -not -name " common.sh" | sort)
109
+ if [[ $TESTS_TO_RUN =~ " all" || $TESTS_TO_RUN =~ " cli" ]]; then
110
+ CLI_SHELL_TESTS=$( find integration_tests/cli -type f -name ' *.sh' -not -name " common.sh" )
133
111
134
112
for CLI_SHELL_TEST in ${CLI_SHELL_TESTS} ; do
135
113
init_pool
@@ -149,46 +127,68 @@ if [[ $TESTS_TO_RUN =~ "all" || $TESTS_TO_RUN =~ "light" ]]; then
149
127
done
150
128
fi
151
129
130
+ # Light Client Proxy Cli shell tests
131
+ # if [[ $TESTS_TO_RUN =~ "all" || $TESTS_TO_RUN =~ "light" ]]; then
132
+ # CLI_SHELL_TESTS=$(find integration_tests/light_client_proxy -type f -name '*.sh' -not -name "common.sh" | sort)
133
+
134
+ # for CLI_SHELL_TEST in ${CLI_SHELL_TESTS}; do
135
+ # init_pool
136
+
137
+ # log "*****************************************************************************************"
138
+ # log "Running $CLI_SHELL_TEST"
139
+ # log "*****************************************************************************************"
140
+
141
+ # if bash "$CLI_SHELL_TEST" &>${DETAILED_OUTPUT_TARGET}; then
142
+ # log "$CLI_SHELL_TEST finished successfully"
143
+ # else
144
+ # log "$CLI_SHELL_TEST failed"
145
+ # exit 1
146
+ # fi
147
+
148
+ # cleanup_pool
149
+ # done
150
+ # fi
151
+
152
152
# Go rest tests
153
- # if [[ $TESTS_TO_RUN =~ "all" || $TESTS_TO_RUN =~ "rest" ]]; then
154
- # GO_REST_TESTS="$(find integration_tests/grpc_rest -type f -name '*_test.go')"
155
- #
156
- # for GO_REST_TEST in ${GO_REST_TESTS}; do
157
- # init_pool
158
- #
159
- # log "*****************************************************************************************"
160
- # log "Running $GO_REST_TEST"
161
- # log "*****************************************************************************************"
162
- #
163
- # # TODO issue 99: improve, that await helps with the cases of not ready connections to Cosmos endpoints
164
- # sleep 5
165
- #
166
- # dcld config keyring-backend test
167
- # if go test "$GO_REST_TEST" &>${DETAILED_OUTPUT_TARGET}; then
168
- # log "$GO_REST_TEST finished successfully"
169
- # else
170
- # log "$GO_REST_TEST failed"
171
- # exit 1
172
- # fi
173
- #
174
- # cleanup_pool
175
- # done
176
- # fi
153
+ if [[ $TESTS_TO_RUN =~ " all" || $TESTS_TO_RUN =~ " rest" ]]; then
154
+ GO_REST_TESTS=" $( find integration_tests/grpc_rest -type f -name ' *_test.go' ) "
177
155
178
- # Deploy tests
179
- if [[ $TESTS_TO_RUN =~ " all" || $TESTS_TO_RUN =~ " deploy" ]]; then
180
- DEPLOY_SHELL_TEST=" ./integration_tests/deploy/test_deploy.sh"
181
- if bash " $DEPLOY_SHELL_TEST " & > ${DETAILED_OUTPUT_TARGET} ; then
182
- log " $DEPLOY_SHELL_TEST finished successfully"
156
+ for GO_REST_TEST in ${GO_REST_TESTS} ; do
157
+ init_pool
158
+
159
+ log " *****************************************************************************************"
160
+ log " Running $GO_REST_TEST "
161
+ log " *****************************************************************************************"
162
+
163
+ # TODO issue 99: improve, that await helps with the cases of not ready connections to Cosmos endpoints
164
+ sleep 5
165
+
166
+ dcld config keyring-backend test
167
+ if go test " $GO_REST_TEST " & > ${DETAILED_OUTPUT_TARGET} ; then
168
+ log " $GO_REST_TEST finished successfully"
183
169
else
184
- log " $DEPLOY_SHELL_TEST failed"
170
+ log " $GO_REST_TEST failed"
185
171
exit 1
186
172
fi
173
+
174
+ cleanup_pool
175
+ done
187
176
fi
188
177
178
+ # Deploy tests
179
+ if [[ $TESTS_TO_RUN =~ " all" || $TESTS_TO_RUN =~ " deploy" ]]; then
180
+ DEPLOY_SHELL_TEST=" ./integration_tests/deploy/test_deploy.sh"
181
+ if bash " $DEPLOY_SHELL_TEST " & > ${DETAILED_OUTPUT_TARGET} ; then
182
+ log " $DEPLOY_SHELL_TEST finished successfully"
183
+ else
184
+ log " $DEPLOY_SHELL_TEST failed"
185
+ exit 1
186
+ fi
187
+ fi
188
+
189
189
# Upgrade procedure tests
190
190
if [[ $TESTS_TO_RUN =~ " all" || $TESTS_TO_RUN =~ " upgrade" ]]; then
191
- UPGRADE_SHELL_TESTS=$( find integration_tests/upgrade -type f -name ' *.sh' -not -name " add-new-node-after-upgrade.sh" -not -name " common.sh" | sort)
191
+ UPGRADE_SHELL_TESTS=$( find integration_tests/upgrade -type f -name ' *.sh' -not -name " add-new-node-after-upgrade.sh" -not -name " common.sh" -not -name " test-upgrade-1.2-to-1.3.sh " | sort)
192
192
193
193
for UPGRADE_SHELL_TEST in ${UPGRADE_SHELL_TESTS} ; do
194
194
log " *****************************************************************************************"
0 commit comments