Skip to content

Commit

Permalink
docs: minor updates in e2e-tests readme
Browse files Browse the repository at this point in the history
  • Loading branch information
LGLO authored Feb 21, 2025
1 parent 3d0fc95 commit 6ad8af9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion e2e-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Welcome to `Partner Chains Tests`, a powerful and flexible test automation frame

## Installation

1. Install `python 3.12` and `pip`.
1. Install `python 3.12` and `pip`. At this point, python from nix devshell does not work with e2e-tests, please install a separate one in your system.
2. Create and activate virtual environment

```bash
Expand Down
8 changes: 4 additions & 4 deletions e2e-tests/docs/run-tests-on-local-env.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
## Prerequisites

- Docker Desktop, lazydocker
- python3, pip
- python3, pip. At this point, python from nix devshell does not work with e2e-tests, please install a separate one in your system.

## Steps

1. Configure partner-chains local environment by running [setup.sh](/dev/local-environment/setup.sh)
- If you want to use a pre-configured postgres password from /e2e-tests/secrets/substrate/local/local.json: `$ ./setup.sh -p <PASSWORD>`
- If you want to use a pre-configured postgres password from /e2e-tests/secrets/substrate/local/local.json: `$ ./setup.sh -p azMpOp4mTqhlKDmgCVQr`
- If you want to use generated password from local env: run `$ ./setup.sh -n`. Password is saved in `.env` file, you will need it later
2. Run local environment: `$ docker-compose up -d` and wait until the partner chains nodes finish syncing
3. Get initial_timestamp value: `$ docker exec cardano-node-1 cat /shared/cardano.start`
4. Set postgres passwords
- If you used a pre-configured password, skip this step
- If you used a generated password - update db and dbSync password values in `secrets/substrate/local/local.json` with the POSTGRES_PASSWORD env variable value from the `.env` file
5. Update `main_chain.init_timestamp` at config/substrate/local_nodes.json to the resulting value of `docker exec cardano-node-1 cat /shared/cardano.start` or alteratively pass it directly to `pytest` with `--init-timestamp=1234567890`
5. Update `main_chain.init_timestamp` at `config/substrate/local_nodes.json` to the resulting value of `docker exec cardano-node-1 cat /shared/cardano.start` or alteratively pass it directly to `pytest` with `--init-timestamp=1234567890`
6. Create and activate virtual environment

```bash
pip install virtualenv
python -m venv venv
source venv/bin/active
source venv/bin/activate
```

1. Install project dependencies: `$ pip install -r requirements.txt`
Expand Down

0 comments on commit 6ad8af9

Please sign in to comment.