Skip to content

RD-1897 - Add support for MANAGER_PROTOCOL environmental variable in Cypress configuration#53

Merged
qooban merged 3 commits intomasterfrom
RD-1897
Mar 30, 2021
Merged

RD-1897 - Add support for MANAGER_PROTOCOL environmental variable in Cypress configuration#53
qooban merged 3 commits intomasterfrom
RD-1897

Conversation

@qooban
Copy link
Contributor

@qooban qooban commented Mar 30, 2021

Added new environmental variable for defining protocol used (http or https). For backward compatibility defaulting to http.

Once merged, I'll release new minor version of cloudify-ui-common and then update cloudify-stage and cloudify-blueprint-composer with the new version.

@qooban qooban requested review from Gelio, gregcfy and kubama March 30, 2021 08:31
@qooban
Copy link
Contributor Author

qooban commented Mar 30, 2021

The solution used here is being tested using temporary branch from cloudify-stage: cloudify-cosmo/cloudify-stage#1279

Results are promising: https://jenkins.cloudify.co/view/UI%20Health%20View/job/Stage-UI-System-Test/352/console

config.baseUrl = `http://${process.env.MANAGER_IP}`;
const { MANAGER_IP, MANAGER_PROTOCOL } = process.env;
if (MANAGER_IP) {
config.baseUrl = `${MANAGER_PROTOCOL ?? 'http'}://${MANAGER_IP}`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is plain HTTP still going to be supported?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SSL is opt-out, so I think yes 🙂

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it will still be possible to configure manager without SSL support.
From Lukasz M.: manager: security: ssl_enabled: false in config.yaml

kubama
kubama previously approved these changes Mar 30, 2021
Gelio
Gelio previously approved these changes Mar 30, 2021
Copy link
Contributor

@Gelio Gelio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🙂

Co-authored-by: Grzegorz Rozdzialik <grzegorz.rozdzialik@cloudify.co>
@qooban qooban dismissed stale reviews from Gelio and kubama via 2effb5c March 30, 2021 08:56
@qooban qooban requested review from Gelio and kubama March 30, 2021 08:59
@qooban qooban merged commit 0c5eed7 into master Mar 30, 2021
@qooban qooban deleted the RD-1897 branch March 30, 2021 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants