Browse the Repo

file-type-icon.circleci
file-type-icon_docs
file-type-iconexamples
file-type-iconmodules
file-type-icontest
file-type-iconGopkg.lock
file-type-iconGopkg.toml
file-type-iconempty_cluster_example_test.go
file-type-iconhelpers_aws.go
file-type-iconhelpers_file.go
file-type-iconhelpers_mongo.go
file-type-iconhelpers_tls.go
file-type-iconmongo_replica_set_with_backup_test.go
file-type-iconmongo_sharded_cluster_test.go
file-type-iconmongodb_single_instance_test.go
file-type-iconpacker_options.go
file-type-iconterratest_options.go
file-type-icon.gitignore
file-type-iconCODEOWNERS
file-type-iconLICENSE.txt
file-type-iconREADME.md

Browse the Repo

file-type-icon.circleci
file-type-icon_docs
file-type-iconexamples
file-type-iconmodules
file-type-icontest
file-type-iconGopkg.lock
file-type-iconGopkg.toml
file-type-iconempty_cluster_example_test.go
file-type-iconhelpers_aws.go
file-type-iconhelpers_file.go
file-type-iconhelpers_mongo.go
file-type-iconhelpers_tls.go
file-type-iconmongo_replica_set_with_backup_test.go
file-type-iconmongo_sharded_cluster_test.go
file-type-iconmongodb_single_instance_test.go
file-type-iconpacker_options.go
file-type-iconterratest_options.go
file-type-icon.gitignore
file-type-iconCODEOWNERS
file-type-iconLICENSE.txt
file-type-iconREADME.md
MongoDB

MongoDB

Deploy a MongoDB cluster. Supports replica sets, sharding, automated bootstrapping, backup, recovery, and OS optimizations.

Code Preview

Preview the Code

mobile file icon

mongodb_single_instance_test.go

down
  • package test
  • import (
  • "path/filepath"
  • "testing"
  • "time"
  • "github.com/gruntwork-io/terratest/modules/aws"
  • "github.com/gruntwork-io/terratest/modules/packer"
  • "github.com/gruntwork-io/terratest/modules/random"
  • "github.com/gruntwork-io/terratest/modules/retry"
  • "github.com/gruntwork-io/terratest/modules/ssh"
  • "github.com/gruntwork-io/terratest/modules/terraform"
  • "github.com/gruntwork-io/terratest/modules/test-structure"
  • "gopkg.in/mgo.v2"
  • )
  • func TestSingleInstance(t *testing.T) {
  • t.Parallel()
  • // Uncomment any of the following to skip that section during the test
  • //os.Setenv("SKIP_foo", "true") // This stage doesn't exist, but is useful in preventing copying to a tmp dir
  • //os.Setenv("SKIP_build_ami", "true")
  • //os.Setenv("SKIP_create_terratest_options", "true")
  • //os.Setenv("SKIP_terraform_apply", "true")

Questions? Ask away.

We're here to talk about our services, answer any questions, give advice, or just to chat.

Ready to hand off the Gruntwork?