googleapis / googleapis/google-cloud-cpp

Update Spanner Interval integration tests to call `UsingEmulator()`

Ouverte
#15,162 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
api: spanner type: cleanup
Langage dominant
C++
Étoiles
659
Forks
463
Merge moyen
1 j 2 h
PR mergées (30 j)
89

Description

The Spanner integrations tests have been written to expect particular behavior from the emulator, even it is an error, rather than just skipping the test altogether. See all the other UsingEmulator() calls in this file, for example. This allows us to learn when the emulator changes behavior and react accordingly, rather than just forgetting about the whole issue forever more.

[It also helped the emulator team, who (at least previously) ran our tests to check their implementation. Rather than just seeing successes no matter what they did, expecting the old (error) behavior allowed them to verify that things had indeed changed, and also to compare their new behavior to that of the service.]

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Trouvez le fichier de test d’intégration Spanner Interval et examinez les appels existants à UsingEmulator() à proximité. Mettez à jour les tests d’intégration Interval afin qu’ils utilisent le même modèle, en conservant les attentes concernant les erreurs de l’émulateur plutôt qu’en ignorant ces tests. Exécutez la cible de test d’intégration Spanner concernée et confirmez que le comportement de l’émulateur fait toujours l’objet d’une vérification explicite.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
cpp
Domaine
databases, testing
Type d'issue
Refactorisation
Difficulté
2/5
Temps estimé
1-3 heures
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
55/100

Recevez les nouvelles issues par e-mail

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