@@ -70,71 +70,71 @@ check_endpoint "http://localhost:3000" "200" "UI"
7070kill $pf_pid 2> /dev/null || true
7171sleep 2
7272
73- # Skip OTEL collector metrics test (port 8888 not exposed by HyperDX collector)
74- echo " Skipping OTEL collector metrics test (not exposed on port 8888)"
75-
76- # Test data ingestion
77- echo " Testing data ingestion..."
78- kubectl port-forward service/$RELEASE_NAME -hdx-oss-v2-otel-collector 4318:4318 -n $NAMESPACE &
79- pf_pid=$!
80- sleep 10
81-
82- # Send test log
83- echo " Sending test log..."
84- timestamp=$( date +%s)
85- curl -X POST http://localhost:4318/v1/logs \
86- -H " Content-Type: application/json" \
87- -d ' {
88- "resourceLogs": [{
89- "resource": {
90- "attributes": [
91- {"key": "service.name", "value": {"stringValue": "test-service"}},
92- {"key": "environment", "value": {"stringValue": "test"}}
93- ]
94- },
95- "scopeLogs": [{
96- "scope": {"name": "test-scope"},
97- "logRecords": [{
98- "timeUnixNano": "' ${timestamp} ' 000000000",
99- "severityText": "INFO",
100- "body": {"stringValue": "Test log from deployment check"}
101- }]
102- }]
103- }]
104- }' > /dev/null 2>&1
105-
106- echo " Log sent"
107-
108- # Send test trace
109- echo " Sending test trace..."
110- trace_id=$( openssl rand -hex 16)
111- span_id=$( openssl rand -hex 8)
112- curl -X POST http://localhost:4318/v1/traces \
113- -H " Content-Type: application/json" \
114- -d ' {
115- "resourceSpans": [{
116- "resource": {
117- "attributes": [
118- {"key": "service.name", "value": {"stringValue": "test-service"}}
119- ]
120- },
121- "scopeSpans": [{
122- "scope": {"name": "test-tracer"},
123- "spans": [{
124- "traceId": "' $trace_id ' ",
125- "spanId": "' $span_id ' ",
126- "name": "test-operation",
127- "kind": 1,
128- "startTimeUnixNano": "' ${timestamp} ' 000000000",
129- "endTimeUnixNano": "' $(( timestamp + 1 )) ' 000000000"
130- }]
131- }]
132- }]
133- }' > /dev/null 2>&1
134-
135- echo " Trace sent"
136-
137- kill $pf_pid 2> /dev/null || true
73+ # # Skip OTEL collector metrics test (port 8888 not exposed by HyperDX collector)
74+ # echo "Skipping OTEL collector metrics test (not exposed on port 8888)"
75+
76+ # # Test data ingestion
77+ # echo "Testing data ingestion..."
78+ # kubectl port-forward service/$RELEASE_NAME-hdx-oss-v2-otel-collector 4318:4318 -n $NAMESPACE &
79+ # pf_pid=$!
80+ # sleep 10
81+
82+ # # Send test log
83+ # echo "Sending test log..."
84+ # timestamp=$(date +%s)
85+ # curl -X POST http://localhost:4318/v1/logs \
86+ # -H "Content-Type: application/json" \
87+ # -d '{
88+ # "resourceLogs": [{
89+ # "resource": {
90+ # "attributes": [
91+ # {"key": "service.name", "value": {"stringValue": "test-service"}},
92+ # {"key": "environment", "value": {"stringValue": "test"}}
93+ # ]
94+ # },
95+ # "scopeLogs": [{
96+ # "scope": {"name": "test-scope"},
97+ # "logRecords": [{
98+ # "timeUnixNano": "'${timestamp}'000000000",
99+ # "severityText": "INFO",
100+ # "body": {"stringValue": "Test log from deployment check"}
101+ # }]
102+ # }]
103+ # }]
104+ # }' > /dev/null 2>&1
105+
106+ # echo "Log sent"
107+
108+ # # Send test trace
109+ # echo "Sending test trace..."
110+ # trace_id=$(openssl rand -hex 16)
111+ # span_id=$(openssl rand -hex 8)
112+ # curl -X POST http://localhost:4318/v1/traces \
113+ # -H "Content-Type: application/json" \
114+ # -d '{
115+ # "resourceSpans": [{
116+ # "resource": {
117+ # "attributes": [
118+ # {"key": "service.name", "value": {"stringValue": "test-service"}}
119+ # ]
120+ # },
121+ # "scopeSpans": [{
122+ # "scope": {"name": "test-tracer"},
123+ # "spans": [{
124+ # "traceId": "'$trace_id'",
125+ # "spanId": "'$span_id'",
126+ # "name": "test-operation",
127+ # "kind": 1,
128+ # "startTimeUnixNano": "'${timestamp}'000000000",
129+ # "endTimeUnixNano": "'$((timestamp + 1))'000000000"
130+ # }]
131+ # }]
132+ # }]
133+ # }' > /dev/null 2>&1
134+
135+ # echo "Trace sent"
136+
137+ # kill $pf_pid 2>/dev/null || true
138138
139139# Test databases
140140echo " Testing ClickHouse..."
@@ -153,24 +153,24 @@ else
153153 exit 1
154154fi
155155
156- # Check if data got ingested
157- echo " Waiting for data ingestion..."
158- sleep 30
156+ # # Check if data got ingested
157+ # echo "Waiting for data ingestion..."
158+ # sleep 30
159159
160- echo " Checking ingested data..."
161- log_count=$( kubectl exec -n $NAMESPACE deployment/$RELEASE_NAME -hdx-oss-v2-clickhouse -- clickhouse-client --query " SELECT count() FROM default.otel_logs WHERE ServiceName = 'test-service'" 2> /dev/null || echo " 0" )
160+ # echo "Checking ingested data..."
161+ # log_count=$(kubectl exec -n $NAMESPACE deployment/$RELEASE_NAME-hdx-oss-v2-clickhouse -- clickhouse-client --query "SELECT count() FROM default.otel_logs WHERE ServiceName = 'test-service'" 2>/dev/null || echo "0")
162162
163- echo " Found $log_count test log records"
163+ # echo "Found $log_count test log records"
164164
165- if [ " $log_count " -gt " 0" ]; then
166- echo " Data ingestion: OK"
167- else
168- echo " Data ingestion: No data found (may be normal for quick test)"
169- fi
165+ # if [ "$log_count" -gt "0" ]; then
166+ # echo "Data ingestion: OK"
167+ # else
168+ # echo "Data ingestion: No data found (may be normal for quick test)"
169+ # fi
170170
171171echo " "
172172echo " Tests completed successfully"
173173echo " - All components running"
174174echo " - Endpoints responding"
175- echo " - Data ingestion working"
175+ # echo "- Data ingestion working"
176176echo " - Database connections OK"
0 commit comments