Skip to content

Commit 8e24cf8

Browse files
committed
feat(access-manager): nix e2e test
1 parent e07593b commit 8e24cf8

File tree

4 files changed

+40
-37
lines changed

4 files changed

+40
-37
lines changed

Cargo.lock

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

e2e/access-managed-example/Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ workspace = true
1515
crate-type = ["cdylib", "rlib"]
1616

1717
[dependencies]
18-
access-managed = { workspace = true, features = ["library"] }
19-
access-manager-types = { workspace = true }
20-
cosmwasm-std = { workspace = true }
21-
depolama = { workspace = true }
18+
access-managed = { workspace = true, features = ["library"] }
19+
access-manager-types = { workspace = true }
20+
cosmwasm-std = { workspace = true }
21+
depolama = { workspace = true }
2222
embed-commit.workspace = true
23-
frissitheto = { workspace = true }
24-
serde = { workspace = true, features = ["derive"] }
25-
thiserror.workspace = true
26-
unionlabs-encoding = { workspace = true, features = ["bincode"] }
23+
frissitheto = { workspace = true }
24+
serde = { workspace = true, features = ["derive"] }
25+
thiserror.workspace = true
26+
unionlabs-encoding = { workspace = true, features = ["bincode"] }
Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,34 @@
11
[package]
2-
authors.workspace = true
3-
edition.workspace = true
4-
license-file.workspace = true
5-
name = "access-manager-tests"
6-
publish.workspace = true
7-
repository.workspace = true
8-
version = "0.1.0"
2+
name = "access-manager-tests"
3+
version = "0.0.0"
4+
5+
authors = { workspace = true }
6+
edition = { workspace = true }
7+
license-file = { workspace = true }
8+
publish = { workspace = true }
9+
repository = { workspace = true }
910

1011
[dependencies]
11-
access-managed-example.workspace = true
12-
access-manager-types.workspace = true
13-
anyhow.workspace = true
14-
bip39 = "2.2.0"
15-
clap = { workspace = true, features = ["color", "derive", "env", "error-context", "help", "suggestions"] }
16-
cometbft-rpc.workspace = true
17-
cosmos-client.workspace = true
18-
cosmwasm-std.workspace = true
19-
hex-literal.workspace = true
20-
k256 = "0.13.4"
21-
protos.workspace = true
22-
serde.workspace = true
23-
serde_json.workspace = true
24-
sha2.workspace = true
25-
tiny-hderive = "0.3.0"
26-
tokio = { workspace = true, features = ["full"] }
27-
tracing.workspace = true
28-
tracing-subscriber.workspace = true
29-
unionlabs.workspace = true
12+
access-managed-example = { workspace = true }
13+
access-manager-types = { workspace = true }
14+
anyhow = { workspace = true }
15+
bip39 = "2.2.0"
16+
clap = { workspace = true, features = ["color", "derive", "env", "error-context", "help", "suggestions"] }
17+
cometbft-rpc = { workspace = true }
18+
cosmos-client = { workspace = true }
19+
cosmwasm-std = { workspace = true }
20+
embed-commit = { workspace = true }
21+
hex-literal = { workspace = true }
22+
k256 = "0.13.4"
23+
protos = { workspace = true }
24+
serde = { workspace = true }
25+
serde_json = { workspace = true }
26+
sha2 = { workspace = true }
27+
tiny-hderive = "0.3.0"
28+
tokio = { workspace = true, features = ["full"] }
29+
tracing = { workspace = true }
30+
tracing-subscriber = { workspace = true }
31+
unionlabs = { workspace = true }
3032

3133
[lints]
3234
workspace = true

e2e/all-tests.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
};
101101
};
102102

103-
access-manager =
103+
access-manager-e2e =
104104
let
105105
inherit ((crane.buildWorkspaceMember "e2e/access-manager-tests" { })) access-manager-tests;
106106
in
@@ -116,7 +116,7 @@
116116
devnetUnion.wait_until_succeeds('[[ $(curl "http://localhost:26660/block" --fail --silent | ${pkgs.lib.meta.getExe pkgs.jq} ".result.block.header.height | tonumber > 1") == "true" ]]')
117117
118118
119-
devnetUnion.succeed("RUST_LOG=info ${access-manager-tests} ws://union:26657/websocket ws://devnetEth:8546 |& tee output.txt")
119+
devnetUnion.wait_until_succeeds("RUST_LOG=info ${pkgs.lib.getExe access-manager-tests} --manager-bytecode ${self'.packages.access-manager.release} --managed-bytecode ${self'.packages.access-managed-example.release} -r http://localhost:26660 --gas feemarket --gas-multiplier 2 |& tee output.txt")
120120
121121
devnetUnion.copy_from_vm("output.txt", "")
122122
'';

0 commit comments

Comments
 (0)