Skip to content

Commit

Permalink
check tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chkp-omerma committed Nov 19, 2024
1 parent 9f01f6a commit 5eb25d0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions internal/resources/tests/web-api-practice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,11 @@ resource "inext_web_api_practice" %[1]q {
illegal_http_methods = false
}
}
schema_validation {
name = ""
data = ""
size = 0
is_file_exist = false
}
`, name)
}
Expand Down Expand Up @@ -265,8 +270,8 @@ resource "inext_web_api_practice" %[1]q {
schema_validation {
name = %[2]q
data = %[3]q
size = 0
is_file_exist = false
size = 1
is_file_exist = true
}
}
`, name, filename, data)
Expand Down
2 changes: 2 additions & 0 deletions internal/resources/web-api-practice/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ func mapToSchemaValidationInput(schemaValidationMap map[string]any) models.Schem
ret.ID = id.(string)
}

fmt.Printf("schemaValidationMap: %+v\n", schemaValidationMap)

ret.OASSchema = schemaValidationMap["OasSchema"].(string)

return ret
Expand Down

0 comments on commit 5eb25d0

Please sign in to comment.