apache / apache/cloudstack-go

Decouple test configuration and enable running tests against a real backend

Abierto
#28 1 comentario 0 reacciones 1 asignado Reclamado por @shwstppr Ver en GitHub
Lenguaje dominante
Go
Estrellas
39
Forks
47
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.