Skip to content

Commit

Permalink
Merge pull request #18 from lukerops/feat/teste-em-pasta-unica
Browse files Browse the repository at this point in the history
Movendo testes do CustomResourceDefinition/v1alpha1 para a pasta raiz
  • Loading branch information
lukerops authored Sep 30, 2024
2 parents ffe6a38 + 4192840 commit 77c6873
Show file tree
Hide file tree
Showing 20 changed files with 320 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,8 @@ jobs:

- name: Terraform init (v${{matrix.terraform_version}})
run: |
for i in $(find . -name tests -exec dirname {} \;); do
echo "Running tests for: \"$i\""
terraform -chdir="$i" init
echo;
done
terraform init
- name: Run Tests
run: |
for i in $(find . -name tests -exec dirname {} \;); do
echo "Running tests for: \"$i\""
terraform -chdir="$i" test
echo;
done
terraform test
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
run "missing_group" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/"
}

variables {
path = "."
Expand All @@ -18,6 +21,9 @@ run "missing_group" {

run "missing_kind" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/"
}

variables {
path = "."
Expand All @@ -38,6 +44,9 @@ run "missing_kind" {

run "missing_versions" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/"
}

variables {
path = "."
Expand All @@ -59,6 +68,9 @@ run "missing_versions" {

run "with_invalid_versions" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/"
}

variables {
path = "."
Expand All @@ -82,6 +94,9 @@ run "with_invalid_versions" {

run "with_valid_versions" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/"
}

variables {
path = "."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
run "without_items" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/array/"
}

variables {
metadata_name = "test"
Expand All @@ -17,6 +20,9 @@ run "without_items" {

run "without_minItems_and_maxItems_and_with_bool_items" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/array/"
}

variables {
metadata_name = "test"
Expand Down Expand Up @@ -51,6 +57,9 @@ run "without_minItems_and_maxItems_and_with_bool_items" {

run "without_minItems_and_maxItems_and_with_string_items" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/array/"
}

variables {
metadata_name = "test"
Expand Down Expand Up @@ -89,6 +98,9 @@ run "without_minItems_and_maxItems_and_with_string_items" {

run "without_minItems_and_maxItems_and_with_integer_items" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/array/"
}

variables {
metadata_name = "test"
Expand Down Expand Up @@ -127,6 +139,9 @@ run "without_minItems_and_maxItems_and_with_integer_items" {

run "without_minItems_and_maxItems_and_with_reduced_object_items" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/array/"
}

variables {
metadata_name = "test"
Expand Down Expand Up @@ -177,6 +192,9 @@ run "without_minItems_and_maxItems_and_with_reduced_object_items" {

run "with_minItems" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/array/"
}

variables {
metadata_name = "test"
Expand Down Expand Up @@ -212,6 +230,9 @@ run "with_minItems" {

run "with_minLength_and_maxItems" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/array/"
}

variables {
metadata_name = "test"
Expand Down Expand Up @@ -248,6 +269,9 @@ run "with_minLength_and_maxItems" {

run "with_invalid_minItems_and_maxItems" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/array/"
}

variables {
metadata_name = "test"
Expand All @@ -270,6 +294,9 @@ run "with_invalid_minItems_and_maxItems" {

run "with_string_minItems" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/array/"
}

variables {
metadata_name = "test"
Expand All @@ -291,6 +318,9 @@ run "with_string_minItems" {

run "with_string_maxItems" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/array/"
}

variables {
metadata_name = "test"
Expand All @@ -312,6 +342,9 @@ run "with_string_maxItems" {

run "with_invalid_minItems_value" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/array/"
}

variables {
metadata_name = "test"
Expand All @@ -333,6 +366,9 @@ run "with_invalid_minItems_value" {

run "with_invalid_maxItems_value" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/array/"
}

variables {
metadata_name = "test"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
run "without_minimum_and_maximum" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/integer"
}

variables {
metadata_name = "test"
Expand All @@ -26,6 +29,9 @@ run "without_minimum_and_maximum" {

run "with_minimum" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/integer"
}

variables {
metadata_name = "test"
Expand Down Expand Up @@ -53,6 +59,9 @@ run "with_minimum" {

run "with_minimum_and_maximum" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/integer"
}

variables {
metadata_name = "test"
Expand Down Expand Up @@ -81,6 +90,9 @@ run "with_minimum_and_maximum" {

run "with_invalid_minimum_and_maximum" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/integer"
}

variables {
metadata_name = "test"
Expand All @@ -100,6 +112,9 @@ run "with_invalid_minimum_and_maximum" {

run "with_string_minimum" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/integer"
}

variables {
metadata_name = "test"
Expand All @@ -118,6 +133,9 @@ run "with_string_minimum" {

run "with_string_maximum" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/integer"
}

variables {
metadata_name = "test"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
run "without_properties" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/object"
}

variables {
metadata_name = "test"
Expand All @@ -17,6 +20,9 @@ run "without_properties" {

run "with_invalid_properties" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/object"
}

variables {
metadata_name = "test"
Expand All @@ -35,6 +41,9 @@ run "with_invalid_properties" {

run "with_properties_missing_type" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/object"
}

variables {
metadata_name = "test"
Expand All @@ -55,6 +64,9 @@ run "with_properties_missing_type" {

run "with_properties_invalid_type" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/object"
}

variables {
metadata_name = "test"
Expand All @@ -77,6 +89,9 @@ run "with_properties_invalid_type" {

run "with_properties" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/object"
}

variables {
metadata_name = "test"
Expand Down
Loading

0 comments on commit 77c6873

Please sign in to comment.