Allow auto registration of machines in LAPI (#3202)

Co-authored-by: marco <marco@crowdsec.net>
This commit is contained in:
blotus 2024-09-02 13:13:40 +02:00 committed by GitHub
parent 8c0c10cd7a
commit d2616766de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 548 additions and 173 deletions

View file

@ -12,7 +12,7 @@ import (
func TestLogin(t *testing.T) {
router, config := NewAPITest(t)
body := CreateTestMachine(t, router)
body := CreateTestMachine(t, router, "")
// Login with machine not validated yet
w := httptest.NewRecorder()