Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Adjust test polling behavior 21 days after registration (EXPOSUREAPP-6882) #3016

Merged
merged 3 commits into from Apr 30, 2021

Conversation

d4rken
Copy link
Member

@d4rken d4rken commented Apr 29, 2021

  • Map HTTP 400 errors to *_REDEEMED after 21 days (server has deleted data set).

  • Stop test polling after 21 days if we are in a final state (*_REDEEMED).

  • See ticket and related tech spec changes. 2.1.x hotfix target.

  • Check test cases, right PCR/RAT results?

  • Testable via mockserver and timetravel

…ata set).

Stop test polling after 21 days if we are in a final state (*_REDEEMED).
@d4rken d4rken added bug Something isn't working maintainers Tag pull requests created by maintainers labels Apr 29, 2021
@d4rken d4rken requested review from a team and mlenkeit April 29, 2021 16:58
@d4rken d4rken added the prio PRs to review first. label Apr 29, 2021
@d4rken d4rken added this to the 2.1.2 milestone Apr 29, 2021
@BMItr BMItr self-assigned this Apr 29, 2021
import org.joda.time.Instant

fun CoronaTest.isOlderThan21Days(nowUTC: Instant): Boolean {
return Duration(registeredAt, nowUTC).standardDays > 21
Copy link
Contributor

Choose a reason for hiding this comment

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

Personal preference, but i would use a default param here

Copy link
Contributor

@BMItr BMItr left a comment

Choose a reason for hiding this comment

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

NEVER!
(sry, wrong PR 🥇 )

Copy link
Contributor

@BMItr BMItr left a comment

Choose a reason for hiding this comment

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

lgtm!

@sonarcloud
Copy link

sonarcloud bot commented Apr 29, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

91.7% 91.7% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@chiljamgossow chiljamgossow left a comment

Choose a reason for hiding this comment

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

Looks correct to me

Copy link
Member

@mlenkeit mlenkeit left a comment

Choose a reason for hiding this comment

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

LGTM, verified for both PCR and RAT.

@d4rken d4rken merged commit 93d5587 into release/2.1.x Apr 30, 2021
@d4rken d4rken deleted the fix/6882-expired-test-polling branch April 30, 2021 06:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working maintainers Tag pull requests created by maintainers prio PRs to review first.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants