]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Fix a broken ECP controller test 25363/head
authorZack Cerza <zack@redhat.com>
Sat, 1 Dec 2018 01:00:03 +0000 (18:00 -0700)
committerZack Cerza <zack@redhat.com>
Sat, 1 Dec 2018 01:00:03 +0000 (18:00 -0700)
The change in b3e69a96093 broke the test's assumption that the endpoint
wouldn't be readable by block-manager. It doesn't looks as though that's
actually problematic for the ECP controller, so just update the test to
use rgw-manager instead.

Signed-off-by: Zack Cerza <zack@redhat.com>
qa/tasks/mgr/dashboard/test_erasure_code_profile.py

index 2a9bd2e5a0a5e45909f6ff01d51ce805ffa427e4..955e44dd9105d459ba3bbeb9233c202230ea1c49 100644 (file)
@@ -11,7 +11,7 @@ class ECPTest(DashboardTestCase):
 
     AUTH_ROLES = ['pool-manager']
 
-    @DashboardTestCase.RunAs('test', 'test', ['block-manager'])
+    @DashboardTestCase.RunAs('test', 'test', ['rgw-manager'])
     def test_read_access_permissions(self):
         self._get('/api/erasure_code_profile')
         self.assertStatus(403)