Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use jetstream strict for tests #1310

Merged
merged 2 commits into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions async-nats/tests/configs/jetstream.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
jetstream: {
strict: true,
max_mem_store: 64MiB,
max_file_store: 10GiB
}
2 changes: 1 addition & 1 deletion async-nats/tests/configs/jetstream_hub.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
server_name: HUB
jetstream: { domain: HUB }
jetstream: { strict: true, domain: HUB }
leafnodes { listen: 127.0.0.1:7422 }
2 changes: 1 addition & 1 deletion async-nats/tests/configs/jetstream_leaf.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
server_name: LEAF
jetstream: { domain:LEAF }
jetstream: { strict: true, domain:LEAF }
leafnodes {
remotes = [ { url: "leaf://127.0.0.1:7422" } ]
}
7 changes: 5 additions & 2 deletions async-nats/tests/kv_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mod kv {
use async_nats::{
jetstream::{
kv::Operation,
stream::{self, DiscardPolicy, Republish, Source, StorageType},
stream::{self, DiscardPolicy, External, Republish, Source, StorageType},
},
ConnectOptions,
};
Expand Down Expand Up @@ -1008,7 +1008,10 @@ mod kv {
bucket: "MIRROR".into(),
mirror: Some(Source {
name: "TEST".into(),
domain: Some("HUB".into()),
external: Some(External {
api_prefix: "$JS.HUB.API".into(),
..Default::default()
}),
..Default::default()
}),
..Default::default()
Expand Down
1 change: 1 addition & 0 deletions nats-server/configs/jetstream.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
jetstream: {
strict: true,
max_mem_store: 8MiB,
max_file_store: 10GiB
}
Loading