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

Add http_method parameter for monitors #72

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

glebiller
Copy link

Added support for the optional http_method parameter available with Pro plan.
Unfortunately this parameter is for the moment only available for newMonitor & editMonitor but not for getMonitors, and as soon as the parameter is set we will loose the idempotency.

I have open a request to UptimeRobot asking to add this http_method parameter also in the getMonitors endpoint, as soon as it's completed this should make the test pass (and possibly also cleaning the if that I had to add)

@glebiller
Copy link
Author

I have received the parameter to pass to getMonitors to get the http_method results back from the API.
Everything is now working properly :)

@dlecan
Copy link

dlecan commented Jun 26, 2020

thank you @Kissy, I need this :)

Can this be merged?

@louy
Copy link
Owner

louy commented Aug 18, 2020

Sadly I don't have a pro account to test this but would love to merge it. It LGTM so can you just confirm the tests work with your account? @Kissy

@MyBabych
Copy link

MyBabych commented Sep 9, 2020

@Kissy @louy Hi, could you clarify will http_method parameter implemented or not? I really need it for my case.

@glebiller glebiller closed this Nov 5, 2020
@glebiller glebiller reopened this Nov 5, 2020
@glebiller
Copy link
Author

Sorry, however the parameter cannot be used until the PR has been merged :)

@dzmitrykliapkou
Copy link

@louy @Kissy Hi! Do you have any updates regarding this pull request?

@augustgerro
Copy link

Hey @louy @Kissy, we need it :)
Please merge the PR

Signed-off-by: Guillaume Le Biller <glebiller@Traveldoo.com>
@glebiller
Copy link
Author

@louy Sorry for the delay, I just rebased the code so it can be merged again.
I checked today with UptimeRobot Pro account and I successfully ran the acceptance test:

~/Workspace/terraform-provider-uptimerobot(http-method ✗) go test ./uptimerobot -v -run TestUptimeRobotDataResourceMonitor_http_method
=== RUN   TestUptimeRobotDataResourceMonitor_http_method
--- PASS: TestUptimeRobotDataResourceMonitor_http_method (2.35s)
PASS
ok      github.com/louy/terraform-provider-uptimerobot/uptimerobot      2.690s

I have been using my version for a long time now and it's working great in real scenario.

@augustgerro
Copy link

Hi @louy could you please check the PR 🙏

@vchong
Copy link

vchong commented May 20, 2023

Hi @louy can this PR be merged please?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants