Skip to content

Commit

Permalink
tests that fail because of #4129
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Bush <mbbush@gmail.com>
  • Loading branch information
mbbush committed Jul 24, 2023
1 parent 772e4a6 commit 7c9bab1
Showing 1 changed file with 28 additions and 14 deletions.
42 changes: 28 additions & 14 deletions internal/xcrd/crd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ func TestForCompositeResource(t *testing.T) {
],
"properties": {
"spec": {
"description": "Specification of the resource.",
"required": [
"storageGB",
"engineVersion"
Expand All @@ -100,7 +101,8 @@ func TestForCompositeResource(t *testing.T) {
"type": "string"
},
"storageGB": {
"type": "integer"
"type": "integer",
"description": "Pretend this is useful."
}
},
"type": "object"
Expand All @@ -111,10 +113,12 @@ func TestForCompositeResource(t *testing.T) {
"type": "string"
}
},
"type": "object"
"type": "object",
"description": "Status of the resource."
}
},
"type": "object"
"type": "object",
"description": "What the resource is for."
}`

d := &v1.CompositeResourceDefinition{
Expand Down Expand Up @@ -193,6 +197,7 @@ func TestForCompositeResource(t *testing.T) {
Schema: &extv1.CustomResourceValidation{
OpenAPIV3Schema: &extv1.JSONSchemaProps{
Type: "object",
Description: "What the resource is for.",
Required: []string{"spec"},
Properties: map[string]extv1.JSONSchemaProps{
"apiVersion": {
Expand All @@ -209,9 +214,10 @@ func TestForCompositeResource(t *testing.T) {
"spec": {
Type: "object",
Required: []string{"storageGB", "engineVersion"},
Description: "Specification of the resource.",
Properties: map[string]extv1.JSONSchemaProps{
// From CRDSpecTemplate.Validation
"storageGB": {Type: "integer"},
"storageGB": {Type: "integer", Description: "Pretend this is useful."},
"engineVersion": {
Type: "string",
Enum: []extv1.JSON{
Expand Down Expand Up @@ -356,6 +362,7 @@ func TestForCompositeResource(t *testing.T) {
},
"status": {
Type: "object",
Description: "Status of the resource.",
Properties: map[string]extv1.JSONSchemaProps{
"phase": {Type: "string"},

Expand Down Expand Up @@ -522,6 +529,7 @@ func TestForCompositeResourceClaim(t *testing.T) {
{
"properties": {
"spec": {
"description": "Specification of the resource.",
"required": [
"storageGB",
"engineVersion"
Expand All @@ -535,21 +543,24 @@ func TestForCompositeResourceClaim(t *testing.T) {
"type": "string"
},
"storageGB": {
"type": "integer"
"type": "integer",
"description": "Pretend this is useful."
}
},
"type": "object"
},
"status": {
"properties": {
"phase": {
"type": "string"
}
},
"type": "object"
}
"properties": {
"phase": {
"type": "string"
}
},
"type": "object",
"description": "Status of the resource."
}
},
"type": "object"
"type": "object",
"description": "Description of the resource."
}`

d := &v1.CompositeResourceDefinition{
Expand Down Expand Up @@ -636,6 +647,7 @@ func TestForCompositeResourceClaim(t *testing.T) {
OpenAPIV3Schema: &extv1.JSONSchemaProps{
Type: "object",
Required: []string{"spec"},
Description: "Description of the resource.",
Properties: map[string]extv1.JSONSchemaProps{
"apiVersion": {
Type: "string",
Expand All @@ -651,9 +663,10 @@ func TestForCompositeResourceClaim(t *testing.T) {
"spec": {
Type: "object",
Required: []string{"storageGB", "engineVersion"},
Description: "Specification of the resource.",
Properties: map[string]extv1.JSONSchemaProps{
// From CRDSpecTemplate.Validation
"storageGB": {Type: "integer"},
"storageGB": {Type: "integer", Description: "Pretend this is useful."},
"engineVersion": {
Type: "string",
Enum: []extv1.JSON{
Expand Down Expand Up @@ -772,6 +785,7 @@ func TestForCompositeResourceClaim(t *testing.T) {
},
"status": {
Type: "object",
Description: "Status of the resource.",
Properties: map[string]extv1.JSONSchemaProps{
"phase": {Type: "string"},

Expand Down

0 comments on commit 7c9bab1

Please sign in to comment.