Skip to content
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
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.roastedroot.proxywasm.jaxrs.example;

import com.dylibso.chicory.experimental.aot.AotMachine;
import com.dylibso.chicory.wasm.Parser;
import com.dylibso.chicory.wasm.WasmModule;
import io.roastedroot.proxywasm.StartException;
Expand All @@ -23,6 +24,7 @@ public PluginFactory example() throws StartException {
Plugin.builder()
.withName("example")
.withPluginConfig("{ \"type\": \"headerTests\" }")
.withMachineFactory(AotMachine::new)
.build(module);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.quarkiverse.proxywasm.it;

import com.dylibso.chicory.experimental.aot.AotMachine;
import com.dylibso.chicory.wasm.Parser;
import com.dylibso.chicory.wasm.WasmModule;
import com.google.gson.Gson;
Expand Down Expand Up @@ -39,6 +40,7 @@ public PluginFactory headerTestsNotShared() throws StartException {
.withShared(false)
.withLogger(new MockLogger("headerTestsNotShared"))
.withPluginConfig(gson.toJson(Map.of("type", "headerTests")))
.withMachineFactory(AotMachine::new)
.build(parseTestModule("/go-examples/unit_tester/main.wasm"));
}

Expand All @@ -49,6 +51,7 @@ public PluginFactory tickTests() throws StartException {
.withName("tickTests")
.withLogger(new MockLogger("tickTests"))
.withPluginConfig(gson.toJson(Map.of("type", "tickTests")))
.withMachineFactory(AotMachine::new)
.build(parseTestModule("/go-examples/unit_tester/main.wasm"));
}

Expand All @@ -60,6 +63,7 @@ public PluginFactory ffiTests() throws StartException {
.withLogger(new MockLogger("ffiTests"))
.withPluginConfig(gson.toJson(Map.of("type", "ffiTests")))
.withForeignFunctions(Map.of("reverse", App::reverse))
.withMachineFactory(AotMachine::new)
.build(parseTestModule("/go-examples/unit_tester/main.wasm"));
}

Expand All @@ -84,6 +88,7 @@ public PluginFactory httpCallTests() throws StartException {
"upstream", "web_service",
"path", "/ok")))
.withUpstreams(Map.of("web_service", "localhost:8081"))
.withMachineFactory(AotMachine::new)
.build(parseTestModule("/go-examples/unit_tester/main.wasm"));
}
}