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: Packet - Add volume #8142

Merged
merged 12 commits into from
Aug 15, 2016
Merged

Provider: Packet - Add volume #8142

merged 12 commits into from
Aug 15, 2016

Conversation

ayudemura
Copy link
Contributor

#7770 is not reopen-able...

@ayudemura ayudemura changed the title Add volume Provider: Packet - Add volume Aug 11, 2016
@ayudemura
Copy link
Contributor Author

@stack72
The original PR was unopenable so here is the new PR.
We have decided to drop ipaddress calls for now.
I have ran acceptance test and it passed.

@stack72
Copy link
Contributor

stack72 commented Aug 11, 2016

Hi @ayudemura

Thanks so much for opening the PR to add the functionality again :) Please can you let me know what environment variables i should use when testing this PR? I see new ones have been added for the tests of volume
Are ENV VARs the only way this can be done?

P.

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

ayudemura commented Aug 12, 2016

stack72
You can use PACKET_PROJECT_ID='e9f7eaad-09cf-44ad-8022-4d1322d9ce87' PACKET_FACILITY='ewr1'as of the new env (pass as parameter as well).
I think we try not to hardcode them since the instance with given id could be deleted by the time of running test. You were already successfully running the acceptance test before, so I am assuming that you already have appropriate PACKET_AUTH_TOKEN env. Can you send me your token so that I can link the instance with your token to be able to run the test. If you don't have one, then also please let me know so that I can generate and provide you the safe token.

@stack72 stack72 merged commit 3671bae into hashicorp:master Aug 15, 2016
@stack72
Copy link
Contributor

stack72 commented Aug 15, 2016

Hi @ayudemura

Thanks for the help in understand the PR here :)

the tests look good to me!

% make testacc TEST=./builtin/providers/packet TESTARGS='-run=TestAccPacket'
==> Checking that code complies with gofmt requirements...
/Users/stacko/Code/go/bin/stringer
go generate $(go list ./... | grep -v /terraform/vendor/)
2016/08/15 08:36:47 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/packet -v -run=TestAccPacket -timeout 120m
=== RUN   TestAccPacketProject_Basic
--- PASS: TestAccPacketProject_Basic (8.23s)
=== RUN   TestAccPacketSSHKey_Basic
--- PASS: TestAccPacketSSHKey_Basic (4.48s)
=== RUN   TestAccPacketVolume_Basic
--- PASS: TestAccPacketVolume_Basic (28.60s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/packet 41.330s

I made a small change which allows us to eliminate the need for environment variables. We now create a Project as part of the test, that way we can spin up and tear down the entire env each time ffd0488

Apart from that, it all looks good! Thanks so much

Paul

@linuxus
Copy link

linuxus commented Jan 16, 2017

Hello and thanks for this new feature of packet. I was hoping that there will be an argument to pass into this resource for attachment. Once the volume is created we will need a way to attach it to a Packet device (aka server). I looked at the device resource argument and there isn't an attach to volume available either.
Thanks.

@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/packet 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.

3 participants