Skip to content

Commit feab729

Browse files
committed
Merge branch 'main' into bump-go-ethereum
2 parents 9db8e60 + 279fb34 commit feab729

File tree

77 files changed

+4681
-981
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+4681
-981
lines changed

book/README.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
# Chainlink Testing Framework Docs
2-
3-
We use [mdBook](https://github.com/rust-lang/mdBook) for our docs. They can be found [here](https://smartcontractkit.github.io/chainlink-testing-framework/).
4-
5-
## Development
6-
7-
First [install Rust](https://doc.rust-lang.org/cargo/getting-started/installation.html), then [mdbook](https://github.com/rust-lang/mdBook).
8-
9-
```sh
10-
# Install mdBook
1+
## MDBook
2+
Install [mdbook](https://github.com/rust-lang/mdBook)
3+
```
114
cargo install mdbook && \
125
cargo install mdbook-alerts && \
13-
cargo install mdbook-cmdrun
14-
# Run the mdBook
6+
cargo install mdbook-cmdrun &&
7+
cargo install mdbook-mermaid
8+
```
9+
10+
Run it locally
11+
```
1512
make run
1613
```
14+
Open your browser [here](http://localhost:9999/)
1715

18-
Visit [localhost:9999](http://localhost:9999) to see your local version.
16+
GitHub hosted [version](https://smartcontractkit.github.io/chainlink-testing-framework/overview.html)

book/book.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ build-dir = "docs"
1010

1111
[output.html]
1212
default-theme = "ayu"
13+
additional-js = ["mermaid.min.js", "mermaid-init.js"]
1314

1415
[preprocessor.alerts]
15-
[preprocessor.cmdrun]
16+
[preprocessor.cmdrun]
17+
18+
[preprocessor.mermaid]
19+
command = "mdbook-mermaid"

book/mermaid-init.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
(() => {
2+
const darkThemes = ['ayu', 'navy', 'coal'];
3+
const lightThemes = ['light', 'rust'];
4+
5+
const classList = document.getElementsByTagName('html')[0].classList;
6+
7+
let lastThemeWasLight = true;
8+
for (const cssClass of classList) {
9+
if (darkThemes.includes(cssClass)) {
10+
lastThemeWasLight = false;
11+
break;
12+
}
13+
}
14+
15+
const theme = lastThemeWasLight ? 'default' : 'dark';
16+
mermaid.initialize({ startOnLoad: true, theme });
17+
18+
// Simplest way to make mermaid re-render the diagrams in the new theme is via refreshing the page
19+
20+
for (const darkTheme of darkThemes) {
21+
document.getElementById(darkTheme).addEventListener('click', () => {
22+
if (lastThemeWasLight) {
23+
window.location.reload();
24+
}
25+
});
26+
}
27+
28+
for (const lightTheme of lightThemes) {
29+
document.getElementById(lightTheme).addEventListener('click', () => {
30+
if (!lastThemeWasLight) {
31+
window.location.reload();
32+
}
33+
});
34+
}
35+
})();

book/mermaid.min.js

Lines changed: 2186 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

book/src/SUMMARY.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,33 @@
4949
- [Interactive](framework/interactive.md)
5050
- [Libraries](./libraries.md)
5151
- [Seth](./libs/seth.md)
52-
- [WASP](./libs/wasp.md)
52+
- [WASP](./libs/wasp/overview.md)
53+
- [Getting started](./libs/wasp/getting_started.md)
54+
- [First test (RPS test)](./libs/wasp/first_test.md)
55+
- [Stateful test](./libs/wasp/stateful_test.md)
56+
- [User Journey test](./libs/wasp/user_journey_test.md)
57+
- [Profile test](./libs/wasp/profile_test.md)
58+
- [Testing alerts]()
59+
- [Configuration](./libs/wasp/configuration.md)
60+
- [k8s](./libs/wasp/k8s.md)
61+
- [Components](./libs/wasp/components/overview.md)
62+
- [Alert Checker]()
63+
- [Dashboard](./libs/wasp/components/dashboard.md)
64+
- [Generator](./libs/wasp/components/generator.md)
65+
- [Loki](./libs/wasp/components/loki.md)
66+
- [Profile](./libs/wasp/components/profile.md)
67+
- [Sampler](./libs/wasp/components/sampler.md)
68+
- [Schedule](./libs/wasp/components/schedule.md)
69+
- [How to](./libs/wasp/how-to/overview.md)
70+
- [Start local observability stack](./libs/wasp/how-to/start_local_observability_stack.md)
71+
- [Try it out quickly](./libs/wasp/how-to/run_included_tests.md)
72+
- [Chose between RPS and VUs](./libs/wasp/how-to/chose_rps_vu.md)
73+
- [Define NFRs and check alerts](./libs/wasp/how-to/define_nfr_check_alerts.md)
74+
- [Use labels](./libs/wasp/how-to/use_labels.md)
75+
- [Incorporate load tests in your workflow](./libs/wasp/how-to/incorporate_load_tests.md)
76+
- [Reuse dashboard components](./libs/wasp/how-to/reuse_dashboard_components.md)
77+
- [Parallelize load](./libs/wasp/how-to/parallelise_load.md)
78+
- [Debug Loki errors](./libs/wasp/how-to/debug_loki_errors.md)
5379
- [Havoc](./libs/havoc.md)
5480
- [K8s Test Runner](k8s-test-runner/k8s-test-runner.md)
5581

book/src/framework/components/chainlink/node.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Here we provide full configuration reference, if you want to copy and run it, pl
1313

1414
[cl_node.db]
1515
# PostgreSQL image version and tag
16-
image = "postgres:15.6"
16+
image = "postgres:12.0"
1717
# Pulls the image every time if set to 'true', used like that in CI. Can be set to 'false' to speed up local runs
1818
pull_image = false
1919

book/src/framework/components/chainlink/nodeset.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Then configure NodeSet
5555

5656
[nodeset.db]
5757
# PostgreSQL image version and tag
58-
image = "postgres:15.6"
58+
image = "postgres:12.0"
5959
# Pulls the image every time if set to 'true', used like that in CI. Can be set to 'false' to speed up local runs
6060
pull_image = false
6161
# PostgreSQL volume name

book/src/framework/components/state.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ You can also define a custom set of ports for any node
4747
override_mode = "each"
4848

4949
[nodeset.db]
50-
image = "postgres:15.6"
50+
image = "postgres:12.0"
5151

5252
[[nodeset.node_specs]]
5353

book/src/framework/connecting_chainlink_node.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Create your configuration in `smoke.toml`
1515
[cl_node]
1616

1717
[cl_node.db]
18-
image = "postgres:15.6"
18+
image = "postgres:12.0"
1919

2020
[cl_node.node]
2121
image = "public.ecr.aws/chainlink/chainlink:v2.17.0"

book/src/framework/nodeset_capabilities.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Create a configuration file `smoke.toml`
2828
override_mode = "all"
2929

3030
[nodeset.db]
31-
image = "postgres:15.6"
31+
image = "postgres:12.0"
3232

3333
[[nodeset.node_specs]]
3434

0 commit comments

Comments
 (0)