proxy-wasm-rust-sdk icon indicating copy to clipboard operation
proxy-wasm-rust-sdk copied to clipboard

Envoy filter unit test

Open ALNBAND opened this issue 4 years ago • 2 comments

Hey,

This is not a bug but rather a question, is there any example for unit test for wasm filter in Rust, as I didnt find any...

Thanks

ALNBAND avatar Aug 26 '21 06:08 ALNBAND

I've been looking into this too. Just starting to poke around but my current understanding is since there is no x86_64 bindings for proxy-wasm:: hostcalls functions any build would fail if it's not targeting wasm32 (See #127)

It should be possible to create a mock interface for the hostcalls, but haven't researched how to approach this yet, but any pointer from the maintainers would be helpful 👍

sagmor avatar Dec 16 '21 21:12 sagmor

A mock interface or test bed was created with https://github.com/proxy-wasm/test-framework unsure how up to date it is with the current ABI though.

Swaagie avatar Mar 17 '22 10:03 Swaagie