-
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.
Backport/UI/feature/make global read only policy non editable/instant…
…ly hardy chamois 2 (#19623) * feat: Change global-read-only policy to non editable (downgraded styles of alerts)
- Loading branch information
1 parent
789affd
commit 407a41e
Showing
9 changed files
with
89 additions
and
14 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 | ||
|
10 changes: 10 additions & 0 deletions
10
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,10 @@ | ||
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