ipld-eth-db-validator/test
Michael 517bd1823e
updates for geth 1.10.26 and cerc repo migration (#24)
* updates for geth 1.10.26 and cerc repo migration

* pull from git.vdb.to

* docker login not valid here as workflow action
2022-11-09 11:46:03 -05:00
..
contract Feature/update go geth sharding (#13) 2022-06-03 09:28:02 -04:00
helper.go geth 1.10.25 dependency updates and cerc-io refactoring (#22) 2022-09-27 09:24:03 -04:00
integration_suite_test.go Add integration test and dynamic txn unit test. 2022-01-20 18:52:01 +05:30
integration_test.go updates for geth 1.10.26 and cerc repo migration (#24) 2022-11-09 11:46:03 -05:00
README.md Make writeStateDiffAt call on missing block and add metrics (#20) 2022-08-23 13:05:50 +05:30

Test Instructions

Setup

  • For running integration tests:

    • Clone stack-orchestrator, go-ethereum and ipld-eth-db repositories.

    • Checkout v4 release in ipld-eth-db repo.

      # In ipld-eth-db repo.
      git checkout v4.2.1-alpha
      
    • Checkout v4 release in go-ethereum repo.

      # In go-ethereum repo.
      git checkout v1.10.21-statediff-4.1.2-alpha
      
    • Checkout working commit in stack-orchestrator repo.

      # In stack-orchestrator repo.
      git checkout f2fd766f5400fcb9eb47b50675d2e3b1f2753702
      

Run

  • Run unit tests:

    # In ipld-eth-db-validator root directory.
    ./scripts/run_unit_test.sh
    
  • Run integration tests:

    • In stack-orchestrator repo:

      • Create config file:

        cd helper-scripts
        
        ./create-config.sh
        

        A config.sh will be created in the root directory.

      • Update/Edit the config file config.sh:

        #!/bin/bash
        
        # Path to ipld-eth-server repo.
        vulcanize_ipld_eth_db=~/ipld-eth-db/
        
        # Path to go-ethereum repo.
        vulcanize_go_ethereum=~/go-ethereum
        
        # Path to contract folder.
        vulcanize_test_contract=~/ipld-eth-db-validator/test/contract
        
        genesis_file_path='start-up-files/go-ethereum/genesis.json'
        db_write=true
        
      • Run stack-orchestrator:

        # In stack-orchestrator root directory.
        cd helper-scripts
        
        ./wrapper.sh \
        -e docker \
        -d ../docker/local/docker-compose-db-sharding.yml \
        -d ../docker/local/docker-compose-go-ethereum.yml \
        -d ../docker/local/docker-compose-contract.yml \
        -v remove \
        -p ../config.sh
        
    • Run tests:

      # In ipld-eth-db-validator root directory.
      ./scripts/run_integration_test.sh