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

Fix world tests #76

Merged
merged 1 commit into from
Jun 15, 2020
Merged

Fix world tests #76

merged 1 commit into from
Jun 15, 2020

Conversation

chapulina
Copy link
Contributor

I think some worlds were removed from the server and this caused the tests to fail.

I also reduced a bit the reliance on the staging server.

Signed-off-by: Louise Poubel <louise@openrobotics.org>
@chapulina chapulina requested a review from nkoenig June 11, 2020 01:37
@chapulina chapulina self-assigned this Jun 11, 2020
@github-actions github-actions bot added the 📜 blueprint Ignition Blueprint label Jun 11, 2020
@codecov
Copy link

codecov bot commented Jun 11, 2020

Codecov Report

Merging #76 into ign-fuel-tools3 will increase coverage by 0.04%.
The diff coverage is n/a.

Impacted file tree graph

@@                 Coverage Diff                 @@
##           ign-fuel-tools3      #76      +/-   ##
===================================================
+ Coverage            85.22%   85.27%   +0.04%     
===================================================
  Files                   16       16              
  Lines                 2017     2017              
===================================================
+ Hits                  1719     1720       +1     
+ Misses                 298      297       -1     
Impacted Files Coverage Δ
src/ign.cc 83.94% <0.00%> (+0.45%) ⬆️

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 0f9aa4c...7402322. Read the comment docs.

@nuclearsandwich
Copy link

Rather than relying on staging or production endpoints, is the fuel API mock-able with static fixtures and a local http server like python3's http.server?


EXPECT_NE(stdOutBuffer.str().find(
"https://staging-fuel.ignitionrobotics.org"), std::string::npos)
<< stdOutBuffer.str();
EXPECT_NE(stdOutBuffer.str().find("1 owners"), std::string::npos)
<< stdOutBuffer.str();

Choose a reason for hiding this comment

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

This expectation doesn't appear to be replaced with another one. Was it spurious?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed that on purpose, because it's hard to assume an exact number of users for a given server. Right now for example there are none.

@chapulina
Copy link
Contributor Author

Rather than relying on staging or production endpoints, is the fuel API mock-able with static fixtures and a local http server like python3's http.server?

That should be possible. I don't think issue #17 is suggesting exactly that but it's related.

@chapulina chapulina requested a review from azeey June 15, 2020 18:40
@chapulina chapulina merged commit e883e60 into ign-fuel-tools3 Jun 15, 2020
@chapulina chapulina deleted the chapulina/world_tests branch June 15, 2020 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📜 blueprint Ignition Blueprint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants