File tree Expand file tree Collapse file tree 2 files changed +36
-3
lines changed
spartan/releases/rough-rhino Expand file tree Collapse file tree 2 files changed +36
-3
lines changed Original file line number Diff line number Diff line change @@ -123,13 +123,41 @@ test-p2p-key:
123
123
echo "✅ P2P private key test passed" || \
124
124
(echo "❌ P2P private key test failed" && exit 1)
125
125
126
+ test-ethereum-host :
127
+ FROM +test-setup
128
+ RUN echo -e "\n\n " | ./aztec-spartan.sh config \
129
+ -n "troll-turtle" \
130
+ -e http://foobar:8545 \
131
+ -p 8080 \
132
+ -p2p 40400 \
133
+ -ip 1.2.3.4 \
134
+ -k 0x00 \
135
+ -pk 00000
136
+ RUN test -f .env && \
137
+ grep -q "ETHEREUM_HOST=http://foobar:8545" .env && \
138
+ echo "✅ Ethereum host cli test passed" || \
139
+ (echo "❌ Ethereum host cli test failed" && exit 1)
140
+
141
+ # We don't respect the env var here
142
+ RUN echo -e "\n\n " | ETHEREUM_HOST= http://foobar:8545 ./aztec-spartan.sh config \
143
+ -n "troll-turtle" \
144
+ -p 8080 \
145
+ -p2p 40400 \
146
+ -ip 1.2.3.4 \
147
+ -k 0x00 \
148
+ -pk 00000
149
+ RUN test -f .env && \
150
+ grep -q "ETHEREUM_HOST=http://34.19.127.9:8545" .env && \
151
+ echo "✅ Ethereum host override test passed" || \
152
+ (echo "❌ Ethereum host override test failed" && exit 1)
153
+
154
+
126
155
test-all :
127
156
BUILD +test-help
128
- BUILD +test-no-config
129
157
BUILD +test-install
130
158
BUILD +test-docker-check
131
159
BUILD +test-start-stop
132
160
BUILD +test-update
133
161
BUILD +test-data-dir
134
162
BUILD +test-p2p-key
135
-
163
+ BUILD +test-ethereum-host
Original file line number Diff line number Diff line change @@ -17,6 +17,11 @@ DEFAULT_KEY="0x0000000000000000000000000000000000000000000000000000000000000001"
17
17
DEFAULT_IP=$( curl -s --connect-timeout 5 https://api.ipify.org? format=json | grep -o ' "ip":"[^"]*' | cut -d' "' -f4 || echo " " )
18
18
DEFAULT_BIND_MOUNT_DIR=" $HOME /aztec-data"
19
19
20
+ # unset these to avoid conflicts with the host's environment
21
+ ETHEREUM_HOST=
22
+ IMAGE=
23
+ BOOTNODE_URL=
24
+
20
25
21
26
# Parse command line arguments
22
27
parse_args () {
@@ -168,7 +173,7 @@ configure_environment() {
168
173
if [ " $NETWORK " = " troll-turtle" ]; then
169
174
BOOTNODE_URL=" ${BOOTNODE_URL:- http:// 34.82.213.6: 8080} "
170
175
ETHEREUM_HOST=" ${ETHEREUM_HOST:- http:// 34.19.127.9: 8545} "
171
- IMAGE=" ${IMAGE:- aztecprotocol/ aztec: 0.67.1 } "
176
+ IMAGE=" ${IMAGE:- aztecprotocol/ aztec: troll-turtle } "
172
177
else
173
178
# unknown network
174
179
echo -e " ${RED} Unknown network: $NETWORK ${NC} "
You can’t perform that action at this time.
0 commit comments