Skip to content

Commit abd0c96

Browse files
authored
remove interactive mode, add aptos cmd and custom port bindings, expose containers rm command (#1757)
* remove interactive mode, add aptos cmd and custom port bindings * review fixes
1 parent 56566ca commit abd0c96

File tree

19 files changed

+104
-406
lines changed

19 files changed

+104
-406
lines changed

book/src/SUMMARY.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
- [Performance]()
6161
- [Chaos](./framework/chaos/chaos.md)
6262
- [Fork Testing](./framework/fork.md)
63-
- [Interactive](framework/interactive.md)
6463
- [Libraries](./libraries.md)
6564
- [Seth](./libs/seth.md)
6665
- [WASP](./libs/wasp/overview.md)

book/src/framework/components/blockchains/aptos.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ API is available on [localhost:8080](http://localhost:8080/v1)
1717
type = "aptos"
1818
image = "aptoslabs/tools:aptos-node-v1.18.0" # or aptoslabs/tools:nightly
1919
contracts_dir = "$your_dir"
20+
# expose custom ports
21+
custom_ports = ["2020", "4050:4050"]
22+
# add command params
23+
docker_cmd_params = ["--skip-metadata-apply"]
2024
```
2125

2226
## Usage

book/src/framework/getting_started.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,4 @@ Spin up your `Blockscout` stack
6464
```
6565
ctf bs up
6666
```
67-
More [docs](observability/blockscout.md)
68-
69-
## Interactive
70-
71-
If you're a non-technical user or want to integrate with Chainlink using a language other than Golang, please follow our Interactive [setup](interactive.md) guide.
67+
More [docs](observability/blockscout.md)

book/src/framework/interactive.md

Lines changed: 0 additions & 40 deletions
This file was deleted.

book/src/overview.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ This documentation is intended for:
88

99
To get started with writing system-level tests, refer to the [Framework](./framework/getting_started.md) chapter, where we guide you from basic to more complex scenarios.
1010

11-
If you want to build integration with Chainlink not in [Golang](https://go.dev/), please refer to our [Interactive](framework/interactive.md) chapter.
12-
1311
See mono repository [tooling](monorepo-tools.md) to start working with Go modules.
1412

1513
[Repository](https://github.com/smartcontractkit/chainlink-testing-framework) contains two major pieces:

framework/.changeset/v0.7.1.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- Remove interactive mode
2+
- Add custom ports and cmd override for Aptos
3+
- Expose API to remove containers

framework/cmd/blockscout.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func blockscoutUp(url string) error {
1414
return err
1515
}
1616
os.Setenv("BLOCKSCOUT_RPC_URL", url)
17-
err := runCommand("bash", "-c", fmt.Sprintf(`
17+
err := framework.RunCommand("bash", "-c", fmt.Sprintf(`
1818
cd %s && \
1919
docker compose up -d
2020
`, "blockscout"))
@@ -29,14 +29,14 @@ func blockscoutUp(url string) error {
2929
func blockscoutDown(url string) error {
3030
framework.L.Info().Msg("Removing local Blockscout stack")
3131
os.Setenv("BLOCKSCOUT_RPC_URL", url)
32-
err := runCommand("bash", "-c", fmt.Sprintf(`
32+
err := framework.RunCommand("bash", "-c", fmt.Sprintf(`
3333
cd %s && \
3434
docker compose down -v
3535
`, "blockscout"))
3636
if err != nil {
3737
return err
3838
}
39-
return runCommand("bash", "-c", fmt.Sprintf(`
39+
return framework.RunCommand("bash", "-c", fmt.Sprintf(`
4040
cd %s && \
4141
rm -rf blockscout-db-data && \
4242
rm -rf logs && \

framework/cmd/docker.go

Lines changed: 0 additions & 55 deletions
This file was deleted.

framework/cmd/interactive.go

Lines changed: 0 additions & 187 deletions
This file was deleted.

0 commit comments

Comments
 (0)