feat(topograph): Integration Test Support#205
Conversation
Greptile OverviewGreptile Summary
Confidence Score: 2/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant C as Client
participant HS as HttpServer (/v1/generate)
participant TP as Test provider (pkg/providers/test)
participant Q as Async queue
participant PR as processRequest
participant RES as Result store (/v1/topology)
C->>HS: POST /v1/generate (topology.Request JSON)
HS->>HS: readRequest() + validate()
alt provider == "test" and generateResponseCode != 202
HS->>TP: HandleTestProviderRequest(tr)
TP-->>HS: http.Error(..., generateResponseCode)
HS-->>C: error status + message
else provider == "test" and generateResponseCode == 202
HS->>TP: HandleTestProviderRequest(tr)
TP-->>HS: false (continue normal flow)
HS->>Q: Submit(tr)
Q-->>HS: uid
HS-->>C: 202 Accepted + uid
else provider != "test"
HS->>Q: Submit(tr)
Q-->>HS: uid
HS-->>C: 202 Accepted + uid
end
C->>RES: GET /v1/topology?uid=...
RES->>Q: Get(uid)
Q-->>RES: status + payload/message
alt status == 200
RES-->>C: 200 + topology config
else status == 202
RES-->>C: 202 + in-progress message
else error
RES-->>C: error code + message
end
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #205 +/- ##
==========================================
+ Coverage 65.60% 65.88% +0.28%
==========================================
Files 81 82 +1
Lines 4448 4482 +34
==========================================
+ Hits 2918 2953 +35
+ Misses 1418 1416 -2
- Partials 112 113 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
b914f49 to
87e7ba4
Compare
87e7ba4 to
b6409a6
Compare
c3ff18f to
959fe44
Compare
Additional Comments (2)
These test payload strings still include the deprecated |
Signed-off-by: Ravi Shankar <ravish@nvidia.com>
Signed-off-by: Ravi Shankar <ravish@nvidia.com>
Signed-off-by: Ravi Shankar <ravish@nvidia.com>
Signed-off-by: Ravi Shankar <ravish@nvidia.com>
Signed-off-by: Ravi Shankar <ravish@nvidia.com>
Signed-off-by: Ravi Shankar <ravish@nvidia.com>
Signed-off-by: Ravi Shankar <ravish@nvidia.com>
02888c4 to
8e79a75
Compare
No description provided.