Open snowiow opened 5 years ago
Merging #61 into master will increase coverage by
3.82%
. The diff coverage is75.33%
.
@@ Coverage Diff @@
## master #61 +/- ##
==========================================
+ Coverage 41.4% 45.22% +3.82%
==========================================
Files 11 12 +1
Lines 1181 1331 +150
==========================================
+ Hits 489 602 +113
- Misses 691 728 +37
Partials 1 1
Impacted Files | Coverage Δ | |
---|---|---|
mongodbatlas/provider.go | 83.78% <100%> (+0.45%) |
:arrow_up: |
mongodbatlas/data_source_mongodbatlas_cluster.go | 75.16% <75.16%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 814d329...24b9944. Read the comment docs.
Hey @snowiow thanks for making the PR. Not sure about that error you are seeing. Can you try updating your dependencies and make sure you are on the correct go version 1.10 and re-run them?
I tried to run the tests agian, but currently I get a timeout because the cluster creation takes a pretty long time and the test only waits for 10 minutes
Hey @snowiow if you are running make test
it should not attempt to create the cluster as that is done only in the acceptance tests which you won't be able to run locally without the mongodb credentials. Can you check to make sure you are not running acceptance tests?
@akshaykarle / @snowiow any timeframes around getting this merged?
@akshaykarle those are running without problems. But the problem I have is, if I go to make tests for the cluster data source, it would be an Acceptance Test as well and therefore I couldn't run the tests myself.
@BrendanThompson From my point of view it can be merged, because the data source itself is working correctly. We used my fork of this provider for two of our environments already, without problems. The only thing I would like to have aswell is an acceptance test for the feature for completeness sake, but I can't verify the tests at the moment, because the acceptance tests aren't running through for me.
Hi, first of all thanks for creating this provider. It is a huge help for our automated infrastructure provisioning.
Nevertheless we needed the cluster as a data source as well. Otherwise we have to apply the cluster creation together with the creation of other resources, because we needed the
mongodb_uri_with_options
as an env paremeter for a ec2 user_data script. This would have the drawback, that every time we want to destroy the ec2 instance, the mongodb cluster was destroyed as well, which results in long test iteration cycles.Here I created the data source and the documentation for it. But I couldn't write the test, because I always get an error while executing
make test
:Maybe you can help me with that problem? :slightly_smiling_face: