You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Match real Vuforia Model Target error responses (#3203)
* Match real Vuforia Model Target error responses
Probed real Vuforia to discover actual error response shapes, updated
the mock to match, and converted previously mock-only error-path tests
into verified-fake tests that run against real Vuforia + both mock
backends.
Closes#3197, #3193, #3194. Partial progress on #3192, #3195. The
advanced-dataset model-count case remains mock-only (tracked by #3202,
blocked on Enterprise scope entitlement).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Fix pylint spelling: Unparseable -> Malformed
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Require target and details kwargs in Model Target _error_response
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/source/differences-to-vws.rst
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,6 +118,13 @@ The generated dataset download is a small valid zip file containing request meta
118
118
Model Target API routes require a syntactically JSON Web Token-shaped bearer token, such as the token returned by the mock OAuth2 route.
119
119
The mock does not verify token signatures, claims, expiry, or revocation.
120
120
121
+
For unknown Model Target datasets, the mock returns an error whose ``target`` is ``userId:mock``.
122
+
Real Vuforia uses ``userId:<numeric-user-id>`` where the numeric portion is per-account.
123
+
124
+
Two Model Target Web API error paths remain mock-only in ``tests/mock_vws/test_model_target_web_api.py::TestMockOnlyErrors``.
125
+
Downloads of still-processing datasets are mock-only because exercising the path against real Vuforia would require creating a dataset on every test run; the mock drives the processing window deterministically.
126
+
Advanced-dataset creation with more than 20 models is mock-only because the available test account lacks the advanced-dataset scope and real Vuforia rejects the request with a 403 before validating model counts.
Match real Vuforia Model Target dataset creation validation error shape, including per-request UUID, details list, and status codes (415 for unsupported media type, 400 with ``BAD_REQUEST`` validation details).
Match real Vuforia Model Target unknown-dataset response shape (``NOT_FOUND`` code, ``Could not find a model-view database with uuid <uuid>`` message, ``userId:`` target).
Match real Vuforia Model Target Web API error responses for invalid request bodies, invalid dataset creation payloads, unknown datasets, and downloads of still-processing datasets.
0 commit comments