tests: Adds [LinuxOnly] tag to conformance test

The test "should write entries to /etc/hosts" should have the [LinuxOnly] tag as
it cannot pass on Windows; individual files cannot be mounted in Windows Containers.

This test was missed in the original PR (https://github.com/kubernetes/kubernetes/pull/73204)
This commit is contained in:
Claudiu Belu 2019-02-05 17:46:59 -08:00
parent 836db5c90e
commit 434090349d

View File

@ -140,8 +140,9 @@ var _ = framework.KubeDescribe("Kubelet", func() {
Release : v1.13
Testname: Kubelet, hostAliases
Description: Create a Pod with hostAliases and a container with command to output /etc/hosts entries. Pod's logs MUST have matching entries of specified hostAliases to the output of /etc/hosts entries.
Kubernetes mounts the /etc/hosts file into its containers, however, mounting individual files is not supported on Windows Containers. For this reason, this test is marked LinuxOnly.
*/
framework.ConformanceIt("should write entries to /etc/hosts [NodeConformance]", func() {
framework.ConformanceIt("should write entries to /etc/hosts [LinuxOnly] [NodeConformance]", func() {
podClient.CreateSync(&v1.Pod{
ObjectMeta: metav1.ObjectMeta{
Name: podName,