Skip to content

Commit

Permalink
optimize e2e test of rust wasm plugin (#1277)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlanni committed Sep 3, 2024
1 parent ffc0c09 commit 55c0eb3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
4 changes: 1 addition & 3 deletions test/e2e/conformance/tests/rust-wasm-ai-data-masking.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ spec:
headers:
- Content-Type=application/json
"body": "{\"res\":\"costom_word\"}"

url: file:///opt/plugins/wasm-go/extensions/custom-response/plugin.wasm
url: oci://higress-registry.cn-hangzhou.cr.aliyuncs.com/plugins/go-custom-response:1.0.0
---
apiVersion: extensions.higress.io/v1alpha1
kind: WasmPlugin
Expand Down Expand Up @@ -146,5 +145,4 @@ spec:
- regex: "sk-[0-9a-zA-Z]*"
restore: true
type: "hash"

url: file:///opt/plugins/wasm-rust/extensions/ai-data-masking/plugin.wasm
7 changes: 0 additions & 7 deletions tools/hack/build-wasm-plugins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,10 @@ then
PLUGIN_NAME=${name} BUILDER_REGISTRY="docker.io/alihigress/plugins-rust-" make build
fi
done
cd ../wasm-go/
PLUGIN_NAME=custom-response make build
else
echo "🚀 Build Rust WasmPlugin: $INNER_PLUGIN_NAME"
PLUGIN_NAME=${INNER_PLUGIN_NAME} make lint
PLUGIN_NAME=${INNER_PLUGIN_NAME} make build
if [ "$INNER_PLUGIN_NAME" == "ai-data-masking" ]; then
cd ../wasm-go/
PLUGIN_NAME=custom-response make build
fi

fi
else
echo "Not specify plugin language, so just compile wasm-go as default"
Expand Down

0 comments on commit 55c0eb3

Please sign in to comment.