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

Integration tests #22

Merged
merged 2 commits into from
Aug 12, 2019
Merged

Integration tests #22

merged 2 commits into from
Aug 12, 2019

Conversation

jasmingacic
Copy link
Contributor

This PR contains integration tests for:
facilities, devices, organizations, plans, projects, ssh keys, volumes and vlans.

Untested are 2FA, Events, Hardware reservations and IPs as I wasn't sure how to effectively test those.

$ go test 
build
facilities get [facilities get]
no arguments []
operating-systems get [operating-systems get -j]
plan get [plan get -j]
organization get [organization get -j]
project get [project get -j]
create device [device create --hostname clitest --plan baremetal_1 --facility ewr1 --operating-system centos_7 --project-id 93125c2a-8b78-4d4f-a3c4-7367d6b7cca8 -j]
devices get [device get project-id 93125c2a-8b78-4d4f-a3c4-7367d6b7cca8 -j]
device update [device update hostname updatedfromcli -i]
device reboot [device reboot -i]
device stop [device stop -i]
device start [device start -i]
device delete [device delete -i]
create organization [organization create --name clitestOrg -j]
organization list [organization get]
organization get [organization get -i]
organization update [organization update -n updatednamefromCLI -i]
organization delete [organization delete -i]
plan get [plan get]
sshkeyID d2feda43-6b72-4f2d-a813-a4fdc65a5a19
project create [project create -n test -o 6c17df6c-8769-4d98-b01f-f2848b6489a1 -j]
project get [project get]
project get [project get -i 0cfa9667-db5e-4c78-b8a1-1274bfe18b78]
project delete [project delete -i 0cfa9667-db5e-4c78-b8a1-1274bfe18b78 -f]
sshkeyID d2feda43-6b72-4f2d-a813-a4fdc65a5a19
ssh-key create [ssh-key create -l test -k ssh-rsa [hidden] jasmingacic@Jasmins-MBP
]
ssh-key list [ssh-key get -j]
ssh-key get [ssh-key get -i d2feda43-6b72-4f2d-a813-a4fdc65a5a19]
ssh-key delete [ssh-key delete -i d2feda43-6b72-4f2d-a813-a4fdc65a5a19]
create virtual-network [virtual-network create --facility ewr1 --project-id 93125c2a-8b78-4d4f-a3c4-7367d6b7cca8 -j]
virtual-network list [virtual-network get -p 93125c2a-8b78-4d4f-a3c4-7367d6b7cca8]
virtual-network delete [virtual-network delete -i]
create volume [volume create --size 25 --plan storage_1 --facility ewr1 --project-id 93125c2a-8b78-4d4f-a3c4-7367d6b7cca8 -j]
create device [device create --hostname clivolumestest --plan baremetal_1 --facility ewr1 --operating-system centos_7 --project-id 93125c2a-8b78-4d4f-a3c4-7367d6b7cca8 -j]
volumes list [volume get project-id 93125c2a-8b78-4d4f-a3c4-7367d6b7cca8 -j]
volume get [volume get -i]
volume attach [volume attach -i]
volume detach [volume detach -i]
volume delete [volume delete -i]
device delete [device delete -i]
PASS
ok      github.com/packethost/packet-cli/tests  261.091s

@jasmingacic
Copy link
Contributor Author

@t0mk can you take a look at this.

@t0mk
Copy link
Contributor

t0mk commented Aug 12, 2019

Hey @jasmingacic I can't review this further, I have some work on the TF provider. I will continue reviews on the python lib and docker-machine, but I won't have time for packet-cli.

@amenowanna amenowanna requested a review from mattcburns August 12, 2019 13:55
@amenowanna
Copy link

@jasmingacic I am going to ask @mattcburns to review this.

@jasmingacic jasmingacic merged commit 9f73e50 into equinix:master Aug 12, 2019
@displague displague mentioned this pull request May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants