From a1073a02d5ada6e8310bd7d97ea4c1a2debb2c0f Mon Sep 17 00:00:00 2001 From: Ilya Buziuk Date: Tue, 10 Oct 2023 19:45:15 +0200 Subject: [PATCH] test: Adding protocol test Signed-off-by: Ilya Buziuk --- tools/build/tests/_data/meta/che-code-meta.yaml | 8 ++++---- .../build/tests/devfile/meta-yaml-to-devfile-yaml.spec.ts | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/build/tests/_data/meta/che-code-meta.yaml b/tools/build/tests/_data/meta/che-code-meta.yaml index 4bace2f539..72c596d040 100644 --- a/tools/build/tests/_data/meta/che-code-meta.yaml +++ b/tools/build/tests/_data/meta/che-code-meta.yaml @@ -19,7 +19,7 @@ spec: cookiesAuthEnabled: true discoverable: false urlRewriteSupported: true - protocol: http + protocol: https secure: true targetPort: 3100 public: true @@ -28,21 +28,21 @@ spec: attributes: discoverable: false urlRewriteSupported: false - protocol: http + protocol: https public: true - name: code-redirect-2 targetPort: 13132 attributes: discoverable: false urlRewriteSupported: false - protocol: http + protocol: https public: true - name: code-redirect-3 targetPort: 13133 attributes: discoverable: false urlRewriteSupported: false - protocol: http + protocol: https public: true containers: - image: quay.io/devfile/universal-developer-image:latest diff --git a/tools/build/tests/devfile/meta-yaml-to-devfile-yaml.spec.ts b/tools/build/tests/devfile/meta-yaml-to-devfile-yaml.spec.ts index ea838a248e..5c654c7eec 100644 --- a/tools/build/tests/devfile/meta-yaml-to-devfile-yaml.spec.ts +++ b/tools/build/tests/devfile/meta-yaml-to-devfile-yaml.spec.ts @@ -50,6 +50,7 @@ describe('Test MetaYamlToDevfileYaml', () => { const codeIdeFirstEndpoint = codeIdeComponentContainer.endpoints[0]; expect(codeIdeFirstEndpoint.name).toBe('che-code'); expect(codeIdeFirstEndpoint.exposure).toBe('public'); + expect(codeIdeFirstEndpoint.protocol).toBe('https'); const codeIdeFirstEndpointAttributes = codeIdeFirstEndpoint.attributes; expect(codeIdeFirstEndpointAttributes.type).toBe('main');