Skip to content

fix(testing): Validate all tables and relations#85

Merged
kodiakhq[bot] merged 5 commits intocloudquery:mainfrom
erezrokah:fix/validate_relations
Sep 13, 2022
Merged

fix(testing): Validate all tables and relations#85
kodiakhq[bot] merged 5 commits intocloudquery:mainfrom
erezrokah:fix/validate_relations

Conversation

@erezrokah
Copy link
Copy Markdown
Member

@erezrokah erezrokah commented Sep 11, 2022

Summary

I was expecting my Azure mock tests that have relations to fail as I don't handle mocking the related APIs.
I was surprised to see them pass 🙃

The reason is that we need to validate that we got the related resources too.


Use the following steps to ensure your PR is ready to be reviewed

  • Read the contribution guidelines 🧑‍🎓
  • Run go fmt to format your code 🖊
  • Lint your changes via golangci-lint run 🚨 (install golangci-lint here)
  • Update or add tests 🧪
  • Ensure the status checks below are successful ✅

@github-actions github-actions bot added fix and removed fix labels Sep 11, 2022
@erezrokah erezrokah force-pushed the fix/validate_relations branch 3 times, most recently from f75eef8 to 9c5ccd9 Compare September 11, 2022 14:52
@erezrokah erezrokah force-pushed the fix/validate_relations branch from 9c5ccd9 to 628c5a9 Compare September 11, 2022 14:54
Copy link
Copy Markdown
Contributor

@yevgenypats yevgenypats left a comment

Choose a reason for hiding this comment

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

Good catch! Can we change it to instead of exact number of resources to just at least one resource in every table. as otherwise you can have more resources in one but no resources in others.

@erezrokah erezrokah force-pushed the fix/validate_relations branch from bd76271 to 215ed4a Compare September 11, 2022 16:52
@erezrokah erezrokah changed the title fix(testing): Validate exact number of expected resources fix(testing): Validate all tables and relations Sep 11, 2022
@github-actions github-actions bot added fix and removed fix labels Sep 11, 2022
@erezrokah erezrokah force-pushed the fix/validate_relations branch from 215ed4a to 253c134 Compare September 11, 2022 16:54
@erezrokah
Copy link
Copy Markdown
Member Author

Good catch! Can we change it to instead of exact number of resources to just at least one resource in every table. as otherwise you can have more resources in one but no resources in others.

Good point, done in 253c134

@kodiakhq kodiakhq bot merged commit d979863 into cloudquery:main Sep 13, 2022
kodiakhq bot pushed a commit that referenced this pull request Sep 13, 2022
🤖 I have created a release *beep* *boop*
---


## [0.5.1](v0.5.0...v0.5.1) (2022-09-13)


### Bug Fixes

* **testing:** Validate all tables and relations ([#85](#85)) ([d979863](d979863))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
kodiakhq bot pushed a commit to cloudquery/cloudquery that referenced this pull request Sep 15, 2022

#### Summary

The tests on GCP started failing and I believe cloudquery/plugin-sdk#85 is the reason.
This should fix it

---
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.

3 participants