fabbricadigitale / scimd

SCIM v2 golang implementation
MIT License
5 stars 1 forks source link

Fix validation tests #22

Closed leogr closed 7 years ago

leogr commented 7 years ago

cc @leodido @samechelon @skryja

--- FAIL: TestResourceTypeValidation (0.00s)
        Error Trace:    resource_type_test.go:59
    Error:          "Key: 'ResourceType.Common.Schemas' Error:Field validation for 'Schemas' failed on the 'gt' tag
                    Key: 'ResourceType.Common.ID' Error:Field validation for 'ID' failed on the 'required' tag
                    Key: 'ResourceType.Common.Meta.Location' Error:Field validation for 'Location' failed on the 'uri' tag
                    Key: 'ResourceType.Common.Meta.ResourceType' Error:Field validation for 'ResourceType' failed on the 'required' tag
                    Key: 'ResourceType.Common.Meta.Created' Error:Field validation for 'Created' failed on the 'required' tag
                    Key: 'ResourceType.Common.Meta.LastModified' Error:Field validation for 'LastModified' failed on the 'required' tag
                    Key: 'ResourceType.Name' Error:Field validation for 'Name' failed on the 'required' tag
                    Key: 'ResourceType.Endpoint' Error:Field validation for 'Endpoint' failed on the 'startswith' tag
                    Key: 'ResourceType.Schema' Error:Field validation for 'Schema' failed on the 'required' tag" should have 3 item(s), but has 9
--- FAIL: TestServiceProviderConfigValidation (0.00s)
        Error Trace:    service_provider_config_test.go:77
    Error:          "Key: 'ServiceProviderConfig.Common.Schemas' Error:Field validation for 'Schemas' failed on the 'gt' tag
                    Key: 'ServiceProviderConfig.Common.ID' Error:Field validation for 'ID' failed on the 'required' tag
                    Key: 'ServiceProviderConfig.Common.Meta.Location' Error:Field validation for 'Location' failed on the 'uri' tag
                    Key: 'ServiceProviderConfig.Common.Meta.ResourceType' Error:Field validation for 'ResourceType' failed on the 'required' tag
                    Key: 'ServiceProviderConfig.Common.Meta.Created' Error:Field validation for 'Created' failed on the 'required' tag
                    Key: 'ServiceProviderConfig.Common.Meta.LastModified' Error:Field validation for 'LastModified' failed on the 'required' tag
                    Key: 'ServiceProviderConfig.Patch.Supported' Error:Field validation for 'Supported' failed on the 'required' tag
                    Key: 'ServiceProviderConfig.Bulk.Supported' Error:Field validation for 'Supported' failed on the 'required' tag
                    Key: 'ServiceProviderConfig.Bulk.MaxOperations' Error:Field validation for 'MaxOperations' failed on the 'required' tag
                    Key: 'ServiceProviderConfig.Bulk.MaxPayloadSize' Error:Field validation for 'MaxPayloadSize' failed on the 'required' tag
                    Key: 'ServiceProviderConfig.Filter.Supported' Error:Field validation for 'Supported' failed on the 'required' tag
                    Key: 'ServiceProviderConfig.Filter.MaxResults' Error:Field validation for 'MaxResults' failed on the 'required' tag
                    Key: 'ServiceProviderConfig.ChangePassword.Supported' Error:Field validation for 'Supported' failed on the 'required' tag
                    Key: 'ServiceProviderConfig.Sort.Supported' Error:Field validation for 'Supported' failed on the 'required' tag
                    Key: 'ServiceProviderConfig.Etag.Supported' Error:Field validation for 'Supported' failed on the 'required' tag
                    Key: 'ServiceProviderConfig.AuthenticationSchemes' Error:Field validation for 'AuthenticationSchemes' failed on the 'required' tag" should have 10 item(s), but has 16