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

provider/logentries: Implementing logentries provider #7067

Merged
merged 3 commits into from
Jul 12, 2016

Conversation

dabdine-r7
Copy link

@dabdine-r7 dabdine-r7 commented Jun 8, 2016

Logentries provides log management, alerting and analytics for hosts, applications and more. Accounts are free to create and are free for the terraform acceptance tests.

We use logentries internally to redirect our application logs into a centralized dashboard. This provider allows management of the tokens and log IDs (which are secrets) and allows terraform users to plug log tokens and ids into their applications and infrastructure through mechanisms such as cloud-config, etc.

@dabdine-r7 dabdine-r7 force-pushed the provider-logentries branch 2 times, most recently from 67d5630 to 1e8aa59 Compare June 8, 2016 08:02
@dabdine-r7
Copy link
Author

need to vendor a lib, but so far govendor just hangs on my system. so, figuring out why.

@dabdine-r7 dabdine-r7 changed the title [wip] logentries operational logging provider [wip] new provider: logentries (operational logging) Jun 8, 2016
@dabdine-r7 dabdine-r7 force-pushed the provider-logentries branch 2 times, most recently from 6f89f4d to 942723c Compare June 9, 2016 23:06
@dabdine-r7
Copy link
Author

ok, vendoring done and the build passes. still need docs!

@dabdine-r7 dabdine-r7 closed this Jun 9, 2016
@dabdine-r7 dabdine-r7 reopened this Jun 9, 2016
@dabdine-r7
Copy link
Author

dabdine-r7 commented Jun 10, 2016

documentation done. A few things to take care of:

  1. Need to add the filename attribute to the logentries_log resource since it is required by the agent log source.
  2. Need to add more logentries_log acceptance tests, perhaps one per log source.
  3. Need to add ACCOUNT_DEFAULT as an accepted value for the retention_period of a logentries_log

@dabdine-r7 dabdine-r7 force-pushed the provider-logentries branch from cdae103 to 38474f1 Compare July 4, 2016 15:12
@dabdine-r7
Copy link
Author

OK, all above issues were addressed, removing WIP tags. This is ready to go / formal review.

@dabdine-r7 dabdine-r7 changed the title [wip] new provider: logentries (operational logging) provider/logentries: Implementing logentries provider Jul 4, 2016
@dabdine-r7
Copy link
Author

can this make it into 0.7? ;)

@dabdine-r7 dabdine-r7 force-pushed the provider-logentries branch from 38474f1 to b088a82 Compare July 4, 2016 16:03
@stack72
Copy link
Contributor

stack72 commented Jul 12, 2016

Hi @dabdine-r7

Thanks so much for the patience here. I have had a review of this and it looks good. Nothing out of the ordinary. Test results:

% make testacc TEST=./builtin/providers/logentries TESTARGS='-run=TestAccLogentriesLog_'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
TF_ACC=1 go test ./builtin/providers/logentries -v -run=TestAccLogentriesLog_ -timeout 120m
=== RUN   TestAccLogentriesLog_Token
--- PASS: TestAccLogentriesLog_Token (1.98s)
=== RUN   TestAccLogentriesLog_SourceApi
--- PASS: TestAccLogentriesLog_SourceApi (1.83s)
=== RUN   TestAccLogentriesLog_SourceAgent
--- PASS: TestAccLogentriesLog_SourceAgent (1.86s)
=== RUN   TestAccLogentriesLog_RetentionPeriod1M
--- PASS: TestAccLogentriesLog_RetentionPeriod1M (2.36s)
=== RUN   TestAccLogentriesLog_RetentionPeriodAccountDefault
--- PASS: TestAccLogentriesLog_RetentionPeriodAccountDefault (1.81s)
=== RUN   TestAccLogentriesLog_RetentionPeriodAccountUnlimited
--- PASS: TestAccLogentriesLog_RetentionPeriodAccountUnlimited (1.78s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/logentries 11.640s
% make testacc TEST=./builtin/providers/logentries TESTARGS='-run=TestAccLogentriesLogSet_'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
TF_ACC=1 go test ./builtin/providers/logentries -v -run=TestAccLogentriesLogSet_ -timeout 120m
=== RUN   TestAccLogentriesLogSet_Basic
--- PASS: TestAccLogentriesLogSet_Basic (1.26s)
=== RUN   TestAccLogentriesLogSet_NoLocation
--- PASS: TestAccLogentriesLogSet_NoLocation (1.54s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/logentries 2.813s

@stack72 stack72 merged commit 7bdc060 into hashicorp:master Jul 12, 2016
@dabdine-r7
Copy link
Author

thank you @stack72!

@ghost
Copy link

ghost commented Apr 24, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants