apache / apache/cloudstack-go

Decouple test configuration and enable running tests against a real backend

Ouverte
#28 1 commentaire 0 réactions 1 personne assignée Réclamée par @shwstppr Voir sur GitHub
Langage dominant
Go
Étoiles
39
Forks
47
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.