Skip to content

Improve cli client tests #691

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

Merged
merged 9 commits into from
Mar 21, 2019
Merged

Improve cli client tests #691

merged 9 commits into from
Mar 21, 2019

Conversation

ricab
Copy link
Collaborator

@ricab ricab commented Mar 21, 2019

This prepares the ground for the testing the pet-env feature in the CLI client. It improves CLI client tests, by checking

  • the expected RPC calls are triggered
  • no unexpected RPC calls are triggered

A future step is to check that the request parameters correspond to expectations.

ricab added 9 commits March 20, 2019 15:31
To allow testing that client calls trigger expected RPC requests. Using a strict mock, to fail on unexpected calls. This currently makes client tests fail.
Use "fails" to follow convention used by the other tests and easily
identify test type.
Covers list, start, stop, restart, and suspend calls.
@Saviq
Copy link
Collaborator

Saviq commented Mar 21, 2019

Seems legit.

bors r+

bors bot added a commit that referenced this pull request Mar 21, 2019
691: Improve cli client tests r=Saviq a=ricab

This prepares the ground for the testing the pet-env feature in the CLI client. It improves CLI client tests, by checking 

- the expected RPC calls are triggered
- no unexpected RPC calls are triggered

A future step is to check that the request parameters correspond to expectations.

Co-authored-by: Ricardo Abreu <ricab@ricabhome.org>
@bors
Copy link
Contributor

bors bot commented Mar 21, 2019

Build failed

@bors bors bot closed this Mar 21, 2019
@Saviq
Copy link
Collaborator

Saviq commented Mar 21, 2019

Sorry, didn't realize this was going into pet-env-extract-create.

@ricab ricab changed the base branch from pet-env-extract-create to master March 21, 2019 14:33
@ricab
Copy link
Collaborator Author

ricab commented Mar 21, 2019

No worries, just changed base to master since the other one was merged anyway.

@ricab ricab reopened this Mar 21, 2019
@codecov
Copy link

codecov bot commented Mar 21, 2019

Codecov Report

Merging #691 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #691   +/-   ##
=======================================
  Coverage   66.59%   66.59%           
=======================================
  Files         168      168           
  Lines        5943     5943           
=======================================
  Hits         3958     3958           
  Misses       1985     1985

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 92e7789...63065f0. Read the comment docs.

@Saviq
Copy link
Collaborator

Saviq commented Mar 21, 2019

bors r+

This conflicts on Mac, will take car of that in a moment.

bors bot added a commit that referenced this pull request Mar 21, 2019
691: Improve cli client tests r=Saviq a=ricab

This prepares the ground for the testing the pet-env feature in the CLI client. It improves CLI client tests, by checking 

- the expected RPC calls are triggered
- no unexpected RPC calls are triggered

A future step is to check that the request parameters correspond to expectations.

Co-authored-by: Ricardo Abreu <ricab@ricabhome.org>
@ricab
Copy link
Collaborator Author

ricab commented Mar 21, 2019

Thanks @Saviq. Is there a way to see the conflict in travis? Or have to try locally?

@Saviq
Copy link
Collaborator

Saviq commented Mar 21, 2019

@ricab not at the moment, it's a trivial one though.

@bors
Copy link
Contributor

bors bot commented Mar 21, 2019

Build failed

@Saviq Saviq merged commit 63065f0 into master Mar 21, 2019
@bors bors bot deleted the improve-cli-client-tests branch March 21, 2019 18:01
ricab added a commit that referenced this pull request May 8, 2025
Fix symlink resolution when mounting
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