apache / apache/cloudstack-go

Decouple test configuration and enable running tests against a real backend

Đang mở
#28 1 bình luận 0 reaction 1 người được giao Được @shwstppr nhận Xem trên GitHub
Ngôn ngữ chính
Go
Star
39
Fork
47
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.