Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Http-server scaffolding and SubmitRfq handler #111

Merged
merged 21 commits into from
Dec 18, 2023
Merged

Conversation

phoebe-lew
Copy link
Contributor

No description provided.

@phoebe-lew phoebe-lew changed the title http server Http-server scaffolding and SubmitRfq handler Dec 18, 2023
Copy link

codecov bot commented Dec 18, 2023

Codecov Report

Merging #111 (3441843) into main (6ab8c84) will decrease coverage by 8.14%.
The diff coverage is 51.53%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #111      +/-   ##
==========================================
- Coverage   85.64%   77.51%   -8.14%     
==========================================
  Files          19       26       +7     
  Lines         432      556     +124     
  Branches       41       47       +6     
==========================================
+ Hits          370      431      +61     
- Misses         40      100      +60     
- Partials       22       25       +3     
Components Coverage Δ
protocol 86.73% <ø> (ø)
httpclient 82.73% <85.71%> (-0.60%) ⬇️

Copy link
Contributor

@michaelneale michaelneale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as this is bootstrapping of server - don't need to wait for too many approvals I think

)
)

}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i struggled with figuring out a way to set up fakeOffering/ExchangeApi calls so that we can manipulate when to get back a successful or failure case to write tests. this test suite isn't complete as is because of this at the moment. i'm not sure how we'd set up mocking for this though 🤔

@@ -0,0 +1,70 @@
package tbdex.sdk.httpserver.handlers
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

super nit: maybe we could call this test class TbdexHttpServerTest? SubmitRfqTest says we're testing that class / that method, not starting up a server and sending a request w/ a client

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think SubmitRfqEndpointTest is better? Tests for the other endpoints will not go in this file, so it's not really comprehensive of all TbdexHttpServer functionality

@phoebe-lew phoebe-lew merged commit ab55ed8 into main Dec 18, 2023
1 of 5 checks passed
@phoebe-lew phoebe-lew deleted the plew.http-server branch December 18, 2023 08:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants