mmetc

Results 109 comments of mmetc

No, I don't want to require root to run tests. Something like this would work, on the other hand. I can set it with -X during build. ``` --- a/process/process_posix.go...

I'm passing by to leave this here, the answer contains a comparison of the two packages. https://stackoverflow.com/questions/38315185/how-to-use-bats-mock-to-assert-against-calls-to-a-mocked-script-in-bash-testin

Thank you for keeping this alive. I have been using bats a few years ago so I knew where to go with the functional tests for a new project. A...

Multiple glob works for me here, version 1.2.3 under freebsd: https://github.com/crowdsecurity/opnsense-plugin-crowdsec/blob/main/src/etc/crowdsec/acquis.d/opnsense.yaml ``` filenames: - /var/log/*/*.log labels: type: syslog ``` ``` time="01-02-2022 13:00:04" level=info msg="Adding file /var/log/configd/configd_20220127.log to datasources" type=file time="01-02-2022...

Ok, I think I see it. Do you have messages like "Could not create watch on directory" in /var/log/crowdsec.log ?

Thanks. I have no fix yet but it should land in the next version.

Thank you Laurence, just my 2c re: -stdout. I'm a strong believer of having as many configuration options as possible available through flags, as well as environment variables. However, in...

I'm not sure what you mean, I think for bin/crowdsec we should keep them to the useful minimum for now. Overriding log_media has its uses, but the other log options...

Is it possible to avoid calling log.Fatal and just return errors, to check coverage? thanks

I confirm that the behavior has not changed since the issue was reported. The only difference is that now, to reinstall the linux collection, I have to use "--force".