stellar / system-test

Home of the stellar/stellar-system-test docker image for e2e system testing
1 stars 5 forks source link

New Scenario added for Soroban Diagnostic Events #53

Closed sreuland closed 1 year ago

sreuland commented 1 year ago

Added new verification steps to the DApp developer compiles, deploys and invokes a contract scenario for asserting on soroban diagnostic events retreival from cli and node js.

Best place to start for a review is to check that scenario out in dapp_develop.feature to see the new diagnostic events verification parameters.

current test summary output:

9 scenarios (9 passed)
65 steps (65 passed)
5m9.152619264s
--- PASS: TestDappDevelop (309.15s)
    --- PASS: TestDappDevelop/DApp_developer_compiles,_installs,_deploys_and_invokes_a_contract (54.54s)
    --- PASS: TestDappDevelop/DApp_developer_compiles,_installs,_deploys_and_invokes_a_contract#01 (30.58s)
    --- PASS: TestDappDevelop/DApp_developer_compiles,_installs,_deploys_and_invokes_a_contract#02 (30.45s)
    --- PASS: TestDappDevelop/DApp_developer_compiles,_installs,_deploys_and_invokes_a_contract#03 (30.49s)
    --- PASS: TestDappDevelop/DApp_developer_compiles,_deploys_and_invokes_a_contract (31.45s)
    --- PASS: TestDappDevelop/DApp_developer_compiles,_deploys_and_invokes_a_contract#01 (30.64s)
    --- PASS: TestDappDevelop/DApp_developer_compiles,_deploys_and_invokes_a_contract#02 (31.64s)
    --- PASS: TestDappDevelop/DApp_developer_compiles,_deploys_and_invokes_a_contract#03 (31.84s)
    --- PASS: TestDappDevelop/DApp_developer_uses_config_states,_compiles,_deploys_and_invokes_contract_with_authorizations (37.53s)
PASS

Closes #40

To run the pr locally:

$ git fetch origin pull/53/head:pr_53 && git checkout pr_53
$ make  \
  CORE_GIT_REF=https://github.com/stellar/stellar-core.git#064a2787acb9e98c70567523785333581ee1ffa4 \
  CORE_COMPILE_CONFIGURE_FLAGS="--disable-tests --enable-next-protocol-version-unsafe-for-production" \
  SOROBAN_RPC_GIT_REF=https://github.com/stellar/soroban-tools.git#main \
  SOROBAN_CLI_GIT_REF=https://github.com/stellar/soroban-tools.git#main \
  build

$ docker run -it --name e2e_test stellar/system-test:dev --SorobanExamplesGitHash v0.7.0