Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1/7] SchemaProcessor: integer/v0 #23

Merged
merged 8 commits into from
Nov 4, 2024
9 changes: 5 additions & 4 deletions CustomResourceDefinition/v1alpha1/array/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module "string" {
source = "../string"
source = "../../../schemaProcessor/string/v0/processor"
count = try(var.manifest.items.type == "string", false) ? 1 : 0

metadata_name = var.metadata_name
Expand All @@ -9,7 +9,7 @@ module "string" {
}

module "integer" {
source = "../integer"
source = "../../../schemaProcessor/integer/v0/processor"
count = try(var.manifest.items.type == "integer", false) ? 1 : 0

metadata_name = var.metadata_name
Expand All @@ -19,8 +19,9 @@ module "integer" {
}

module "bool" {
source = "../bool"
count = try(var.manifest.items.type == "bool", false) ? 1 : 0
source = "../../../schemaProcessor/bool/v0/processor"

count = try(var.manifest.items.type == "bool", false) ? 1 : 0

metadata_name = var.metadata_name
path = var.path
Expand Down
6 changes: 3 additions & 3 deletions CustomResourceDefinition/v1alpha1/object/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ locals {
}

module "string" {
source = "../string"
source = "../../../schemaProcessor/string/v0/processor"
for_each = toset([for key, value in local.properties : key if try(value.type, null) == "string"])

metadata_name = var.metadata_name
Expand All @@ -13,7 +13,7 @@ module "string" {
}

module "integer" {
source = "../integer"
source = "../../../schemaProcessor/integer/v0/processor"
for_each = toset([for key, value in local.properties : key if try(value.type, null) == "integer"])

metadata_name = var.metadata_name
Expand All @@ -23,7 +23,7 @@ module "integer" {
}

module "bool" {
source = "../bool"
source = "../../../schemaProcessor/bool/v0/processor"
for_each = toset([for key, value in local.properties : key if try(value.type, null) == "bool"])

metadata_name = var.metadata_name
Expand Down
6 changes: 3 additions & 3 deletions CustomResourceDefinition/v1alpha1/reduced_array/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module "string" {
source = "../string"
source = "../../../schemaProcessor/string/v0/processor"
count = try(var.manifest.items.type == "string", false) ? 1 : 0

metadata_name = var.metadata_name
Expand All @@ -9,7 +9,7 @@ module "string" {
}

module "integer" {
source = "../integer"
source = "../../../schemaProcessor/integer/v0/processor"
count = try(var.manifest.items.type == "integer", false) ? 1 : 0

metadata_name = var.metadata_name
Expand All @@ -19,7 +19,7 @@ module "integer" {
}

module "bool" {
source = "../bool"
source = "../../../schemaProcessor/bool/v0/processor"
count = try(var.manifest.items.type == "bool", false) ? 1 : 0

metadata_name = var.metadata_name
Expand Down
6 changes: 3 additions & 3 deletions CustomResourceDefinition/v1alpha1/reduced_object/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ locals {
}

module "string" {
source = "../string"
source = "../../../schemaProcessor/string/v0/processor"
for_each = toset([for key, value in local.properties : key if try(value.type, null) == "string"])

metadata_name = var.metadata_name
Expand All @@ -13,7 +13,7 @@ module "string" {
}

module "integer" {
source = "../integer"
source = "../../../schemaProcessor/integer/v0/processor"
for_each = toset([for key, value in local.properties : key if try(value.type, null) == "integer"])

metadata_name = var.metadata_name
Expand All @@ -23,7 +23,7 @@ module "integer" {
}

module "bool" {
source = "../bool"
source = "../../../schemaProcessor/bool/v0/processor"
for_each = toset([for key, value in local.properties : key if try(value.type, null) == "bool"])

metadata_name = var.metadata_name
Expand Down
6 changes: 3 additions & 3 deletions CustomResourceDefinition/v1alpha1/root_object/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ locals {
}

module "string" {
source = "../string"
source = "../../../schemaProcessor/string/v0/processor"
for_each = toset([for key, value in local.properties : key if try(value.type, null) == "string"])

metadata_name = var.metadata_name
Expand All @@ -13,7 +13,7 @@ module "string" {
}

module "integer" {
source = "../integer"
source = "../../../schemaProcessor/integer/v0/processor"
for_each = toset([for key, value in local.properties : key if try(value.type, null) == "integer"])

metadata_name = var.metadata_name
Expand All @@ -23,7 +23,7 @@ module "integer" {
}

module "bool" {
source = "../bool"
source = "../../../schemaProcessor/bool/v0/processor"
for_each = toset([for key, value in local.properties : key if try(value.type, null) == "bool"])

metadata_name = var.metadata_name
Expand Down
2 changes: 1 addition & 1 deletion schemaValidation/bool/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module "v0" {
source = "./v0"
source = "../../schemaProcessor/bool/v0/validator/"
count = var.schema.version == "v0" ? 1 : 0

metadata_name = var.metadata_name
Expand Down
2 changes: 1 addition & 1 deletion schemaValidation/integer/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module "v0" {
source = "./v0"
source = "../../schemaProcessor/integer/v0/validator/"
count = var.schema.version == "v0" ? 1 : 0

metadata_name = var.metadata_name
Expand Down
2 changes: 1 addition & 1 deletion schemaValidation/string/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module "v0" {
source = "./v0"
source = "../../schemaProcessor/string/v0/validator/"
count = var.schema.version == "v0" ? 1 : 0

metadata_name = var.metadata_name
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
run "missing_value" {
command = plan
module {
source = "./schemaValidation/bool/v0/"
source = "./schemaProcessor/bool/v0/validator/"
}

variables {
Expand All @@ -25,7 +25,7 @@ run "missing_value" {
run "with_invalid_value" {
command = plan
module {
source = "./schemaValidation/bool/v0/"
source = "./schemaProcessor/bool/v0/validator/"
}

variables {
Expand All @@ -49,7 +49,7 @@ run "with_invalid_value" {
run "with_valid_value" {
command = plan
module {
source = "./schemaValidation/bool/v0/"
source = "./schemaProcessor/bool/v0/validator/"
}

variables {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
run "without_minimum_and_maximum" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/integer"
source = "./schemaProcessor/integer/v0/processor"
}

variables {
Expand Down Expand Up @@ -30,7 +30,7 @@ run "without_minimum_and_maximum" {
run "with_minimum" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/integer"
source = "./schemaProcessor/integer/v0/processor"
}

variables {
Expand Down Expand Up @@ -60,7 +60,8 @@ run "with_minimum" {
run "with_minimum_and_maximum" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/integer"

source = "./schemaProcessor/integer/v0/processor"
}

variables {
Expand Down Expand Up @@ -91,7 +92,7 @@ run "with_minimum_and_maximum" {
run "with_invalid_minimum_and_maximum" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/integer"
source = "./schemaProcessor/integer/v0/processor"
}

variables {
Expand All @@ -113,7 +114,7 @@ run "with_invalid_minimum_and_maximum" {
run "with_string_minimum" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/integer"
source = "./schemaProcessor/integer/v0/processor"
}

variables {
Expand All @@ -134,7 +135,7 @@ run "with_string_minimum" {
run "with_string_maximum" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/integer"
source = "./schemaProcessor/integer/v0/processor"
}

variables {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
run "missing_value" {
command = plan
module {
source = "./schemaValidation/integer/v0/"
source = "./schemaProcessor/integer/v0/validator/"
}

variables {
Expand All @@ -28,7 +28,7 @@ run "missing_value" {
run "with_invalid_value" {
command = plan
module {
source = "./schemaValidation/integer/v0/"
source = "./schemaProcessor/integer/v0/validator/"
}

variables {
Expand All @@ -55,7 +55,7 @@ run "with_invalid_value" {
run "with_wrong_minLegnth" {
command = plan
module {
source = "./schemaValidation/integer/v0/"
source = "./schemaProcessor/integer/v0/validator/"
}

variables {
Expand All @@ -82,7 +82,7 @@ run "with_wrong_minLegnth" {
run "with_wrong_maxLegnth" {
command = plan
module {
source = "./schemaValidation/integer/v0/"
source = "./schemaProcessor/integer/v0/validator/"
}

variables {
Expand Down Expand Up @@ -110,7 +110,7 @@ run "with_wrong_maxLegnth" {
run "with_valid_value" {
command = plan
module {
source = "./schemaValidation/integer/v0/"
source = "./schemaProcessor/integer/v0/validator/"
}

variables {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
run "without_minLength_and_maxLength" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/string"
source = "./schemaProcessor/string/v0/processor"
}

variables {
Expand Down Expand Up @@ -30,7 +30,7 @@ run "without_minLength_and_maxLength" {
run "with_minLength" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/string"
source = "./schemaProcessor/string/v0/processor"
}

variables {
Expand Down Expand Up @@ -60,7 +60,7 @@ run "with_minLength" {
run "with_minLength_and_maxLength" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/string"
source = "./schemaProcessor/string/v0/processor"
}

variables {
Expand Down Expand Up @@ -91,7 +91,7 @@ run "with_minLength_and_maxLength" {
run "with_invalid_minLength_and_maxLength" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/string"
source = "./schemaProcessor/string/v0/processor"
}

variables {
Expand All @@ -113,7 +113,7 @@ run "with_invalid_minLength_and_maxLength" {
run "with_string_minLength" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/string"
source = "./schemaProcessor/string/v0/processor"
}

variables {
Expand All @@ -134,7 +134,7 @@ run "with_string_minLength" {
run "with_string_maxLength" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/string"
source = "./schemaProcessor/string/v0/processor"
}

variables {
Expand All @@ -155,7 +155,7 @@ run "with_string_maxLength" {
run "with_invalid_minLength_value" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/string"
source = "./schemaProcessor/string/v0/processor"
}

variables {
Expand All @@ -176,7 +176,7 @@ run "with_invalid_minLength_value" {
run "with_invalid_maxLength_value" {
command = plan
module {
source = "./CustomResourceDefinition/v1alpha1/string"
source = "./schemaProcessor/string/v0/processor"
}

variables {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
run "missing_value" {
command = plan
module {
source = "./schemaValidation/string/v0/"
source = "./schemaProcessor/string/v0/validator/"
}

variables {
Expand All @@ -28,7 +28,7 @@ run "missing_value" {
run "with_invalid_value" {
command = plan
module {
source = "./schemaValidation/string/v0/"
source = "./schemaProcessor/string/v0/validator/"
}

variables {
Expand All @@ -55,7 +55,7 @@ run "with_invalid_value" {
run "with_wrong_minLegnth" {
command = plan
module {
source = "./schemaValidation/string/v0/"
source = "./schemaProcessor/string/v0/validator/"
}

variables {
Expand All @@ -82,7 +82,7 @@ run "with_wrong_minLegnth" {
run "with_wrong_maxLegnth" {
command = plan
module {
source = "./schemaValidation/string/v0/"
source = "./schemaProcessor/string/v0/validator/"
}

variables {
Expand Down Expand Up @@ -110,7 +110,7 @@ run "with_wrong_maxLegnth" {
run "with_valid_value" {
command = plan
module {
source = "./schemaValidation/string/v0/"
source = "./schemaProcessor/string/v0/validator/"
}

variables {
Expand Down