This is an automated email from the ASF dual-hosted git repository.
zyxxoo pushed a commit to branch refactor/rust-rewrite-design
in repository https://gitbox.apache.org/repos/asf/hugegraph.git
The following commit(s) were added to refs/heads/refactor/rust-rewrite-design
by this push:
new a08b27e43 test(cluster): report fixture API failures
a08b27e43 is described below
commit a08b27e43d72d1eb2a88ca260cd2c811b7c23a57
Author: vaughn <[email protected]>
AuthorDate: Sun Sep 13 17:57:12 2026 +0800
test(cluster): report fixture API failures
---
tools/rust-rewrite-cluster/smoke.sh | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/tools/rust-rewrite-cluster/smoke.sh
b/tools/rust-rewrite-cluster/smoke.sh
index b8c8820c9..7dff8852a 100755
--- a/tools/rust-rewrite-cluster/smoke.sh
+++ b/tools/rust-rewrite-cluster/smoke.sh
@@ -35,11 +35,19 @@ fixture_id="rust-gate-$(date +%Y%m%d%H%M%S%N)"
property_key="rust_gate_pk_${fixture_id//[^a-zA-Z0-9]/}"
vertex_label="rust_gate_vl_${fixture_id//[^a-zA-Z0-9]/}"
json_header='Content-Type: application/json'
-curl_local -fsS -X POST "$base_server/graphs/hugegraph/schema/propertykeys" -H
"$json_header" -d
"{\"name\":\"$property_key\",\"data_type\":\"TEXT\",\"cardinality\":\"SINGLE\",\"properties\":[]}"
>/dev/null
+post_checked() {
+ local url=$1 data=$2 body code
+ body=$(mktemp)
+ code=$(curl_local -sS -o "$body" -w '%{http_code}' -X POST "$url" -H
"$json_header" -d "$data")
+ cat "$body"
+ echo "HTTP $code" >&2
+ [[ "$code" =~ ^2[0-9][0-9]$ ]] || return 1
+}
+post_checked "$base_server/graphs/hugegraph/schema/propertykeys"
"{\"name\":\"$property_key\",\"data_type\":\"TEXT\",\"cardinality\":\"SINGLE\",\"properties\":[]}"
>/dev/null
sleep 10
-curl_local -fsS -X POST "$base_server/graphs/hugegraph/schema/vertexlabels" -H
"$json_header" -d
"{\"name\":\"$vertex_label\",\"id_strategy\":\"CUSTOMIZE_STRING\",\"properties\":[\"$property_key\"],\"primary_keys\":[],\"nullable_keys\":[]}"
>/dev/null
+post_checked "$base_server/graphs/hugegraph/schema/vertexlabels"
"{\"name\":\"$vertex_label\",\"id_strategy\":\"CUSTOMIZE_STRING\",\"properties\":[\"$property_key\"],\"primary_keys\":[],\"nullable_keys\":[]}"
>/dev/null
sleep 10
-curl_local -fsS -X POST "$base_server/graphs/hugegraph/graph/vertices" -H
"$json_header" -d
"{\"id\":\"$fixture_id\",\"label\":\"$vertex_label\",\"properties\":{\"$property_key\":\"committed\"}}"
>/dev/null
+post_checked "$base_server/graphs/hugegraph/graph/vertices"
"{\"id\":\"$fixture_id\",\"label\":\"$vertex_label\",\"properties\":{\"$property_key\":\"committed\"}}"
>/dev/null
"${compose[@]}" stop pd0 >/dev/null
sleep 8