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/postgresql: Create provider for postgresql extensions #9210

Merged
merged 4 commits into from
Nov 3, 2016

Conversation

samdunne
Copy link
Contributor

@samdunne samdunne commented Oct 4, 2016

This change adds support for installing postgresql extensions on a
postgresql server.

@samdunne samdunne changed the title Create provisioner for postgresql extensions Create provider for postgresql extensions Oct 4, 2016
@samdunne samdunne changed the title Create provider for postgresql extensions provider/postgresql: Create provider for postgresql extensions Oct 4, 2016
@samdunne samdunne force-pushed the postgresql-extensions branch from bc88164 to b9c61e9 Compare October 4, 2016 15:19
@jen20
Copy link
Contributor

jen20 commented Oct 4, 2016

cc @sean- for review

@samdunne samdunne force-pushed the postgresql-extensions branch from b9c61e9 to 2ad56de Compare October 4, 2016 15:26
This change adds support for installing postgresql extensions on a
postgresql server.
@samdunne samdunne force-pushed the postgresql-extensions branch from 2ad56de to d073a90 Compare October 4, 2016 15:32
@samdunne
Copy link
Contributor Author

samdunne commented Oct 5, 2016

@jen20 @sean- tests are fixed now

Copy link
Contributor

@stack72 stack72 left a comment

Choose a reason for hiding this comment

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

Hi @samdunne

Thanks for the work here. I think this needs a few changes:

  1. It needs added to provider.go or it can't be used
  2. We need to add the documentation link to the postgres.erb file (for the sidebar)
  3. Why is there no Read func included? How can we guarantee that the operation has been a success?

Paul


d.SetId(extensionName)

return resourcePostgreSQLRoleRead(d, meta)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does it call the SQLRoleRead func?

@stack72
Copy link
Contributor

stack72 commented Oct 25, 2016

ping @samdunne

@samdunne
Copy link
Contributor Author

Oops. This fell through the cracks a bit. Will rectify and commit today. Apologies @stack72

@stack72
Copy link
Contributor

stack72 commented Nov 2, 2016

pinging in again LOL :)

@stack72 stack72 added the waiting-response An issue/pull request is waiting for a response from the community label Nov 2, 2016
@samdunne
Copy link
Contributor Author

samdunne commented Nov 2, 2016

@stack72 sorry my head is like a sieve the last week. Added changes there. Pretty sure that's it

@stack72
Copy link
Contributor

stack72 commented Nov 3, 2016

Hi @samdunne

This LGTM now :) I had to make 1 small change (to fix a test) but they are green now

% make testacc TEST=./builtin/providers/postgresql                                                                                                                                                      2 ↵
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2016/11/03 12:06:22 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/postgresql -v  -timeout 120m
=== RUN   TestProvider
--- PASS: TestProvider (0.00s)
=== RUN   TestProvider_impl
--- PASS: TestProvider_impl (0.00s)
=== RUN   TestAccPostgresqlDatabase_Basic
--- PASS: TestAccPostgresqlDatabase_Basic (1.49s)
=== RUN   TestAccPostgresqlDatabase_DefaultOwner
--- PASS: TestAccPostgresqlDatabase_DefaultOwner (0.53s)
=== RUN   TestAccPostgresqlExtension_Basic
--- PASS: TestAccPostgresqlExtension_Basic (0.06s)
=== RUN   TestAccPostgresqlRole_Basic
--- PASS: TestAccPostgresqlRole_Basic (0.16s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/postgresql 2.246s

@stack72 stack72 merged commit cb40a3e into hashicorp:master Nov 3, 2016
@samdunne
Copy link
Contributor Author

samdunne commented Nov 3, 2016

\o/ thanks @stack72

@sean-
Copy link
Contributor

sean- commented Dec 15, 2016

@samdunne Have you had a chance to poke at the extension updates that landed in 0.8?

@samdunne
Copy link
Contributor Author

@sean- I haven't had a chance yet. Will give it a try this evening :)

@ghost
Copy link

ghost commented Apr 18, 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 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement provider/postgresql waiting-response An issue/pull request is waiting for a response from the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants