Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
chore: Add examples and use them for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
timo-reymann authored Jan 7, 2023
1 parent 24b557f commit 48a13a8
Show file tree
Hide file tree
Showing 18 changed files with 5 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/no_routes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

func TestNoRoutesYAML(t *testing.T) {
terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{
TerraformDir: "http-no-routes-yaml",
TerraformDir: "../examples/http-no-routes-yaml",
Vars: map[string]interface{}{},
})

Expand All @@ -19,7 +19,7 @@ func TestNoRoutesYAML(t *testing.T) {

func TestNoRoutesJSON(t *testing.T) {
terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{
TerraformDir: "http-no-routes-json",
TerraformDir: "../examples/http-no-routes-json",
Vars: map[string]interface{}{},
})

Expand Down
6 changes: 3 additions & 3 deletions tests/routes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

func TestRoutesJSON(t *testing.T) {
terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{
TerraformDir: "http-routes-json",
TerraformDir: "../examples/http-routes-json",
Vars: map[string]interface{}{},
})

Expand All @@ -22,7 +22,7 @@ func TestRoutesJSON(t *testing.T) {

func TestRoutesJSONUpdateIdempotent(t *testing.T) {
terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{
TerraformDir: "http-routes-json",
TerraformDir: "../examples/http-routes-json",
Vars: map[string]interface{}{},
})
terraformOptionsUpdate := terraform.WithDefaultRetryableErrors(t, &terraform.Options{
Expand All @@ -46,7 +46,7 @@ func TestRoutesJSONUpdateIdempotent(t *testing.T) {

func TestRoutesJSONWithStage(t *testing.T) {
terraformOptions := terraform.WithDefaultRetryableErrors(t, &terraform.Options{
TerraformDir: "http-routes-json-with-stage",
TerraformDir: "../examples/http-routes-json-with-stage",
Vars: map[string]interface{}{},
})

Expand Down

0 comments on commit 48a13a8

Please sign in to comment.