The GitHub Actions job "Required Checks" on 
texera.git/test/asterixdb-conn-util-spec has succeeded.
Run started by GitHub user eugenegujing (triggered by eugenegujing).

Head commit for run:
22df2b2cc0036b655fb3fd825ac2ba1dcd8098ad / eugenegujing 
<[email protected]>
test(workflow-operator): add unit test coverage for AsterixDBConnUtil

AsterixDBConnUtil, the HTTP-based connection utility behind the AsterixDB 
source operator, had no test coverage.

Add AsterixDBConnUtilSpec, 32 characterization tests driven by an in-process 
JDK HttpServer stub (same pattern as LiteLLMProxyAuthSpec, no new 
dependencies). Covered: per-host version-cache population and reuse; the 
version-dependent format field ("csv" for 0.9.5 vs "text/csv" otherwise, 
exact-equality check); the results iterator on HTTP 200 and the strict status 
check (201/204 go to the error path); the non-200 RuntimeException embedding 
status and body, plus current failure modes for malformed responses (NPE on a 
non-JSON body, JSONException on a 200 body without "results"); 
updateAsterixDBVersionMapping's status-only tolerance (silent on non-200, 
throws on a 200 with a wrong body shape); and fetchDataTypeFields recursive 
flattening with its exact tolerance boundary, the case-sensitive 
contains("type") recursion heuristic, and first-row-only consumption.

The mutable singleton version cache is reset around every test. Tests pin 
current behavior, including the NoSuchElementException thrown when the version 
probe fails.

Report URL: https://github.com/apache/texera/actions/runs/29866535442

With regards,
GitHub Actions via GitBox

Reply via email to