-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Change global-read-only policy to non editable (#18602)
- Loading branch information
1 parent
a698142
commit 82c2281
Showing
9 changed files
with
94 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
ui/packages/consul-ui/tests/acceptance/dc/acls/policies/view-read-only.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@setupApplicationTest | ||
Feature: dc / acls / policies / view read-only policy: Readonly management policy | ||
Background: | ||
Given 1 datacenter model with the value "datacenter" | ||
And 1 policy model from yaml | ||
--- | ||
ID: 00000000-0000-0000-0000-000000000002 | ||
--- | ||
Scenario: | ||
When I visit the policy page for yaml | ||
--- | ||
dc: datacenter | ||
policy: 00000000-0000-0000-0000-000000000002 | ||
--- | ||
Then the url should be /datacenter/acls/policies/00000000-0000-0000-0000-000000000002 | ||
Then I see the text "View Policy" in "h1" | ||
Then I don't see confirmDelete | ||
Then I don't see cancel | ||
And I see tokens | ||
|
15 changes: 15 additions & 0 deletions
15
ui/packages/consul-ui/tests/acceptance/steps/dc/acls/policies/view-read-only-steps.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* Copyright (c) HashiCorp, Inc. | ||
* SPDX-License-Identifier: BUSL-1.1 | ||
*/ | ||
|
||
import steps from '../../../steps'; | ||
|
||
// step definitions that are shared between features should be moved to the | ||
// tests/acceptance/steps/steps.js file | ||
|
||
export default function (assert) { | ||
return steps(assert).then('I should find a file', function () { | ||
assert.ok(true, this.step); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters