Skip to content

Commit 8e9d3cc

Browse files
authored
chore: refine stream http api test (#18810)
remove unstable reponse elements: - stream_id - table_id - table_version
1 parent 9bbc2ba commit 8e9d3cc

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

tests/suites/5_ee/05_stream/05_0004_ee_stream_http_api.result

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,9 @@
55
"name": "s1",
66
"database": "default",
77
"catalog": "default",
8-
"stream_id": 1084,
98
"mode": "append_only",
109
"comment": "",
1110
"table_name": "t1",
12-
"table_id": 1076,
13-
"table_version": 1083,
1411
"snapshot_location": null
1512
}
1613
],

tests/suites/5_ee/05_stream/05_0004_ee_stream_http_api.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ echo "create table t1(a int)" | $BENDSQL_CLIENT_CONNECT
1010
echo "create stream s1 on table t1" | $BENDSQL_CLIENT_CONNECT
1111

1212
echo "# Test catalog streams API - existing database"
13-
curl -s -u root: -XGET "http://localhost:8000/v1/catalog/databases/default/streams" | jq 'del(.streams[].created_on, .streams[].updated_on)'
13+
curl -s -u root: -XGET "http://localhost:8000/v1/catalog/databases/default/streams" | jq 'del(.streams[].created_on, .streams[].updated_on, .streams[].stream_id, .streams[].table_id, .streams[].table_version)'
1414

1515
echo "# Test catalog streams API - non-existent database"
1616
curl -s -u root: -XGET "http://localhost:8000/v1/catalog/databases/nonexistent/streams" -w "%{http_code}\n"

0 commit comments

Comments
 (0)