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

Support blackout tests #651

Merged
merged 46 commits into from May 1, 2023
Merged

Support blackout tests #651

merged 46 commits into from May 1, 2023

Conversation

Flix6x
Copy link
Contributor

@Flix6x Flix6x commented Apr 28, 2023

To try out:

  • Navigate to http://localhost:5000/api/v2_0/getService and get a 410 (Gone)
  • Set FLEXMEASURES_API_1_AND_2_SUNSET_ACTIVE = False in your flexmeasures.cfg
  • Refresh http://localhost:5000/api/v2_0/getService and get a regular service listing

Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
… a data source, from v1.1 to v3; also test posting is not allowed for inactive admins

Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
…rather than fresh_db fixture

Signed-off-by: F.N. Claessen <felix@seita.nl>
…of them

Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
…pectively

Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
@Flix6x Flix6x requested a review from nhoening April 28, 2023 11:31
@Flix6x Flix6x self-assigned this Apr 28, 2023
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
@coveralls
Copy link
Collaborator

coveralls commented Apr 28, 2023

Pull Request Test Coverage Report for Build 4831471117

  • 27 of 41 (65.85%) changed or added relevant lines in 8 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.007%) to 55.612%

Changes Missing Coverage Covered Lines Changed/Added Lines %
flexmeasures/api/common/utils/deprecation_utils.py 12 26 46.15%
Files with Coverage Reduction New Missed Lines %
flexmeasures/api/common/utils/deprecation_utils.py 2 34.15%
Totals Coverage Status
Change from base Build 4812786221: -0.007%
Covered Lines: 6323
Relevant Lines: 10241

💛 - Coveralls

Signed-off-by: F.N. Claessen <felix@seita.nl>
Copy link
Contributor

@nhoening nhoening left a comment

Choose a reason for hiding this comment

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

When I did not have the setting yet, the API (2.0) was still sunset, so that contradicts your test instructions for this PR, bus still seems correct to me.
I found one potential problem.

flexmeasures/api/common/utils/deprecation_utils.py Outdated Show resolved Hide resolved
…ettings reusable for future sunsets

Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
@Flix6x
Copy link
Contributor Author

Flix6x commented Apr 28, 2023

When I did not have the setting yet, the API (2.0) was still sunset, so that contradicts your test instructions for this PR, bus still seems correct to me. I found one potential problem.

I had failed to update my introductions after changing the default to having the sunset activated. I have revised my instructions now.

@Flix6x Flix6x requested a review from nhoening April 28, 2023 14:13
@Flix6x Flix6x mentioned this pull request Apr 28, 2023
8 tasks
documentation/api/introduction.rst Outdated Show resolved Hide resolved
flexmeasures/api/v1_3/__init__.py Outdated Show resolved Hide resolved
Signed-off-by: F.N. Claessen <felix@seita.nl>
…nces the deprecation and sunset

Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Flix6x added 2 commits May 1, 2023 13:04
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
@Flix6x Flix6x requested a review from nhoening May 1, 2023 11:56
Base automatically changed from sunset-api-versions-1-and-2 to main May 1, 2023 13:34
@Flix6x Flix6x added this to the 0.13.0 milestone May 1, 2023
@Flix6x Flix6x merged commit 0791fa3 into main May 1, 2023
6 of 7 checks passed
@Flix6x Flix6x deleted the support-blackout-tests branch May 1, 2023 13:42
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.

None yet

3 participants