Skip to content

Commit

Permalink
feat: Allow local KV Stores to be defined using local_server.kv_stores (
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Champion authored Apr 11, 2023
1 parent dd12e4f commit f47ef9b
Show file tree
Hide file tree
Showing 6 changed files with 124 additions and 95 deletions.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cli/tests/integration/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ mod downstream_req;
mod env_vars;
mod geolocation_lookup;
mod http_semantics;
mod kv_store;
mod logging;
mod memory;
mod object_store;
mod request;
mod response;
mod secret_store;
Expand Down
2 changes: 1 addition & 1 deletion cli/tests/integration/secret_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async fn secret_store_works() -> TestResult {
authors = ["Jill Bryson <jbryson@fastly.com>", "Rose McDowall <rmcdowall@fastly.com>"]
language = "rust"
[local_server]
secret_stores.store_one = [{key = "first", data = "This is some data"},{key = "second", file = "../test-fixtures/data/object-store.txt"}]
secret_stores.store_one = [{key = "first", data = "This is some data"},{key = "second", file = "../test-fixtures/data/kv-store.txt"}]
"#;

let resp = Test::using_fixture("secret-store.wasm")
Expand Down
2 changes: 1 addition & 1 deletion lib/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ struct RawLocalServerConfig {
geolocation: Option<Table>,
#[serde(alias = "config_stores")]
dictionaries: Option<Table>,
#[serde(alias = "object_store")]
#[serde(alias = "object_store", alias = "kv_stores")]
object_stores: Option<Table>,
secret_stores: Option<Table>,
}
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit f47ef9b

Please sign in to comment.