Skip to content

Commit 6cd08aa

Browse files
committed
remove interactive mode, add aptos cmd and custom port bindings
1 parent 56566ca commit 6cd08aa

File tree

18 files changed

+121
-416
lines changed

18 files changed

+121
-416
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/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.

framework/cmd/main.go

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,6 @@ func main() {
3333
Usage: "Chainlink Testing Framework CLI",
3434
UsageText: "'ctf' is a useful utility that can:\n- clean up test docker containers\n- modify test files\n- create a local observability stack with Grafana/Loki/Pyroscope",
3535
Commands: []*cli.Command{
36-
{
37-
Name: "build",
38-
Aliases: []string{"b"},
39-
Usage: "Build an environment interactively, suitable for non-technical users",
40-
Subcommands: []*cli.Command{
41-
{
42-
Name: "node_set",
43-
Aliases: []string{"ns"},
44-
Usage: "Builds a NodeSet and connect it to some networks",
45-
Action: func(c *cli.Context) error {
46-
return runSetupForm()
47-
},
48-
},
49-
},
50-
},
5136
{
5237
Name: "config",
5338
Aliases: []string{"c"},
@@ -77,24 +62,12 @@ func main() {
7762
Aliases: []string{"d"},
7863
Usage: "Control docker containers marked with 'framework=ctf' label",
7964
Subcommands: []*cli.Command{
80-
{
81-
Name: "clean",
82-
Aliases: []string{"c"},
83-
Usage: "Cleanup all docker resources: volumes, images, build caches",
84-
Action: func(c *cli.Context) error {
85-
err := cleanUpDockerResources()
86-
if err != nil {
87-
return fmt.Errorf("failed to clean Docker resources: %w", err)
88-
}
89-
return nil
90-
},
91-
},
9265
{
9366
Name: "remove",
9467
Aliases: []string{"rm"},
9568
Usage: "Remove Docker containers and networks with 'framework=ctf' label",
9669
Action: func(c *cli.Context) error {
97-
err := removeTestContainers()
70+
err := framework.RemoveTestContainers()
9871
if err != nil {
9972
return fmt.Errorf("failed to clean Docker resources: %w", err)
10073
}

0 commit comments

Comments
 (0)