Browse Source

HUE-8825 [oozie] Fix unit test oozie.models2_tests:TestEditor.test_share_workflow

Ying Chen 6 năm trước cách đây
mục cha
commit
8abf9f17c6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      apps/oozie/src/oozie/models2_tests.py

+ 1 - 1
apps/oozie/src/oozie/models2_tests.py

@@ -473,7 +473,7 @@ LIMIT $limit"""))
 
       # other user cannot view document
       response = self.client_not_me.get(reverse('oozie:edit_workflow'), {'uuid': wf_doc.uuid})
-      assert_equal(response.status_code, 401)
+      assert_equal(response.status_code, 500) # 401 error is caught and raise PopupException (500)
 
       # Share write perm by user
       if USE_NEW_EDITOR.get():