Skip to content

Commit db88eaa

Browse files
committed
MB-63214: Re-enable SamlTests for cbas
Change-Id: Ibec3187fe622ba7de78daad1e9143c1f2c4999a0 Reviewed-on: https://review.couchbase.org/c/ns_server/+/216592 Tested-by: Neelima Premsankar <[email protected]> Well-Formed: Restriction Checker Well-Formed: Build Bot <[email protected]> Reviewed-by: Hussain Towaileb <[email protected]>
1 parent d19e642 commit db88eaa

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

cluster_tests/testsets/saml_tests.py

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
bucket = "test"
6767

6868
class SamlTests(testlib.BaseTestSet):
69-
services_to_run = [Service.QUERY, Service.BACKUP]
69+
services_to_run = [Service.QUERY, Service.BACKUP, Service.CBAS]
7070

7171
@staticmethod
7272
def requirements():
@@ -552,14 +552,14 @@ def groups_and_roles_attributes_test(self):
552552
# Create analytics collection in test._default._default. This will
553553
# fail - we don't have cluster.analytics!manage. Analytics and full
554554
# admin roles have the permission (see admin_test).
555-
# r = ui_request('post', self.cluster.connected_nodes[0],
556-
# '/_p/cbas/query/service',
557-
# session,
558-
# data={'statement':
559-
# 'alter collection '
560-
# f'`{bucket}`.`_default`.`_default` '
561-
# 'enable analytics;'},
562-
# expected_code=403)
555+
r = ui_request('post', self.cluster.connected_nodes[0],
556+
'/_p/cbas/query/service',
557+
session,
558+
data={'statement':
559+
'alter collection '
560+
f'`{bucket}`.`_default`.`_default` '
561+
'enable analytics;'},
562+
expected_code=403)
563563

564564
# Exercise goxdcr_rest:proxy(), which also populates cb-on-behalf
565565
# headers. (The previous test cases populate cb-on-behalf headers in
@@ -617,22 +617,22 @@ def groups_and_roles_admin_test(self):
617617
session, expected_code=200)
618618

619619
# Create analytics collection in test._default._default.
620-
# r = ui_request('post', self.cluster.connected_nodes[0],
621-
# '/_p/cbas/query/service',
622-
# session,
623-
# data={'statement':
624-
# 'alter collection '
625-
# f'`{bucket}`.`_default`.`_default` '
626-
# 'enable analytics;'},
627-
# expected_code=200)
620+
r = ui_request('post', self.cluster.connected_nodes[0],
621+
'/_p/cbas/query/service',
622+
session,
623+
data={'statement':
624+
'alter collection '
625+
f'`{bucket}`.`_default`.`_default` '
626+
'enable analytics;'},
627+
expected_code=200)
628628

629629
# Query analytics collections. They should exist.
630-
# r = ui_request('post', self.cluster.connected_nodes[0],
631-
# '/_p/cbas/query/service',
632-
# session,
633-
# data={'statement':
634-
# f'select * from `{bucket}`'},
635-
# expected_code=200)
630+
r = ui_request('post', self.cluster.connected_nodes[0],
631+
'/_p/cbas/query/service',
632+
session,
633+
data={'statement':
634+
f'select * from `{bucket}`'},
635+
expected_code=200)
636636

637637
# Successfull authentication, but user doesn't have access to UI
638638
def access_denied_test(self):

0 commit comments

Comments
 (0)