grafana / cloudcost-exporter

Prometheus Exporter for Cloud Provider agnostic cost metrics
Apache License 2.0
30 stars 1 forks source link

Implement tests to validate breaking changes #65

Closed Pokom closed 9 months ago

Pokom commented 9 months ago

I've added tests to GCP's compute module and AWS's S3 module to test out calling collect multiple times and ensure that it always returns 1.0. The only time 0.0 should be returned from either collect method is if the initial call to populate the pricing structure fails.

Eventually will resolve #64

Pokom commented 9 months ago

The intention here is to break the build with a failing test and then work towards an implementation.