Skip to content

Commit

Permalink
chore: move test_data under tests/data
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrizio Sestito <fabrizio.sestito@suse.com>
  • Loading branch information
fabriziosestito committed Dec 13, 2023
1 parent 0c6d6e6 commit 5bbdd60
Show file tree
Hide file tree
Showing 15 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/policy_evaluator/policy_evaluator_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ mod tests {
#[test]
fn build_policy_evaluator_pre() {
let engine = wasmtime::Engine::default();
let wat = include_bytes!("../../test_data/endless_wasm/wapc_endless_loop.wat");
let wat = include_bytes!("../../tests/data/endless_wasm/wapc_endless_loop.wat");
let module = wasmtime::Module::new(&engine, wat).expect("cannot compile WAT to wasm");

let policy_evaluator_builder = PolicyEvaluatorBuilder::new()
Expand Down
2 changes: 1 addition & 1 deletion src/runtimes/rego/context_aware.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ pub(crate) mod tests {
namespace: Option<&str>,
name: &str,
) -> Result<kube::core::DynamicObject> {
let path = Path::new("test_data/fixtures/kube_context")
let path = Path::new("tests/data/fixtures/kube_context")
.join(resource_type)
.join(namespace.unwrap_or_default())
.join(format!("{name}.json"));
Expand Down
2 changes: 1 addition & 1 deletion src/runtimes/wapc/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ mod tests {
engine_conf.epoch_interruption(true);
let engine = wasmtime::Engine::new(&engine_conf).expect("cannot create wasmtime engine");

let wat = include_bytes!("../../../test_data/endless_wasm/wapc_endless_loop.wat");
let wat = include_bytes!("../../../tests/data/endless_wasm/wapc_endless_loop.wat");
let module = wasmtime::Module::new(&engine, wat).expect("cannot compile WAT to wasm");

// Create the wapc engine, the code will be interrupted after 10 ticks
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 5bbdd60

Please sign in to comment.