-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Adding ability to add and update contact groups using the terraform statuscake provider #7115
Adding ability to add and update contact groups using the terraform statuscake provider #7115
Conversation
Hi @ldjohnson Thanks for the PR here. I am going to get in contact with my old team about this dependency so we can get the upstream updated rather than manually changing the vendor folder Stay tuned here P. |
Paul, My pleasure. If there is anything else you need or if you have any On Fri, Jun 10, 2016 at 1:42 PM, Paul Stack notifications@github.com
Regards, Lee Johnson |
All, On a side note, I did sumbit a pull request to the DreamItGetIt/statuscake Please let me know if you have any questions or concerns. On Fri, Jun 10, 2016 at 1:58 PM, Lee Johnson leejohnson@ijoinsolutions.com
Regards, Lee Johnson |
@ldjohnson I just saw that - this is why i will nudge them :) |
Hello all, I just wanted to checking on the status of this pull request. I there is anything still needed, please let me know. Thanks! |
Hello All, I just wanted to check up on the status of this PR since I didn't hear anything back the last time. It looks like my PR on the underlying statuscake go library was accepted and merged in, so I wanted to check in: If anything is still needed or missing for this PR, please let me know. Thanks! |
Hi @ldjohnson I just re-vendored the dependencies rather than manually changing them. Will merge and test in a sec P. |
Hi @ldjohnson So I made a follow up commit to this (contact_id was added twice in the schema + the re-vendoring thing) The tests look as follows:
What do I need to do here? P. |
Hmmm....not sure what the issue could be. I'll look into this and let you know what I find. Thanks for letting me know about this. |
After looking into this, I found the cause of the issue that you ran into. When I first created the PR, I made the assumption that the contact ID had to be valid (that is, a contact with that Id had to already exist). To that end I required that the contact Id be set as an environment variable. I checked this prior to running the two new tests that I added. This check was failing because the env variables had not been set. After looking at what was committed to master and see what was added in the follow up commit, I removed the two new tests (leaving only the existing basic and update tests) and removed the check for the env variables since they would not be needed anymore. I also removed the import for 'os' since it was no longer being used (the tests I removed were the only things using it). Lastly, it appears that Statuscake changed the URL for their api. The current URL in the DreamItGetIt library results in a 301 removed permanently error and causes the tests to fail. I'll be pushing up a PR for that shortly to that project. As soon as I have, I'll post a link to that PR here. This PR should be ready for testing and review and should be up-to-date with master as well. If you have any questions or concerns, please let me know. Thanks! --Lee |
I have submitted a PR to the DreamItGetIT/statuscake project to update statuscake's api url. That PR can be found here: This PR will need to be merged in and added to the DreamItGetIT/statuscake library in order for the acceptance tests to pass. Without this update, the tests will fail as follows: make testacc TEST=./builtin/providers/statuscake Please let me know if you have any questions or concerns. |
Hello All, I wanted to check in on the status of this PR since I hadn't heard back in a while. Let me know if you have any questions or if anything is still needed for this. Thanks! --Lee |
Hi @ldjohnson There is an outstanding comment on your PR to the DreamItGetIt repo Paul |
@stack72 Thanks for the update! I have made the requested change to that PR. All that remains is for it to be reviewed and merged. Please let me know if you have any questions or concerns or if you need anything. |
Hi @ldjohnson Thanks for the work here - I have manually merged this to get rid of the conflicts :)
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Currently, it is not possible to add/update contact groups using the Statuscake provider. This update adds the ability to add/update contact groups on Statuscake tests. This update adds a new element to the statuscake resource called 'contact_id'. It should be set to the id of the contact group you want to add.
I also updated the DreamItGetIt/statuscake/tests.go file a querystring was missing from the ContactID item in the Test struct. I have already submitted a pull request to that team, but I wanted to let you know anyway as I am unsure of how to update depedencies like that being that is my first contribution to an open source project.
Lastly, I added a new acceptance test precheck for two new environment variables (CONTACT_GROUP and ALT_CONTACT_GROUP). They are only needed for contact group acceptance tests I added and should be set to the id of the contact group you want to add and the contact group you want update respectively. I did this because each ID is unique and would need to be configured before the new tests would run successfully.
It also for this reason that created to new acceptance tests instead of modifying existing ones. This way, the new variables won't impact acceptance tests for users who are not using them.
I updated the documentation to reflect the new element as well. Anyway, please take a look and let me know if you have any questions or concerns.