#NEWLINE# @ flaky ( 'FLOC-3341' ) #NEWLINE# @ require_moving_backend #NEWLINE# @ require_cluster ( 2 ) #NEWLINE# def test_dataset_move( self , cluster ) : #NEWLINE# #INDENT# '\n        A dataset can be moved from one node to another.\n\n        All attributes, including the maximum size, are preserved.\n        ' #NEWLINE# waiting_for_create = create_dataset ( self , cluster ) #NEWLINE# def move_dataset( dataset ) : #NEWLINE# #INDENT# dataset_moving = cluster . client . move_dataset ( UUID ( cluster . nodes [ 1 ] . uuid ) , dataset . dataset_id ) #NEWLINE# moved_dataset = dataset . set ( primary = UUID ( cluster . nodes [ 1 ] . uuid ) ) #NEWLINE# dataset_moving . addCallback ( ( lambda dataset : cluster . wait_for_dataset ( moved_dataset ) ) ) #NEWLINE# return dataset_moving #NEWLINE# #UNINDENT# waiting_for_create . addCallback ( move_dataset ) #NEWLINE# return waiting_for_create