gluster / glusto-tests

Functional test framework for glusterfs.
GNU General Public License v3.0
19 stars 43 forks source link

[TestFix] Fix test_verify_permissions_on_root_dir_when_brick_down.py #81

Closed pranavprakash20 closed 3 years ago

pranavprakash20 commented 3 years ago

Problem: The test was failing due to the following issues:

[1] File permissions were set using self.clients[0] whereas the mount was done using self.mounts[0]. The data in these two lists are identical but the position can change, which causes 'directory not found' issue while setting permissions.

[2] bring_bricks_online method access lists of bricks which are down.

Solution:

[1] Replace self.clients[0] with self.mounts[0]

[2] Sent list of bricks to the method

Signed-off-by: Pranav prprakas@redhat.com

balakreddy commented 3 years ago

Merging the patch, as it is time-critical for ci run, and got three approvals.