#NEWLINE# def test_cluster_bond_meta_field_exists_and_has_proper_value_ovs( self ) : #NEWLINE# #INDENT# ovs_meta = [ { #NEWLINE# #INDENT# 'values' : [ 'active-backup' , 'balance-slb' , 'lacp-balance-tcp' ] , #NEWLINE# 'condition' : 'interface:pxe == false' , #NEWLINE# #UNINDENT# } ] #NEWLINE# result = db . execute ( sa . select ( [ self . meta . tables [ 'releases' ] . c . networks_metadata ] ) . where ( ( self . meta . tables [ 'releases' ] . c . name == 'test_name_2' ) ) ) #NEWLINE# bond_meta = jsonutils . loads ( result . fetchone ( ) [ 0 ] ) [ 'bonding' ] #NEWLINE# self . assertEqual ( bond_meta [ 'properties' ] [ 'ovs' ] [ 'mode' ] , ovs_meta )