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

Add sleep in UptimeRobot tests to get over free tier #594

Merged
merged 2 commits into from
Jun 5, 2024

Conversation

MuneebAijaz
Copy link
Contributor

@MuneebAijaz MuneebAijaz commented May 30, 2024

  1. Free tier has 10requests/min limit, and our tests exceed that. adding sleep in tests to go into next minutes and distribute tests over mins
  2. comment out Alert Contact test since Free Tier doesnt allow to add Alert Contacts

Copy link

github-actions bot commented May 30, 2024

@MuneebAijaz Image is available for testing. docker pull stakater/ingressmonitorcontroller:SNAPSHOT-PR-594-5b81828b

@@ -387,39 +394,42 @@ func TestAddMonitorWithIncorrectValues(t *testing.T) {
}
}

func TestAddMonitorWithAlertContacts(t *testing.T) {
config := config.GetControllerConfigTest()
// disabling this test since Free Tier UptimeRobot doesnt allow to add Alert Contacts
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we should have it as a toggle instead, depending on what version of UptimeRobot we use?

Copy link
Contributor Author

@MuneebAijaz MuneebAijaz May 30, 2024

Choose a reason for hiding this comment

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

Maybe we should have it as a toggle instead, depending on what version of UptimeRobot we use?

Actually, that cannot be verified because token is checked on runtime by the UptimeRobot website, about the access/tier the token has. so we will have to comment this test out for now

@karl-johan-grahn karl-johan-grahn merged commit 0223ad9 into master Jun 5, 2024
1 check passed
@karl-johan-grahn karl-johan-grahn deleted the uptimerobot-tests branch June 5, 2024 08:13
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.

2 participants