This adds the possibility to order a KMS and create credentials and service keys.
I broke down the PR into multiple commits for the datasource/resources/tests. So it should be possible to review/test these independently.
I had to update the terraform-plugin-testing to v1.10 to be able to use the [compare](https://developer.hashicorp.com/terraform/plugin/testing/acceptance-tests/state-checks/resource#comparevalue-state-check) feature in the tests.
Type of change
[x ] New feature (non-breaking change which adds functionality)
How Has This Been Tested?
[ ] Test A: make testacc TESTARGS="-run TestAccOkms"
[ ] Test B: OVH_OKMS=<kms id> make testacc TESTARGS="-run TestAccOkmsImport
[ ] Test C: OVH_OKMS=<kms id> OVH_OKMS_CREDENTIAL=<cred id> make testacc TESTARGS="-run TestAccOkmsCredImport
(The last 2 tests need to have a kms and a credential already created on the account used for the tests, so they are skipped in the CDS pipeline)
Checklist:
[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings or issues
[ ] I have added acceptance tests that prove my fix is effective or that my feature works
[ ] New and existing acceptance tests pass locally with my changes
[ ] I ran succesfully go mod vendor if I added or modify go.mod file
Description
This adds the possibility to order a KMS and create credentials and service keys.
I broke down the PR into multiple commits for the datasource/resources/tests. So it should be possible to review/test these independently.
I had to update the terraform-plugin-testing to v1.10 to be able to use the
[compare](https://developer.hashicorp.com/terraform/plugin/testing/acceptance-tests/state-checks/resource#comparevalue-state-check)
feature in the tests.Type of change
How Has This Been Tested?
make testacc TESTARGS="-run TestAccOkms"
OVH_OKMS=<kms id> make testacc TESTARGS="-run TestAccOkmsImport
OVH_OKMS=<kms id> OVH_OKMS_CREDENTIAL=<cred id> make testacc TESTARGS="-run TestAccOkmsCredImport
(The last 2 tests need to have a kms and a credential already created on the account used for the tests, so they are skipped in the CDS pipeline)
Checklist:
go mod vendor
if I added or modifygo.mod
file