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

Implement tests for the VCH Creation API [specific ci=Group23-Vic-Machine-Service] #6527

Conversation

zjs
Copy link
Member

@zjs zjs commented Oct 5, 2017

Implement a suite of positive and negative tests for API-based VCH creation. These tests are not intended to be exhaustive; we can use unit tests for that.

Note that these tests only verify the resulting VCHs using inspect and do not verify their functionality using docker. That would be desirable validation, but the existing Run Regression Tests keyword (and related code) isn't currently written in a way that allows it to be used by these tests. Exposing the Run Regression Tests functionality in a way that more clearly captures the expected set of inputs would be a good first step towards being able to re-use it in this manner.

@zjs zjs force-pushed the topic/vic-machine-service-robot-create branch 2 times, most recently from bf0b75b to b277ec4 Compare October 9, 2017 23:14
@zjs zjs force-pushed the feature/vic-machine-service branch from 9f9e9b9 to 741f5ea Compare October 9, 2017 23:34
@zjs zjs self-assigned this Oct 10, 2017
@zjs zjs force-pushed the topic/vic-machine-service-robot-create branch from 5fc84e6 to cdd6d7c Compare October 20, 2017 21:48
@zjs zjs force-pushed the topic/vic-machine-service-robot-create branch 2 times, most recently from d416617 to 63191f7 Compare October 24, 2017 22:09
@zjs zjs force-pushed the feature/vic-machine-service branch from f7667f3 to 4cc1a61 Compare October 25, 2017 00:50
@zjs zjs force-pushed the topic/vic-machine-service-robot-create branch 3 times, most recently from 77c0e03 to be08f85 Compare October 25, 2017 06:03
@zjs zjs changed the title [WIP] Implement tests for the VCH Creation API [specific ci=Group23-Vic-Machine-Service] Implement tests for the VCH Creation API [specific ci=Group23-Vic-Machine-Service] Oct 25, 2017
@zjs zjs force-pushed the topic/vic-machine-service-robot-create branch from be08f85 to fad93c5 Compare October 25, 2017 06:33
Copy link
Contributor

@mhagen-vmware mhagen-vmware left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@mdharamadas1 mdharamadas1 left a comment

Choose a reason for hiding this comment

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

lgtm


*** Test Cases ***
Create minimal VCH
${before}= Count VCHs
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure if counting number of VCHs is required here but it may create issue when we have these tests running concurrently. Just FYI.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point. I'll remove the counting; I think being able to inspect it is sufficient proof that the VCH was properly created.

Copy link
Contributor

@AngieCris AngieCris left a comment

Choose a reason for hiding this comment

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

Do we have a plan of adding more tests for other create params as well? e.g. syslogs, container-name-convention, etc.

@zjs
Copy link
Member Author

zjs commented Oct 25, 2017

Do we have a plan of adding more tests for other create params as well? e.g. syslogs, container-name-convention, etc.

I added verification for the information I could find in inspect config output. To verify other settings, I'll probably need to use the inspect API. I'll see how easy that would be to do as a part of this PR.

@zjs zjs force-pushed the topic/vic-machine-service-robot-create branch from 2c23714 to 5f837d9 Compare October 26, 2017 19:52
@zjs zjs force-pushed the topic/vic-machine-service-robot-create branch from 5f837d9 to 53e8a7b Compare October 26, 2017 21:07
@zjs zjs force-pushed the topic/vic-machine-service-robot-create branch 3 times, most recently from 62d6ae1 to 1567845 Compare October 27, 2017 00:31
@zjs zjs closed this Oct 27, 2017
@zjs zjs reopened this Oct 27, 2017
@zjs zjs closed this Oct 27, 2017
@zjs zjs force-pushed the topic/vic-machine-service-robot-create branch from 1567845 to 2faf0a5 Compare October 27, 2017 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants