Skip to content

Commit

Permalink
test: Adding protocol test
Browse files Browse the repository at this point in the history
Signed-off-by: Ilya Buziuk <[email protected]>
  • Loading branch information
ibuziuk committed Oct 31, 2023
1 parent 388dcd9 commit a1073a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/build/tests/_data/meta/che-code-meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
cookiesAuthEnabled: true
discoverable: false
urlRewriteSupported: true
protocol: http
protocol: https
secure: true
targetPort: 3100
public: true
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit a1073a0

Please sign in to comment.