summaryrefslogtreecommitdiffstats
path: root/cts/cli/regression.access_render.exp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 13:39:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 13:39:28 +0000
commit924f5ea83e48277e014ebf0d19a27187cb93e2f7 (patch)
tree75920a275bba045f6d108204562c218a9a26ea15 /cts/cli/regression.access_render.exp
parentAdding upstream version 2.1.7. (diff)
downloadpacemaker-upstream.tar.xz
pacemaker-upstream.zip
Adding upstream version 2.1.8~rc1.upstream/2.1.8_rc1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'cts/cli/regression.access_render.exp')
-rw-r--r--cts/cli/regression.access_render.exp46
1 files changed, 26 insertions, 20 deletions
diff --git a/cts/cli/regression.access_render.exp b/cts/cli/regression.access_render.exp
index 37f093d..d818b65 100644
--- a/cts/cli/regression.access_render.exp
+++ b/cts/cli/regression.access_render.exp
@@ -1,22 +1,22 @@
Created new pacemaker configuration
-Setting up shadow instance
-A new shadow instance was created. To begin using it paste the following into your shell:
- CIB_shadow=cts-cli ; export CIB_shadow
+A new shadow instance was created. To begin using it, enter the following into your shell:
+ export CIB_shadow=cts-cli
=#=#=#= Begin test: Configure some ACLs =#=#=#=
=#=#=#= Current cib after: Configure some ACLs =#=#=#=
-<cib epoch="1" num_updates="0" admin_epoch="0">
+<cib epoch="2" num_updates="0" admin_epoch="0">
<configuration>
<crm_config/>
<nodes/>
<resources/>
<constraints/>
<acls>
- <acl_role id="role-deny-acls">
+ <acl_role id="role-deny-acls-write-resources">
<acl_permission id="deny-acls" kind="deny" xpath="/cib/configuration/acls"/>
+ <acl_permission id="write-resources" kind="write" xpath="/cib/configuration/resources"/>
<acl_permission id="read-rest" kind="read" xpath="/cib"/>
</acl_role>
<acl_target id="tony">
- <role id="role-deny-acls"/>
+ <role id="role-deny-acls-write-resources"/>
</acl_target>
</acls>
</configuration>
@@ -26,7 +26,7 @@ A new shadow instance was created. To begin using it paste the following into y
* Passed: cibadmin - Configure some ACLs
=#=#=#= Begin test: Enable ACLs =#=#=#=
=#=#=#= Current cib after: Enable ACLs =#=#=#=
-<cib epoch="2" num_updates="0" admin_epoch="0">
+<cib epoch="3" num_updates="0" admin_epoch="0">
<configuration>
<crm_config>
<cluster_property_set id="cib-bootstrap-options">
@@ -37,12 +37,13 @@ A new shadow instance was created. To begin using it paste the following into y
<resources/>
<constraints/>
<acls>
- <acl_role id="role-deny-acls">
+ <acl_role id="role-deny-acls-write-resources">
<acl_permission id="deny-acls" kind="deny" xpath="/cib/configuration/acls"/>
+ <acl_permission id="write-resources" kind="write" xpath="/cib/configuration/resources"/>
<acl_permission id="read-rest" kind="read" xpath="/cib"/>
</acl_role>
<acl_target id="tony">
- <role id="role-deny-acls"/>
+ <role id="role-deny-acls-write-resources"/>
</acl_target>
</acls>
</configuration>
@@ -52,7 +53,7 @@ A new shadow instance was created. To begin using it paste the following into y
* Passed: crm_attribute - Enable ACLs
=#=#=#= Begin test: An instance of ACLs render (into color) =#=#=#=
<!-- ACLs as evaluated for user tony -->
-\x1b[34m<cib epoch="2" num_updates="0" admin_epoch="0">
+\x1b[34m<cib epoch="3" num_updates="0" admin_epoch="0">
\x1b[34m<configuration>
\x1b[34m<crm_config>
\x1b[34m<cluster_property_set id="cib-bootstrap-options">
@@ -60,15 +61,16 @@ A new shadow instance was created. To begin using it paste the following into y
\x1b[34m</cluster_property_set>
\x1b[34m</crm_config>
\x1b[34m<nodes/>
- \x1b[34m<resources/>
+ \x1b[32m<resources/>
\x1b[34m<constraints/>
\x1b[31m<acls>
- \x1b[31m<acl_role id="role-deny-acls">
+ \x1b[31m<acl_role id="role-deny-acls-write-resources">
\x1b[31m<acl_permission id="deny-acls" kind="deny" xpath="/cib/configuration/acls"/>
+ \x1b[31m<acl_permission id="write-resources" kind="write" xpath="/cib/configuration/resources"/>
\x1b[31m<acl_permission id="read-rest" kind="read" xpath="/cib"/>
\x1b[31m</acl_role>
\x1b[31m<acl_target id="tony">
- \x1b[31m<role id="role-deny-acls"/>
+ \x1b[31m<role id="role-deny-acls-write-resources"/>
\x1b[31m</acl_target>
\x1b[31m</acls>
\x1b[34m</configuration>
@@ -78,7 +80,7 @@ A new shadow instance was created. To begin using it paste the following into y
* Passed: cibadmin - An instance of ACLs render (into color)
=#=#=#= Begin test: An instance of ACLs render (into namespacing) =#=#=#=
<!-- ACLs as evaluated for user tony -->
-<pcmk-access-readable:cib epoch="2" num_updates="0" admin_epoch="0" xmlns:pcmk-access-readable="http://clusterlabs.org/ns/pacemaker/access/readable" xmlns:pcmk-access-denied="http://clusterlabs.org/ns/pacemaker/access/denied">
+<pcmk-access-readable:cib epoch="3" num_updates="0" admin_epoch="0" xmlns:pcmk-access-writable="http://clusterlabs.org/ns/pacemaker/access/writable" xmlns:pcmk-access-readable="http://clusterlabs.org/ns/pacemaker/access/readable" xmlns:pcmk-access-denied="http://clusterlabs.org/ns/pacemaker/access/denied">
<configuration>
<crm_config>
<cluster_property_set id="cib-bootstrap-options">
@@ -86,15 +88,16 @@ A new shadow instance was created. To begin using it paste the following into y
</cluster_property_set>
</crm_config>
<nodes/>
- <resources/>
+ <pcmk-access-writable:resources/>
<constraints/>
<pcmk-access-denied:acls>
- <acl_role id="role-deny-acls">
+ <acl_role id="role-deny-acls-write-resources">
<acl_permission id="deny-acls" kind="deny" xpath="/cib/configuration/acls"/>
+ <acl_permission id="write-resources" kind="write" xpath="/cib/configuration/resources"/>
<acl_permission id="read-rest" kind="read" xpath="/cib"/>
</acl_role>
<acl_target id="tony">
- <role id="role-deny-acls"/>
+ <role id="role-deny-acls-write-resources"/>
</acl_target>
</pcmk-access-denied:acls>
</configuration>
@@ -105,7 +108,7 @@ A new shadow instance was created. To begin using it paste the following into y
=#=#=#= Begin test: An instance of ACLs render (into text) =#=#=#=
<!-- ACLs as evaluated for user tony -->
vvv---[ READABLE ]---vvv
-<cib epoch="2" num_updates="0" admin_epoch="0">
+<cib epoch="3" num_updates="0" admin_epoch="0">
<configuration>
<crm_config>
<cluster_property_set id="cib-bootstrap-options">
@@ -113,17 +116,20 @@ vvv---[ READABLE ]---vvv
</cluster_property_set>
</crm_config>
<nodes/>
+
+ vvv---[ WRITABLE ]---vvv
<resources/>
<constraints/>
vvv---[ ~DENIED~ ]---vvv
<acls>
- <acl_role id="role-deny-acls">
+ <acl_role id="role-deny-acls-write-resources">
<acl_permission id="deny-acls" kind="deny" xpath="/cib/configuration/acls"/>
+ <acl_permission id="write-resources" kind="write" xpath="/cib/configuration/resources"/>
<acl_permission id="read-rest" kind="read" xpath="/cib"/>
</acl_role>
<acl_target id="tony">
- <role id="role-deny-acls"/>
+ <role id="role-deny-acls-write-resources"/>
</acl_target>
</acls>
</configuration>