mirror of
https://github.com/moby/moby.git
synced 2025-07-30 18:23:29 +03:00
daemon/logger/fluentd: add coverage for ValidateLogOpt(), parseAddress()
This exposed a bug where host is ignored on some valid cases (to be fixed). Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@ -1671,14 +1671,6 @@ func (s *DockerDaemonSuite) TestDaemonRestartLocalVolumes(c *testing.T) {
|
||||
assert.NilError(c, err, out)
|
||||
}
|
||||
|
||||
// FIXME(vdemeester) should be a unit test
|
||||
func (s *DockerDaemonSuite) TestDaemonCorruptedFluentdAddress(c *testing.T) {
|
||||
d := daemon.New(c, dockerBinary, dockerdBinary, testdaemon.WithEnvironment(testEnv.Execution))
|
||||
assert.Assert(c, d.StartWithError("--log-driver=fluentd", "--log-opt", "fluentd-address=corrupted:c") != nil)
|
||||
expected := "invalid fluentd-address corrupted:c: "
|
||||
icmd.RunCommand("grep", expected, d.LogFileName()).Assert(c, icmd.Success)
|
||||
}
|
||||
|
||||
// FIXME(vdemeester) Use a new daemon instance instead of the Suite one
|
||||
func (s *DockerDaemonSuite) TestDaemonStartWithoutHost(c *testing.T) {
|
||||
s.d.UseDefaultHost = true
|
||||
|
Reference in New Issue
Block a user