apache / apache/cloudstack-go

Decouple test configuration and enable running tests against a real backend

未關閉
#28 1 則留言 0 個 reaction 已指派 1 人 已被 @shwstppr 認領 在 GitHub 檢視
主要語言
Go
星號
39
分支
47
PR 合併指標
30 天內沒有已合併 PR

描述

Currently, in the test set the test configuration is (partly?) [hardcoded](https://github.com/apache/cloudstack-go/blob/78fa5e496c8a81f2a7527c1cd5a762a9611e27ad/cloudstack/VirtualMachineService_test.go#L29) using endpoint mocking approach with httptest:

```
func TestVirtualMachineService_DeployVirtualMachine(t *testing.T) {
server := httptest.NewServer( ...
```
It would be great to have some decoupling here to provision endpoint configurations in a flexible way, also enabling automated testing against (multiple) real endpoints.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。