vatesfr / terraform-provider-xenorchestra

Xen Orchestra provider for Terraform
MIT License
152 stars 32 forks source link

Remove dead code (common package) #7

Closed ddelnano closed 5 years ago

ddelnano commented 5 years ago

This code was used when I was prototyping things. However, the sourcegraph jsonrpcv2 package implements this stuff now.

ddelnano commented 5 years ago

Acceptance tests pass against my XOA server

ddelnano@ddelnano-desktop:~/code/terraform-provider-xenorchestra$ make testacc
TF_ACC=1 go test ./... -v
?       github.com/ddelnano/terraform-provider-xenorchestra     [no test files]
=== RUN   TestGetPIFByDevice
--- PASS: TestGetPIFByDevice (0.80s)
=== RUN   TestGetTemplate
--- PASS: TestGetTemplate (0.49s)
=== RUN   TestThatUnmarshalingWorks
--- PASS: TestThatUnmarshalingWorks (0.00s)
=== RUN   TestUnmarshalingVmObject
--- PASS: TestUnmarshalingVmObject (0.00s)
PASS
ok      github.com/ddelnano/terraform-provider-xenorchestra/client      (cached)
=== RUN   TestAccXenorchestraDataSource_pif
--- PASS: TestAccXenorchestraDataSource_pif (1.25s)
=== RUN   TestAccXenorchestraDataSource_template
--- PASS: TestAccXenorchestraDataSource_template (1.26s)
=== RUN   TestAccXenorchestraCloudConfig_readAfterDelete
--- PASS: TestAccXenorchestraCloudConfig_readAfterDelete (1.16s)
=== RUN   TestAccXenorchestraCloudConfig_create
--- PASS: TestAccXenorchestraCloudConfig_create (0.91s)
=== RUN   TestAccXenorchestraCloudConfig_updateName
--- PASS: TestAccXenorchestraCloudConfig_updateName (1.60s)
=== RUN   TestAccXenorchestraCloudConfig_updateTemplate
--- PASS: TestAccXenorchestraCloudConfig_updateTemplate (1.58s)
=== RUN   TestAccXenorchestraCloudConfig_import
--- PASS: TestAccXenorchestraCloudConfig_import (1.08s)
=== RUN   TestAccXenorchestraVm_create
VM params map[string]interface {}{"CPUs":1, "VIFs":[]map[string]string{map[string]string{"network":"d225cf00-36f8-e6d6-6a29-02636d4de56b"}}, "bootAfterCreate":true, "cloudConfig":"template", "coreOs":false, "cpuCap":interface {}(nil), "cpuWeight":interface {}(nil), "existingDisks":map[string]interface {}{"0":map[string]interface {}{"$SR":"7f469400-4a2b-5624-cf62-61e522e50ea1", "name_label":"Ubuntu Bionic Beaver 18.04_imavo", "size":32212254720}}, "memoryMax":1073733632, "name_description":"description", "name_label":"Name", "template":"2dd0373e-0ed5-7413-a57f-1958d03b698c"}--- PASS: TestAccXenorchestraVm_create (51.83s)
PASS
ok      github.com/ddelnano/terraform-provider-xenorchestra/xoa 60.683s