#1021798 crowdsec: FTBFS: FAIL: TestCreateMachineWithForwardedFor

Package:
src:crowdsec
Source:
src:crowdsec
Submitter:
Andreas Beckmann
Date:
2023-02-14 23:09:09 UTC
Severity:
normal
Tags:
#1021798#5
Date:
2022-10-14 20:26:16 UTC
From:
To:
Hi,

crowdsec in sid (and experimental) recently started to FTBFS:

=== RUN   TestCreateMachineWithForwardedFor
time="2022-10-14T20:21:20Z" level=info msg="Creating new API server"
 - [Fri, 14 Oct 2022 20:21:20 UTC] "POST /v1/watchers HTTP/1.1 201 56.300001ms "crowdsec-test/" "
    machines_test.go:81:
                Error Trace:    /build/crowdsec-1.0.9/_build/src/github.com/crowdsecurity/crowdsec/pkg/apiserver/machines_test.go:81
                Error:          Not equal:
                                expected: "1.1.1.1"
                                actual  : ""

                                Diff:
                                --- Expected
                                +++ Actual
                                @@ -1 +1 @@
                                -1.1.1.1
                                +
                Test:           TestCreateMachineWithForwardedFor
--- FAIL: TestCreateMachineWithForwardedFor (0.06s)

Full log attached.


Andreas

#1021798#10
Date:
2022-10-14 21:05:09 UTC
From:
To:
Hi,

Andreas Beckmann <anbe@debian.org> (2022-10-14):

This should be fixed in the upcoming 1.4.x versions, the test suite
doesn't fail there. There are a bunch of dependencies that need to go in
before that can be uploaded though:
https://lists.debian.org/debian-go/2022/10/msg00018.html


Cheers,

#1021798#17
Date:
2023-02-14 23:06:25 UTC
From:
To:
Cyril Brulebois <cyril@debamax.com> (2022-10-14):

Closing this bug report as addressed in the just-uploaded version (even
if a Closes statement was forgotten there).


Cheers,