resource/gitlab_project_protected_environment: Allow multiple deploy_access_levels
Description
Closes #1000 (closed)
The functional change is simply the removal of the MaxItems: 1 field from the schema.
I decided to rewrite the tests because of how they were organized by access level type. To reduce duplication with my new test case, it made the most sense to combine them into a single test.
PR Checklist Acknowledgement
-
I acknowledge that all of the following items are true, where applicable: - Resource attributes match 1:1 the names and structure of the API resource in the GitLab API documentation.
-
Examples are updated with:
- A *.tf file for the resource/s with at least one usage example
- A *.sh file for the resource/s with an import example (if applicable)
- New resources have at minimum a basic test with three steps:
- Create the resource
- Update the attributes
- Import the resource
- No new
//lintignorecomments were copied from existing code. (Linter rules are meant to be enforced on new code.)