Skip to content

Conversation

@cmouse
Copy link
Contributor

@cmouse cmouse commented Aug 18, 2023

Short description

This change moves the HTTP verb checking into YaHTTP router.

Checklist

I have:

  • read the CONTRIBUTING.md document
  • compiled this code
  • tested this code
  • included documentation (including possible behaviour changes)
  • documented the code
  • added or modified regression test(s)
  • added or modified unit test(s)

@cmouse
Copy link
Contributor Author

cmouse commented Aug 18, 2023

Upstream PR cmouse/yahttp#30

@Habbie Habbie added this to the auth-4.9.0 milestone Aug 18, 2023
@Habbie Habbie added the auth label Aug 18, 2023
@cmouse cmouse force-pushed the auth-api-method-check branch 5 times, most recently from a5dfd22 to 36d6e85 Compare August 23, 2023 17:54
@Habbie Habbie self-requested a review August 23, 2023 18:22
@cmouse cmouse force-pushed the auth-api-method-check branch from 36d6e85 to 78a0709 Compare August 23, 2023 18:42
@cmouse cmouse force-pushed the auth-api-method-check branch 2 times, most recently from 5ee9cb6 to fa8c436 Compare September 8, 2023 10:17
@cmouse cmouse force-pushed the auth-api-method-check branch 2 times, most recently from db635c8 to fc2a59e Compare October 22, 2023 15:54
@coveralls
Copy link

coveralls commented Oct 22, 2023

Pull Request Test Coverage Report for Build 7220508700

  • 514 of 703 (73.12%) changed or added relevant lines in 6 files are covered.
  • 47 unchanged lines in 11 files lost coverage.
  • Overall coverage increased (+0.01%) to 57.697%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pdns/webserver.cc 37 39 94.87%
ext/yahttp/yahttp/router.cpp 65 71 91.55%
pdns/ws-auth.cc 400 459 87.15%
pdns/recursordist/ws-recursor.cc 0 122 0.0%
Files with Coverage Reduction New Missed Lines %
ext/yahttp/yahttp/router.cpp 1 59.29%
pdns/dnscrypt.cc 1 68.2%
pdns/misc.cc 1 62.34%
ext/yahttp/yahttp/router.hpp 2 35.71%
pdns/axfr-retriever.cc 3 65.53%
pdns/recursordist/test-syncres_cc2.cc 3 88.99%
pdns/recursordist/ws-recursor.cc 3 0.0%
pdns/iputils.cc 4 45.31%
pdns/dnsdist-tcp.cc 8 76.13%
pdns/ws-auth.cc 9 81.13%
Totals Coverage Status
Change from base Build 7208535863: 0.01%
Covered Lines: 107598
Relevant Lines: 155147

💛 - Coveralls

@cmouse cmouse force-pushed the auth-api-method-check branch 2 times, most recently from c4778aa to 8bca277 Compare October 27, 2023 07:58
@Habbie
Copy link
Member

Habbie commented Nov 20, 2023

This has >50 clang-tidy warnings

@cmouse cmouse force-pushed the auth-api-method-check branch 4 times, most recently from c7290cd to b08c2ff Compare November 28, 2023 20:38
@Habbie Habbie added the rec label Dec 5, 2023
@Habbie Habbie requested a review from omoerbeek December 5, 2023 15:05
Copy link
Member

@Habbie Habbie left a comment

Choose a reason for hiding this comment

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

Looks good to me! Will need a review from Otto as well. There's a conflict in ws-auth.cc currently. If Otto agrees, we can finally merge this (after that conflict)

@cmouse cmouse force-pushed the auth-api-method-check branch from b08c2ff to 96660ad Compare December 7, 2023 13:24
@cmouse
Copy link
Contributor Author

cmouse commented Dec 7, 2023

Conflict resolved.

@cmouse cmouse force-pushed the auth-api-method-check branch 2 times, most recently from d2848c1 to d916956 Compare December 7, 2023 15:24
@cmouse cmouse force-pushed the auth-api-method-check branch 3 times, most recently from 0796055 to ede7481 Compare December 15, 2023 08:32
@cmouse cmouse force-pushed the auth-api-method-check branch from ede7481 to bfaeecb Compare December 15, 2023 09:51
@cmouse cmouse requested a review from omoerbeek December 15, 2023 09:56
@Habbie Habbie merged commit a9c444b into PowerDNS:master Dec 15, 2023
@cmouse cmouse deleted the auth-api-method-check branch December 15, 2023 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants