davidjumani commented on issue #28: URL: https://github.com/apache/cloudstack-go/issues/28#issuecomment-1102538698
Hi @synergiator with the addition of https://github.com/apache/cloudstack-go/pull/32, a change in https://github.com/apache/cloudstack-go/blob/main/test/cloudstack_test.go#L39 to return a server with the URL of a management server can be made. Eg: ``` func CreateTestServer(t *testing.T, responses map[string]json.RawMessage) *httptest.Server { return &httptest.Server{ URL: "http://server-ip:8080/client/api", Listener: &net.TCPListener{}, Config: &http.Server{}, } } ``` There will be other changes required such as passing optional or mutually exclusive parameters, and using an async client as needed The main intent of the tests is to ensure that the json responses are successfully unmarshalled into the respective go structs -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
