Describe the bug
When an invalid YAML string is sent as the value of client_config or clientConfig in deployment location properties, no errors were raised after a PUT/POST request to deploymentLocations API. The wrong properties can only be spotted when creating a resource in the faulty location - kubedriver logs throw error code 500 'str' object has no attribute 'get'
To Reproduce
Edit deployment location and in Infrastructure-specific Properties fill in an invalid property.
Expected behavior
There should be some validation and the request shouldn't go through.
Environment
- Version: 2.0.2
- Stratoss LM: 2.2.0-x
- kubedriver: 0.0.4
Describe the bug
When an invalid YAML string is sent as the value of
client_configorclientConfigin deployment location properties, no errors were raised after a PUT/POST request to deploymentLocations API. The wrong properties can only be spotted when creating a resource in the faulty location - kubedriver logs throw error code 500'str' object has no attribute 'get'To Reproduce
Edit deployment location and in
Infrastructure-specific Propertiesfill in an invalid property.Expected behavior
There should be some validation and the request shouldn't go through.
Environment