Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Add new host states #356

Merged
merged 2 commits into from
Apr 16, 2019
Merged

Add new host states #356

merged 2 commits into from
Apr 16, 2019

Conversation

flofuchs
Copy link
Contributor

Adding 3 new provisioning states:

  • match profile (progress state)
  • provisioning error (error state)
  • power management error (error state)

@coveralls
Copy link

coveralls commented Apr 15, 2019

Pull Request Test Coverage Report for Build 1287

  • 4 of 4 (100.0%) changed or added relevant lines in 1 file are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.09%) to 87.437%

Files with Coverage Reduction New Missed Lines %
src/utils/status/host/hostStatus.js 1 81.48%
Totals Coverage Status
Change from base Build 1512: 0.09%
Covered Lines: 3439
Relevant Lines: 3770

💛 - Coveralls

@flofuchs flofuchs force-pushed the new-host-states branch 2 times, most recently from 2c806de to ef164bc Compare April 16, 2019 10:41
it('renders a generic success message', () => {
const component = shallow(testBaremetalHostStatusSuccess());
expect(component).toMatchSnapshot();
it('renders the correct subcomponent', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

it should be inside the forEach for easier debugging + please also include the fixture index in it message + optionally the status

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, thanks. I made the message more descriptive by adding the status but omitted the index because that would make the message ugly and wouldn't add to its meaning.

Copy link
Contributor

@atiratree atiratree Apr 16, 2019

Choose a reason for hiding this comment

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

indexes add uniqueness to the test case. This will break once you check for the same statuses in multiple fixtures (different conditions - same status)

Adding 3 new provisioning states:
- match profile
- provisioning error
- power management error
@atiratree atiratree merged commit fc42e9e into kubevirt:master Apr 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants