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

[CI] Change fake service tests to integration tests #61

Open
ghost opened this issue Dec 15, 2022 · 0 comments · May be fixed by #69
Open

[CI] Change fake service tests to integration tests #61

ghost opened this issue Dec 15, 2022 · 0 comments · May be fixed by #69

Comments

@ghost
Copy link

ghost commented Dec 15, 2022

We are using doubles tests as our primary unit testing mechanism now (spec/hcloud/ and spec/doubles/). We are planning to keep the older fake service tests and use them as integration tests for the real API.

At the moment they are in the folder spec/integration/, but still behave in the old way using the fake service from spec/fake_service/. We want to completely delete the fakes in spec/fake_service/ and instead use the real API for testing.

A quick first test showed that this will require several adjustments to the code, because currently the tests expect to start in a clean project with 0 other resources. This is not granted in the CI project. We have to make sure that tests also work when there are already other resources in the cloud project.

@ghost ghost changed the title [CI] Convert fake service tests to integration tests [CI] Change fake service tests to integration tests Dec 15, 2022
This was referenced Jan 12, 2023
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 a pull request may close this issue.

0 participants