mirror of
https://github.com/alibaba/higress.git
synced 2026-06-24 09:45:16 +08:00
optimize e2e test of rust wasm plugin (#1277)
This commit is contained in:
@@ -112,8 +112,7 @@ spec:
|
|||||||
headers:
|
headers:
|
||||||
- Content-Type=application/json
|
- Content-Type=application/json
|
||||||
"body": "{\"res\":\"costom_word\"}"
|
"body": "{\"res\":\"costom_word\"}"
|
||||||
|
url: oci://higress-registry.cn-hangzhou.cr.aliyuncs.com/plugins/go-custom-response:1.0.0
|
||||||
url: file:///opt/plugins/wasm-go/extensions/custom-response/plugin.wasm
|
|
||||||
---
|
---
|
||||||
apiVersion: extensions.higress.io/v1alpha1
|
apiVersion: extensions.higress.io/v1alpha1
|
||||||
kind: WasmPlugin
|
kind: WasmPlugin
|
||||||
@@ -146,5 +145,4 @@ spec:
|
|||||||
- regex: "sk-[0-9a-zA-Z]*"
|
- regex: "sk-[0-9a-zA-Z]*"
|
||||||
restore: true
|
restore: true
|
||||||
type: "hash"
|
type: "hash"
|
||||||
|
|
||||||
url: file:///opt/plugins/wasm-rust/extensions/ai-data-masking/plugin.wasm
|
url: file:///opt/plugins/wasm-rust/extensions/ai-data-masking/plugin.wasm
|
||||||
|
|||||||
@@ -45,17 +45,10 @@ then
|
|||||||
PLUGIN_NAME=${name} BUILDER_REGISTRY="docker.io/alihigress/plugins-rust-" make build
|
PLUGIN_NAME=${name} BUILDER_REGISTRY="docker.io/alihigress/plugins-rust-" make build
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
cd ../wasm-go/
|
|
||||||
PLUGIN_NAME=custom-response make build
|
|
||||||
else
|
else
|
||||||
echo "🚀 Build Rust WasmPlugin: $INNER_PLUGIN_NAME"
|
echo "🚀 Build Rust WasmPlugin: $INNER_PLUGIN_NAME"
|
||||||
PLUGIN_NAME=${INNER_PLUGIN_NAME} make lint
|
PLUGIN_NAME=${INNER_PLUGIN_NAME} make lint
|
||||||
PLUGIN_NAME=${INNER_PLUGIN_NAME} make build
|
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
|
fi
|
||||||
else
|
else
|
||||||
echo "Not specify plugin language, so just compile wasm-go as default"
|
echo "Not specify plugin language, so just compile wasm-go as default"
|
||||||
|
|||||||
Reference in New Issue
Block a user