From dd357b4145d3915630e632fc8483c6b9f4476c75 Mon Sep 17 00:00:00 2001 From: tzununbekov Date: Wed, 8 May 2019 18:23:20 +0600 Subject: [PATCH] Validate that terminal is not allowed in container --- test/conformance/container_test.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/conformance/container_test.go b/test/conformance/container_test.go index 6c493f09436e..067eed5bae96 100644 --- a/test/conformance/container_test.go +++ b/test/conformance/container_test.go @@ -159,6 +159,21 @@ func TestShouldNotContainerConstraints(t *testing.T) { HostPort: 80, }} }, + }, { + name: "TestStdin", + options: func(s *v1alpha1.Service) { + s.Spec.ConfigurationSpec.GetTemplate().Spec.GetContainer().Stdin = true + }, + }, { + name: "TestStdinOnce", + options: func(s *v1alpha1.Service) { + s.Spec.ConfigurationSpec.GetTemplate().Spec.GetContainer().StdinOnce = true + }, + }, { + name: "TestTTY", + options: func(s *v1alpha1.Service) { + s.Spec.ConfigurationSpec.GetTemplate().Spec.GetContainer().TTY = true + }, }} for _, tc := range testCases {