apache / apache/cloudstack-go

Decouple test configuration and enable running tests against a real backend

オープン
#28 コメント 1 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。