Repository: chanzuckerberg/fogg
Pull request #642 (2022-05-04 21:52:11)

feat: adding assert library to fogg to make it easier to use in modules
### Summary
This PR adds the assert library to all fogg files so we can easily use it in our modules.
### Test Plan
Say unittests, or list out steps to verify changes.

### References
(Optional) Additional links to provide more context.



Patch:
diff --git a/apply/apply.go b/apply/apply.go
index 45ba9a3d..6698233a 100644
--- a/apply/apply.go
+++ b/apply/apply.go
@@ -42,7 +42,6 @@ func Apply(fs afero.Fs, conf *v2.Config, tmp *templates.T, upgrade bool) error {
 	if err != nil {
 		return errs.WrapUser(err, "unable to evaluate plan")
 	}
-
 	e := applyRepo(fs, p, tmp.Repo, tmp.Common)
 	if e != nil {
 		return errs.WrapUser(e, "unable to apply repo")
diff --git a/config/v2/config.go b/config/v2/config.go
index a4f72583..88e7df10 100644
--- a/config/v2/config.go
+++ b/config/v2/config.go
@@ -116,6 +116,7 @@ type Component struct {
 }
 
 type Providers struct {
+	Assert     *AssertProvider     `yaml:"assert,omitempty"`
 	Auth0      *Auth0Provider      `yaml:"auth0,omitempty"`
 	AWS        *AWSProvider        `yaml:"aws,omitempty"`
 	Bless      *BlessProvider      `yaml:"bless,omitempty"`
@@ -132,6 +133,11 @@ type Providers struct {
 	Tfe        *TfeProvider        `yaml:"tfe,omitempty"`
 }
 
+type AssertProvider struct {
+	Version *string `yaml:"version,omitempty"`
+	Domain  *string `yaml:"domain,omitempty"`
+}
+
 // CommonProvider encapsulates common properties across providers
 // TODO refactor other providers to use CommonProvider inline
 type CommonProvider struct {
@@ -175,7 +181,6 @@ type AWSProvider struct {
 	Region            *string      `yaml:"region,omitempty"`
 	Role              *string      `yaml:"role,omitempty"` // FIXME validate format
 	Version           *string      `yaml:"version,omitempty"`
-
 	// HACK HACK(el): we can configure additional, aliased, AWS providers for other accounts
 	// 								A map of alias_name to provider configuration
 	AdditionalProviders map[string]*AWSProvider `yaml:"additional_providers,omitempty"`
diff --git a/config/v2/resolvers.go b/config/v2/resolvers.go
index 0146a084..9d6b8982 100644
--- a/config/v2/resolvers.go
+++ b/config/v2/resolvers.go
@@ -100,6 +100,27 @@ func ResolveAuth0Provider(commons ...Common) *Auth0Provider {
 	return nil
 }
 
+func ResolveAssertProvider(commons ...Common) *AssertProvider {
+	var domain, version *string
+	for _, c := range commons {
+		if c.Providers == nil || c.Providers.Assert == nil {
+			continue
+		}
+		if c.Providers.Assert.Version != nil {
+			version = c.Providers.Assert.Version
+		}
+
+		if c.Providers.Assert.Domain != nil {
+			domain = c.Providers.Assert.Domain
+		}
+	}
+
+	if domain != nil && version != nil {
+		return &AssertProvider{Version: version, Domain: domain}
+	}
+	return nil
+}
+
 // ResolveAWSProvider will return an AWSProvder if one of the required fields is set somewhere in
 // the set of Common config objects passed in. Otherwise it will return nil.
 func ResolveAWSProvider(commons ...Common) *AWSProvider {
diff --git a/plan/plan.go b/plan/plan.go
index 31b56609..6bd6f35b 100644
--- a/plan/plan.go
+++ b/plan/plan.go
@@ -166,6 +166,10 @@ var utilityProviders = map[string]ProviderVersion{
 		Source:  "hashicorp/tls",
 		Version: ptr.String("~> 3.0"),
 	},
+	"assert": {
+		Source:  "bwoznicki/assert",
+		Version: ptr.String("~> 0.0.1"),
+	},
 }
 
 //AWSProvider represents AWS provider configuration
@@ -627,6 +631,19 @@ func resolveComponentCommon(commons ...v2.Common) ComponentCommon {
 		}
 	}
 
+	var assertPlan *v2.AssertProvider
+	assertConfig := v2.ResolveAssertProvider(commons...)
+	if assertConfig != nil {
+		assertPlan = &v2.AssertProvider{
+			Domain: assertPlan.Domain,
+		}
+
+		providerVersions["assert"] = ProviderVersion{
+			Source:  "bwoznicki/assert",
+			Version: assertConfig.Version,
+		}
+	}
+
 	var githubPlan *GithubProvider
 	githubConfig := v2.ResolveGithubProvider(commons...)
 


Test patch:
diff --git a/testdata/auth0_provider_yaml/terraform/accounts/foo/fogg.tf b/testdata/auth0_provider_yaml/terraform/accounts/foo/fogg.tf
index 9eb42c34..d76a81e8 100644
--- a/testdata/auth0_provider_yaml/terraform/accounts/foo/fogg.tf
+++ b/testdata/auth0_provider_yaml/terraform/accounts/foo/fogg.tf
@@ -27,6 +27,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     auth0 = {
       source = "alexkappa/auth0"
 
diff --git a/testdata/auth0_provider_yaml/terraform/envs/bar/bam/fogg.tf b/testdata/auth0_provider_yaml/terraform/envs/bar/bam/fogg.tf
index 0bfec612..fa2c08f5 100644
--- a/testdata/auth0_provider_yaml/terraform/envs/bar/bam/fogg.tf
+++ b/testdata/auth0_provider_yaml/terraform/envs/bar/bam/fogg.tf
@@ -27,6 +27,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     auth0 = {
       source = "alexkappa/auth0"
 
diff --git a/testdata/auth0_provider_yaml/terraform/global/fogg.tf b/testdata/auth0_provider_yaml/terraform/global/fogg.tf
index 05858a91..2bd4da76 100644
--- a/testdata/auth0_provider_yaml/terraform/global/fogg.tf
+++ b/testdata/auth0_provider_yaml/terraform/global/fogg.tf
@@ -27,6 +27,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     auth0 = {
       source = "alexkappa/auth0"
 
diff --git a/testdata/bless_provider_yaml/terraform/accounts/foo/fogg.tf b/testdata/bless_provider_yaml/terraform/accounts/foo/fogg.tf
index feb2a9e6..36c5a09e 100644
--- a/testdata/bless_provider_yaml/terraform/accounts/foo/fogg.tf
+++ b/testdata/bless_provider_yaml/terraform/accounts/foo/fogg.tf
@@ -40,6 +40,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     bless = {
       source = "chanzuckerberg/bless"
 
diff --git a/testdata/bless_provider_yaml/terraform/envs/bar/bam/fogg.tf b/testdata/bless_provider_yaml/terraform/envs/bar/bam/fogg.tf
index cc23fc3d..96196436 100644
--- a/testdata/bless_provider_yaml/terraform/envs/bar/bam/fogg.tf
+++ b/testdata/bless_provider_yaml/terraform/envs/bar/bam/fogg.tf
@@ -40,6 +40,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     bless = {
       source = "chanzuckerberg/bless"
 
diff --git a/testdata/bless_provider_yaml/terraform/global/fogg.tf b/testdata/bless_provider_yaml/terraform/global/fogg.tf
index 27d070a9..c7b6dc4d 100644
--- a/testdata/bless_provider_yaml/terraform/global/fogg.tf
+++ b/testdata/bless_provider_yaml/terraform/global/fogg.tf
@@ -40,6 +40,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     bless = {
       source = "chanzuckerberg/bless"
 
diff --git a/testdata/circleci/terraform/global/fogg.tf b/testdata/circleci/terraform/global/fogg.tf
index 00212455..4ec56084 100644
--- a/testdata/circleci/terraform/global/fogg.tf
+++ b/testdata/circleci/terraform/global/fogg.tf
@@ -23,6 +23,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     local = {
       source = "hashicorp/local"
 
diff --git a/testdata/github_actions/terraform/global/fogg.tf b/testdata/github_actions/terraform/global/fogg.tf
index 00212455..4ec56084 100644
--- a/testdata/github_actions/terraform/global/fogg.tf
+++ b/testdata/github_actions/terraform/global/fogg.tf
@@ -23,6 +23,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     local = {
       source = "hashicorp/local"
 
diff --git a/testdata/github_provider_yaml/terraform/accounts/foo/fogg.tf b/testdata/github_provider_yaml/terraform/accounts/foo/fogg.tf
index 7865e4c9..3f07c80b 100644
--- a/testdata/github_provider_yaml/terraform/accounts/foo/fogg.tf
+++ b/testdata/github_provider_yaml/terraform/accounts/foo/fogg.tf
@@ -28,6 +28,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     github = {
       source = "integrations/github"
 
diff --git a/testdata/github_provider_yaml/terraform/envs/bar/bam/fogg.tf b/testdata/github_provider_yaml/terraform/envs/bar/bam/fogg.tf
index 623bff62..cc60fc88 100644
--- a/testdata/github_provider_yaml/terraform/envs/bar/bam/fogg.tf
+++ b/testdata/github_provider_yaml/terraform/envs/bar/bam/fogg.tf
@@ -28,6 +28,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     github = {
       source = "integrations/github"
 
diff --git a/testdata/github_provider_yaml/terraform/global/fogg.tf b/testdata/github_provider_yaml/terraform/global/fogg.tf
index 8a6c1ace..db995350 100644
--- a/testdata/github_provider_yaml/terraform/global/fogg.tf
+++ b/testdata/github_provider_yaml/terraform/global/fogg.tf
@@ -28,6 +28,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     github = {
       source = "integrations/github"
 
diff --git a/testdata/okta_provider_yaml/terraform/accounts/foo/fogg.tf b/testdata/okta_provider_yaml/terraform/accounts/foo/fogg.tf
index 97cad79f..e82425ce 100644
--- a/testdata/okta_provider_yaml/terraform/accounts/foo/fogg.tf
+++ b/testdata/okta_provider_yaml/terraform/accounts/foo/fogg.tf
@@ -28,6 +28,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     local = {
       source = "hashicorp/local"
 
diff --git a/testdata/okta_provider_yaml/terraform/envs/bar/bam/fogg.tf b/testdata/okta_provider_yaml/terraform/envs/bar/bam/fogg.tf
index a7cf3a35..9d0c7d6f 100644
--- a/testdata/okta_provider_yaml/terraform/envs/bar/bam/fogg.tf
+++ b/testdata/okta_provider_yaml/terraform/envs/bar/bam/fogg.tf
@@ -28,6 +28,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     local = {
       source = "hashicorp/local"
 
diff --git a/testdata/okta_provider_yaml/terraform/global/fogg.tf b/testdata/okta_provider_yaml/terraform/global/fogg.tf
index 1f9585d9..9e4ba21c 100644
--- a/testdata/okta_provider_yaml/terraform/global/fogg.tf
+++ b/testdata/okta_provider_yaml/terraform/global/fogg.tf
@@ -28,6 +28,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     local = {
       source = "hashicorp/local"
 
diff --git a/testdata/remote_backend_yaml/terraform/accounts/acct1/fogg.tf b/testdata/remote_backend_yaml/terraform/accounts/acct1/fogg.tf
index afcf2698..b594ba12 100644
--- a/testdata/remote_backend_yaml/terraform/accounts/acct1/fogg.tf
+++ b/testdata/remote_backend_yaml/terraform/accounts/acct1/fogg.tf
@@ -21,6 +21,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     local = {
       source = "hashicorp/local"
 
diff --git a/testdata/remote_backend_yaml/terraform/global/fogg.tf b/testdata/remote_backend_yaml/terraform/global/fogg.tf
index 0cc3b2b3..170b4530 100644
--- a/testdata/remote_backend_yaml/terraform/global/fogg.tf
+++ b/testdata/remote_backend_yaml/terraform/global/fogg.tf
@@ -21,6 +21,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     local = {
       source = "hashicorp/local"
 
diff --git a/testdata/snowflake_provider_yaml/terraform/accounts/foo/fogg.tf b/testdata/snowflake_provider_yaml/terraform/accounts/foo/fogg.tf
index 545cb0f1..d9b3d927 100644
--- a/testdata/snowflake_provider_yaml/terraform/accounts/foo/fogg.tf
+++ b/testdata/snowflake_provider_yaml/terraform/accounts/foo/fogg.tf
@@ -29,6 +29,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     local = {
       source = "hashicorp/local"
 
diff --git a/testdata/snowflake_provider_yaml/terraform/envs/bar/bam/fogg.tf b/testdata/snowflake_provider_yaml/terraform/envs/bar/bam/fogg.tf
index 4cfb7ddc..8f48217f 100644
--- a/testdata/snowflake_provider_yaml/terraform/envs/bar/bam/fogg.tf
+++ b/testdata/snowflake_provider_yaml/terraform/envs/bar/bam/fogg.tf
@@ -29,6 +29,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     local = {
       source = "hashicorp/local"
 
diff --git a/testdata/snowflake_provider_yaml/terraform/global/fogg.tf b/testdata/snowflake_provider_yaml/terraform/global/fogg.tf
index 35d9d29c..42b3b09d 100644
--- a/testdata/snowflake_provider_yaml/terraform/global/fogg.tf
+++ b/testdata/snowflake_provider_yaml/terraform/global/fogg.tf
@@ -29,6 +29,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     local = {
       source = "hashicorp/local"
 
diff --git a/testdata/tfe_provider_yaml/terraform/accounts/foo/fogg.tf b/testdata/tfe_provider_yaml/terraform/accounts/foo/fogg.tf
index 25b88951..8a5cab12 100644
--- a/testdata/tfe_provider_yaml/terraform/accounts/foo/fogg.tf
+++ b/testdata/tfe_provider_yaml/terraform/accounts/foo/fogg.tf
@@ -26,6 +26,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     local = {
       source = "hashicorp/local"
 
diff --git a/testdata/tfe_provider_yaml/terraform/envs/bar/bam/fogg.tf b/testdata/tfe_provider_yaml/terraform/envs/bar/bam/fogg.tf
index 02f042fa..b331a311 100644
--- a/testdata/tfe_provider_yaml/terraform/envs/bar/bam/fogg.tf
+++ b/testdata/tfe_provider_yaml/terraform/envs/bar/bam/fogg.tf
@@ -23,6 +23,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     local = {
       source = "hashicorp/local"
 
diff --git a/testdata/tfe_provider_yaml/terraform/global/fogg.tf b/testdata/tfe_provider_yaml/terraform/global/fogg.tf
index 3bc92aad..6a92130a 100644
--- a/testdata/tfe_provider_yaml/terraform/global/fogg.tf
+++ b/testdata/tfe_provider_yaml/terraform/global/fogg.tf
@@ -26,6 +26,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     local = {
       source = "hashicorp/local"
 
diff --git a/testdata/v2_full_yaml/terraform/accounts/bar/fogg.tf b/testdata/v2_full_yaml/terraform/accounts/bar/fogg.tf
index 1bf3aea5..d2fdf77e 100644
--- a/testdata/v2_full_yaml/terraform/accounts/bar/fogg.tf
+++ b/testdata/v2_full_yaml/terraform/accounts/bar/fogg.tf
@@ -171,6 +171,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     aws = {
       source = "hashicorp/aws"
 
diff --git a/testdata/v2_full_yaml/terraform/accounts/foo/fogg.tf b/testdata/v2_full_yaml/terraform/accounts/foo/fogg.tf
index adabcfe6..5a784dc2 100644
--- a/testdata/v2_full_yaml/terraform/accounts/foo/fogg.tf
+++ b/testdata/v2_full_yaml/terraform/accounts/foo/fogg.tf
@@ -41,6 +41,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     aws = {
       source = "hashicorp/aws"
 
diff --git a/testdata/v2_full_yaml/terraform/envs/prod/datadog/fogg.tf b/testdata/v2_full_yaml/terraform/envs/prod/datadog/fogg.tf
index 84e1ad7d..ed98b886 100644
--- a/testdata/v2_full_yaml/terraform/envs/prod/datadog/fogg.tf
+++ b/testdata/v2_full_yaml/terraform/envs/prod/datadog/fogg.tf
@@ -34,6 +34,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     aws = {
       source = "hashicorp/aws"
 
diff --git a/testdata/v2_full_yaml/terraform/envs/prod/hero/fogg.tf b/testdata/v2_full_yaml/terraform/envs/prod/hero/fogg.tf
index f97a8dbe..ca0cbe32 100644
--- a/testdata/v2_full_yaml/terraform/envs/prod/hero/fogg.tf
+++ b/testdata/v2_full_yaml/terraform/envs/prod/hero/fogg.tf
@@ -34,6 +34,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     aws = {
       source = "hashicorp/aws"
 
diff --git a/testdata/v2_full_yaml/terraform/envs/prod/okta/fogg.tf b/testdata/v2_full_yaml/terraform/envs/prod/okta/fogg.tf
index 0d6a6bbf..b94b309b 100644
--- a/testdata/v2_full_yaml/terraform/envs/prod/okta/fogg.tf
+++ b/testdata/v2_full_yaml/terraform/envs/prod/okta/fogg.tf
@@ -37,6 +37,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     aws = {
       source = "hashicorp/aws"
 
diff --git a/testdata/v2_full_yaml/terraform/envs/prod/sentry/fogg.tf b/testdata/v2_full_yaml/terraform/envs/prod/sentry/fogg.tf
index ec7bc6aa..98764910 100644
--- a/testdata/v2_full_yaml/terraform/envs/prod/sentry/fogg.tf
+++ b/testdata/v2_full_yaml/terraform/envs/prod/sentry/fogg.tf
@@ -35,6 +35,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     aws = {
       source = "hashicorp/aws"
 
diff --git a/testdata/v2_full_yaml/terraform/envs/prod/vpc/fogg.tf b/testdata/v2_full_yaml/terraform/envs/prod/vpc/fogg.tf
index 7b4e0a53..f62d7260 100644
--- a/testdata/v2_full_yaml/terraform/envs/prod/vpc/fogg.tf
+++ b/testdata/v2_full_yaml/terraform/envs/prod/vpc/fogg.tf
@@ -32,6 +32,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     aws = {
       source = "hashicorp/aws"
 
diff --git a/testdata/v2_full_yaml/terraform/envs/staging/comp1/fogg.tf b/testdata/v2_full_yaml/terraform/envs/staging/comp1/fogg.tf
index 0503ff6f..1a64ab19 100644
--- a/testdata/v2_full_yaml/terraform/envs/staging/comp1/fogg.tf
+++ b/testdata/v2_full_yaml/terraform/envs/staging/comp1/fogg.tf
@@ -30,6 +30,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     aws = {
       source = "hashicorp/aws"
 
diff --git a/testdata/v2_full_yaml/terraform/envs/staging/comp2/fogg.tf b/testdata/v2_full_yaml/terraform/envs/staging/comp2/fogg.tf
index ca5907db..c0a84a44 100644
--- a/testdata/v2_full_yaml/terraform/envs/staging/comp2/fogg.tf
+++ b/testdata/v2_full_yaml/terraform/envs/staging/comp2/fogg.tf
@@ -30,6 +30,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     aws = {
       source = "hashicorp/aws"
 
diff --git a/testdata/v2_full_yaml/terraform/envs/staging/vpc/fogg.tf b/testdata/v2_full_yaml/terraform/envs/staging/vpc/fogg.tf
index f7fb69cc..e20eeca2 100644
--- a/testdata/v2_full_yaml/terraform/envs/staging/vpc/fogg.tf
+++ b/testdata/v2_full_yaml/terraform/envs/staging/vpc/fogg.tf
@@ -30,6 +30,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     aws = {
       source = "hashicorp/aws"
 
diff --git a/testdata/v2_full_yaml/terraform/global/fogg.tf b/testdata/v2_full_yaml/terraform/global/fogg.tf
index ec3a610f..4d2f2491 100644
--- a/testdata/v2_full_yaml/terraform/global/fogg.tf
+++ b/testdata/v2_full_yaml/terraform/global/fogg.tf
@@ -32,6 +32,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     aws = {
       source = "hashicorp/aws"
 
diff --git a/testdata/v2_minimal_valid_yaml/terraform/global/fogg.tf b/testdata/v2_minimal_valid_yaml/terraform/global/fogg.tf
index 00212455..4ec56084 100644
--- a/testdata/v2_minimal_valid_yaml/terraform/global/fogg.tf
+++ b/testdata/v2_minimal_valid_yaml/terraform/global/fogg.tf
@@ -23,6 +23,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     local = {
       source = "hashicorp/local"
 
diff --git a/testdata/v2_no_aws_provider_yaml/terraform/envs/staging/vpc/fogg.tf b/testdata/v2_no_aws_provider_yaml/terraform/envs/staging/vpc/fogg.tf
index 34bd650f..e1b8e716 100644
--- a/testdata/v2_no_aws_provider_yaml/terraform/envs/staging/vpc/fogg.tf
+++ b/testdata/v2_no_aws_provider_yaml/terraform/envs/staging/vpc/fogg.tf
@@ -23,6 +23,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     local = {
       source = "hashicorp/local"
 
diff --git a/testdata/v2_no_aws_provider_yaml/terraform/global/fogg.tf b/testdata/v2_no_aws_provider_yaml/terraform/global/fogg.tf
index 8efb0027..1e6be7b7 100644
--- a/testdata/v2_no_aws_provider_yaml/terraform/global/fogg.tf
+++ b/testdata/v2_no_aws_provider_yaml/terraform/global/fogg.tf
@@ -23,6 +23,13 @@ terraform {
 
     }
 
+    assert = {
+      source = "bwoznicki/assert"
+
+      version = "~> 0.0.1"
+
+    }
+
     local = {
       source = "hashicorp/local"