Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OperatorList check if OLM is installed #1558

Merged
merged 3 commits into from
Mar 5, 2020
Merged

OperatorList check if OLM is installed #1558

merged 3 commits into from
Mar 5, 2020

Conversation

andresmgot
Copy link
Contributor

@andresmgot andresmgot commented Mar 4, 2020

Description of the change

Starting the OperatorList component. This PR adds the check to show a warning error if OLM is not installed. To check if it's installed we are checking if the CRD clusterserviceversions.operators.coreos.com exists.

Screenshot from 2020-03-04 16-58-08

Applicable issues

Copy link
Contributor

@absoludity absoludity left a comment

Choose a reason for hiding this comment

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

Great!


it("render the operator list if the OLM is installed", () => {
const wrapper = shallow(<OperatorList {...defaultProps} isOLMInstalled={true} />);
expect(wrapper.find(OLMNotFound)).not.toExist();
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing the expectation for the actual list component? EDIT: right, because it doesn't exist yet (other than the <p>OLM Installed</p>.

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, there is nothing to check yet

@andresmgot andresmgot merged commit d1d9648 into master Mar 5, 2020
@andresmgot andresmgot deleted the checkOLM branch March 10, 2020 11:58
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.

2 participants