这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Bug: TestNewManager failed on some build Linux machines #2460

@svagner

Description

@svagner

Expected behavior

The unit tests should be able to finish successfully on any machines if code works correctly.
We should not expect that hostname for test Linux machine was configured with some particular rules because it can be not true:

Current behavior

=== RUN   TestNewManager
    TestNewManager: manager_test.go:13: Expected hostname to be 'host01.mydomain.com' but it was 'host01'
--- FAIL: TestNewManager (0.00s)

Steps to reproduce

  1. set the hostname for Linux node as host01.mydomain.com
  2. run ./build/validate.sh script

Context

# cat /etc/hostname
host01.mydomain.com
# cat /proc/sys/kernel/hostname
host01.mydomain.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions