0xPolygonHermez / zkevm-bridge-service

Other
68 stars 66 forks source link

Feature/cdk263 test bridge real network #644

Closed joanestebanr closed 3 months ago

joanestebanr commented 3 months ago

Add a configurable e2e-test for prove ERC20 L1 -> L2 / L2->L1

What does this PR do?

Running e2e test for real networks

There are a test for ERC20 L1->L2 and L2->L1. This test is for be run externally. For this reason you can build execution docker:

make build-docker-e2e-real_network
#!/bin/bash
make build-docker-e2e-real_network
mkdir tmp
cat <<EOF > ./tmp/test.toml
TestAddrPrivate= "${{ SECRET_PRIVATE_ADDR }}"
[ConnectionConfig]
L1NodeURL="${{ SECRET_L1URL }}"
L2NodeURL="${{ L2URL }}"
BridgeURL="${{ BRIDGEURL }}"
L1BridgeAddr="${{ BRIDGE_ADDR_L1 }}"
L2BridgeAddr="${{ BRIDGE_ADDR_L2 }}"
EOF
docker run  --volume "./tmp/:/config/" --env BRIDGE_TEST_CONFIG_FILE=/config/test.toml bridge-e2e-realnetwork-erc20

Reviewers

Main reviewers:

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
3 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud