We were having problems with ServerProject.ID, when deploying a server, our API expects it to be a string, but when we Read the server information, our API(v2) returns a number.
In order to solve this, this PR changes project ServerProjectID to interface{}, Internally golang is able to coerce this in the needed type (int64 for get, string for post)
Description of Task to be completed?
Change ServerProject.ID type to interface{}
How should this be manually tested?
By using golang test suit to run the tests related to Servers:
LATITUDE_AUTH_TOKEN=<API-TOKEN> LATITUDE_TEST_ACTUAL_API=true go test -timeout 30s -run "^TestAccServerBasic$"
Or for manual testing use go get to download this branch:
go get github.com/latitudesh/latitudesh-go@fix/get-servers
What does this PR do?
We were having problems with ServerProject.ID, when deploying a server, our API expects it to be a string, but when we Read the server information, our API(v2) returns a number. In order to solve this, this PR changes project ServerProjectID to
interface{
}, Internally golang is able to coerce this in the needed type (int64 for get, string for post)Description of Task to be completed?
interface{}
How should this be manually tested?
By using golang test suit to run the tests related to Servers:
Or for manual testing use
go get
to download this branch:Usage: