-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PLAT-99110: Added terraform support for restrict ws admins setting #3243
PLAT-99110: Added terraform support for restrict ws admins setting #3243
Conversation
Can we add the unit test and integration tests (if possible)? |
We also need docs |
Yep, I am adding docs, unit tests and integration tests. Will ping when it is ready for review. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3243 +/- ##
==========================================
+ Coverage 83.59% 83.60% +0.01%
==========================================
Files 171 172 +1
Lines 15444 15466 +22
==========================================
+ Hits 12910 12930 +20
- Misses 1771 1772 +1
- Partials 763 764 +1
|
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestAccRestrictWorkspaceAdminsSetting(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hectorcast-db btw only account admin can modify this setting. Do acceptance tests always run as account admin?
@alexott @hectorcast-db the PR is ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overall LGTM!
One nit comment: do we need to spell out Workspace instead of Ws? or is Ws used widely in terraform codebase?
Changes
Followed instructions in https://docs.google.com/document/d/1tXZCuZ1Vl6F3Syu23jQOaxguavTB3Mz_RugEafxdhik/edit to add terraform support for restrict workspace admins setting.
Tests
make test
run locallydocs/
folderinternal/acceptance