mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
chore: improve testing coverage on ExtractProvisionerDaemonAuthenticated middleware (#15622)
This one aims to resolve #15604 Created some table tests for the main cases - also preferred to create two isolated cases for the most complicated cases in order to keep table tests simple enough. Give us full coverage on the middleware logic, for both optional and non optional cases - PSK and ProvisionerKey.
This commit is contained in:
5
enterprise/coderd/httpmw/doc.go
Normal file
5
enterprise/coderd/httpmw/doc.go
Normal file
@ -0,0 +1,5 @@
|
||||
// Package httpmw contains middleware for HTTP handlers.
|
||||
// Currently, the tested middleware is inside the AGPL package.
|
||||
// As the middleware also contains enterprise-only logic, tests had to be
|
||||
// moved here.
|
||||
package httpmw
|
Reference in New Issue
Block a user