Commit 4327ebb7 authored by Ramon Nou's avatar Ramon Nou
Browse files

reduce needs of malleability test

parent 35e0deef
Loading
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -60,19 +60,18 @@ def test_malleability(gkfwd_daemon_factory, gkfs_client, gkfs_shell):

        assert ret.retval != -1

        ret = gkfs_client.write_validate(file, 64096)
        ret = gkfs_client.write_validate(file, 32096)
        assert ret.retval == 1

    # Create content 

    d02 = gkfwd_daemon_factory.create()
    d03 = gkfwd_daemon_factory.create()
    
    time.sleep(10)
    cmd = gkfs_shell.gkfs_malleability('expand','status')
    assert cmd.exit_code == 0
    assert cmd.stdout.decode() == "No expansion running/finished.\n"
    
    cmd = gkfs_shell.gkfs_malleability('expand','start', timeout=240)
    cmd = gkfs_shell.gkfs_malleability('expand','start', timeout=340)
    assert cmd.stdout.decode() == "Expansion process from 2 nodes to 4 nodes launched...\n"
    assert cmd.exit_code == 0
    
@@ -90,5 +89,5 @@ def test_malleability(gkfwd_daemon_factory, gkfs_client, gkfs_shell):
    d00.shutdown()
    d01.shutdown()
    d02.shutdown()
    d03.shutdown()
    
    
 No newline at end of file