Closed wcmjunior closed 7 months ago
@VictorGFM , please start reviewing when you have a chance. I will not perform more structural changes and I don't think I will refactor more resources as I was targeting those that are heavily used. I will post the result of my tests later, but so far everything runs perfectly.
@jrich523 , the code analysis is failing for some test IPs we add to the code. Please lmk how to ignore this check for those cases (if possible) to get a clean run.
Issues
13 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
1.0% Duplication on New Code
Description of the change
core
abstractions and improve error handling to avoid the state from getting out of sync when a resource is removed from the control plane:cyral_datalabel
cyral_repository
cyral_repository_access_gateway
cyral_repository_access_rules
cyral_repository_binding
cyral_repository_conf_analysis
cyral_repository_conf_auth
cyral_repository_network_access_policy
cyral_sidecar
cyral_sidecar_credentials
cyral_sidecar_listener
core
package to reuse the code for resources not found and also add new features to handle different errors based on the API description (the later due to some of our APIs not returning proper status codes).Type of change
Checklists
Development
Code review
Testing
Acceptance tests output:
In order to verify the changes in each resource, I performed manual tests for each one of them in the .tf file that follows. The procedure was:
terraform apply
to create all resources;terraform apply
again and make sure it will suggest the creation of the resource again. The command must run without errors.terraform destroy -target=<resource-reference>
and make sure Terraform will inform that the resource may already been removed. The command must run without errors.terraform destroy
and start again from1
with another resource.