#NEWLINE# def _get_test_cases( self ) : #NEWLINE# #INDENT# cases = super ( ValidationTestCase , self ) . _get_test_cases ( ) #NEWLINE# disable_anti_affinity = { #NEWLINE# #INDENT# 'cluster_configs' : { #NEWLINE# #INDENT# 'general' : { #NEWLINE# #INDENT# 'Require Anti Affinity' : False , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# cases += [ [ None , { #NEWLINE# #INDENT# 'HDFS_JOURNALNODE' : 3 , #NEWLINE# 'ZOOKEEPER_SERVER' : 1 , #NEWLINE# #UNINDENT# } , [ ] , disable_anti_affinity ] , [ rsme , { #NEWLINE# #INDENT# 'HDFS_JOURNALNODE' : 3 , #NEWLINE# 'ZOOKEEPER_SERVER' : 0 , #NEWLINE# #UNINDENT# } , [ ] , disable_anti_affinity ] , [ icce , { #NEWLINE# #INDENT# 'HDFS_JOURNALNODE' : 4 , #NEWLINE# 'ZOOKEEPER_SERVER' : 1 , #NEWLINE# #UNINDENT# } , [ ] , disable_anti_affinity ] , [ icce , { #NEWLINE# #INDENT# 'HDFS_JOURNALNODE' : 2 , #NEWLINE# 'ZOOKEEPER_SERVER' : 1 , #NEWLINE# #UNINDENT# } , [ ] , disable_anti_affinity ] , [ nnce , { #NEWLINE# #INDENT# 'HDFS_JOURNALNODE' : 3 , #NEWLINE# 'ZOOKEEPER_SERVER' : 1 , #NEWLINE# #UNINDENT# } , [ ] , { #NEWLINE# #INDENT# 'anti_affinity' : [ 'HDFS_SECONDARYNAMENODE' ] , #NEWLINE# #UNINDENT# } ] , [ nnce , { #NEWLINE# #INDENT# 'HDFS_JOURNALNODE' : 3 , #NEWLINE# 'ZOOKEEPER_SERVER' : 1 , #NEWLINE# #UNINDENT# } , [ ] , { #NEWLINE# #INDENT# 'anti_affinity' : [ 'HDFS_NAMENODE' ] , #NEWLINE# #UNINDENT# } ] , [ None , { #NEWLINE# #INDENT# 'HDFS_JOURNALNODE' : 3 , #NEWLINE# 'ZOOKEEPER_SERVER' : 1 , #NEWLINE# #UNINDENT# } , [ ] , { #NEWLINE# #INDENT# 'anti_affinity' : [ 'HDFS_NAMENODE' , 'HDFS_SECONDARYNAMENODE' ] , #NEWLINE# #UNINDENT# } ] , [ None , { #NEWLINE# #INDENT# 'YARN_STANDBYRM' : 1 , #NEWLINE# 'ZOOKEEPER_SERVER' : 1 , #NEWLINE# #UNINDENT# } , [ ] , disable_anti_affinity ] , [ icce , { #NEWLINE# #INDENT# 'YARN_STANDBYRM' : 2 , #NEWLINE# 'ZOOKEEPER_SERVER' : 1 , #NEWLINE# #UNINDENT# } , [ ] , disable_anti_affinity ] , [ rsme , { #NEWLINE# #INDENT# 'YARN_STANDBYRM' : 1 , #NEWLINE# 'ZOOKEEPER_SERVER' : 0 , #NEWLINE# #UNINDENT# } , [ ] , disable_anti_affinity ] , [ rmce , { #NEWLINE# #INDENT# 'YARN_STANDBYRM' : 1 , #NEWLINE# 'ZOOKEEPER_SERVER' : 1 , #NEWLINE# #UNINDENT# } , [ ] , { #NEWLINE# #INDENT# 'anti_affinity' : [ 'YARN_RESOURCEMANAGER' ] , #NEWLINE# #UNINDENT# } ] , [ rmce , { #NEWLINE# #INDENT# 'YARN_STANDBYRM' : 1 , #NEWLINE# 'ZOOKEEPER_SERVER' : 1 , #NEWLINE# #UNINDENT# } , [ ] , { #NEWLINE# #INDENT# 'anti_affinity' : [ 'YARN_STANDBYRM' ] , #NEWLINE# #UNINDENT# } ] , [ None , { #NEWLINE# #INDENT# 'YARN_STANDBYRM' : 1 , #NEWLINE# 'ZOOKEEPER_SERVER' : 1 , #NEWLINE# #UNINDENT# } , [ ] , { #NEWLINE# #INDENT# 'anti_affinity' : [ 'YARN_STANDBYRM' , 'YARN_RESOURCEMANAGER' ] , #NEWLINE# #UNINDENT# } ] ] #NEWLINE# cases += [ [ None , { #NEWLINE# #INDENT# 'FLUME_AGENT' : 1 , #NEWLINE# #UNINDENT# } ] , [ icce , { #NEWLINE# #INDENT# 'ZOOKEEPER_SERVER' : 1 , #NEWLINE# 'SENTRY_SERVER' : 2 , #NEWLINE# #UNINDENT# } ] , [ None , { #NEWLINE# #INDENT# 'ZOOKEEPER_SERVER' : 1 , #NEWLINE# 'SENTRY_SERVER' : 1 , #NEWLINE# #UNINDENT# } ] , [ rsme , { #NEWLINE# #INDENT# 'ZOOKEEPER_SERVER' : 0 , #NEWLINE# 'SENTRY_SERVER' : 1 , #NEWLINE# #UNINDENT# } ] , [ None , { #NEWLINE# #INDENT# 'ZOOKEEPER_SERVER' : 1 , #NEWLINE# 'SOLR_SERVER' : 1 , #NEWLINE# #UNINDENT# } ] , [ rsme , { #NEWLINE# #INDENT# 'ZOOKEEPER_SERVER' : 0 , #NEWLINE# 'SOLR_SERVER' : 1 , #NEWLINE# #UNINDENT# } ] , [ None , { #NEWLINE# #INDENT# 'YARN_NODEMANAGER' : 1 , #NEWLINE# 'YARN_JOBHISTORY' : 1 , #NEWLINE# 'SQOOP_SERVER' : 1 , #NEWLINE# #UNINDENT# } ] , [ rsme , { #NEWLINE# #INDENT# 'YARN_NODEMANAGER' : 0 , #NEWLINE# 'YARN_JOBHISTORY' : 1 , #NEWLINE# 'SQOOP_SERVER' : 1 , #NEWLINE# #UNINDENT# } ] , [ rsme , { #NEWLINE# #INDENT# 'YARN_NODEMANAGER' : 1 , #NEWLINE# 'YARN_JOBHISTORY' : 0 , #NEWLINE# 'SQOOP_SERVER' : 1 , #NEWLINE# #UNINDENT# } ] , [ None , { #NEWLINE# #INDENT# 'ZOOKEEPER_SERVER' : 1 , #NEWLINE# 'SOLR_SERVER' : 1 , #NEWLINE# 'HBASE_MASTER' : 1 , #NEWLINE# 'HBASE_INDEXER' : 1 , #NEWLINE# 'HBASE_REGIONSERVER' : 1 , #NEWLINE# #UNINDENT# } ] , [ rsme , { #NEWLINE# #INDENT# 'ZOOKEEPER_SERVER' : 0 , #NEWLINE# 'SOLR_SERVER' : 1 , #NEWLINE# 'HBASE_MASTER' : 1 , #NEWLINE# 'HBASE_INDEXER' : 1 , #NEWLINE# 'HBASE_REGIONSERVER' : 1 , #NEWLINE# #UNINDENT# } ] , [ rsme , { #NEWLINE# #INDENT# 'ZOOKEEPER_SERVER' : 1 , #NEWLINE# 'SOLR_SERVER' : 0 , #NEWLINE# 'HBASE_MASTER' : 1 , #NEWLINE# 'HBASE_INDEXER' : 1 , #NEWLINE# 'HBASE_REGIONSERVER' : 1 , #NEWLINE# #UNINDENT# } ] , [ rsme , { #NEWLINE# #INDENT# 'ZOOKEEPER_SERVER' : 1 , #NEWLINE# 'SOLR_SERVER' : 1 , #NEWLINE# 'HBASE_MASTER' : 0 , #NEWLINE# 'HBASE_INDEXER' : 1 , #NEWLINE# #UNINDENT# } ] ] #NEWLINE# worker_with_implama = ( 'worker_ng' , 1 , [ 'HDFS_DATANODE' , 'YARN_NODEMANAGER' , 'IMPALAD' ] , 3 ) #NEWLINE# cases += [ [ None , { #NEWLINE# #INDENT# 'IMPALA_CATALOGSERVER' : 1 , #NEWLINE# 'IMPALA_STATESTORE' : 1 , #NEWLINE# 'HIVE_METASTORE' : 1 , #NEWLINE# 'HIVE_SERVER2' : 1 , #NEWLINE# 'HDFS_DATANODE' : 0 , #NEWLINE# 'YARN_NODEMANAGER' : 0 , #NEWLINE# #UNINDENT# } , [ worker_with_implama ] ] , [ icte , { #NEWLINE# #INDENT# 'IMPALA_CATALOGSERVER' : 1 , #NEWLINE# 'IMPALA_STATESTORE' : 1 , #NEWLINE# 'HIVE_METASTORE' : 1 , #NEWLINE# 'HIVE_SERVER2' : 1 , #NEWLINE# #UNINDENT# } , [ ] ] , [ icte , { #NEWLINE# #INDENT# 'IMPALA_CATALOGSERVER' : 1 , #NEWLINE# 'IMPALA_STATESTORE' : 1 , #NEWLINE# 'HIVE_METASTORE' : 1 , #NEWLINE# 'HIVE_SERVER2' : 1 , #NEWLINE# #UNINDENT# } , [ worker_with_implama ] ] , [ rsme , { #NEWLINE# #INDENT# 'IMPALA_CATALOGSERVER' : 1 , #NEWLINE# 'IMPALA_STATESTORE' : 0 , #NEWLINE# 'HIVE_METASTORE' : 1 , #NEWLINE# 'HIVE_SERVER2' : 1 , #NEWLINE# 'HDFS_DATANODE' : 0 , #NEWLINE# 'YARN_NODEMANAGER' : 0 , #NEWLINE# #UNINDENT# } , [ worker_with_implama ] ] , [ rsme , { #NEWLINE# #INDENT# 'IMPALA_CATALOGSERVER' : 1 , #NEWLINE# 'IMPALA_STATESTORE' : 1 , #NEWLINE# 'HIVE_METASTORE' : 0 , #NEWLINE# 'HIVE_SERVER2' : 1 , #NEWLINE# 'HDFS_DATANODE' : 0 , #NEWLINE# 'YARN_NODEMANAGER' : 0 , #NEWLINE# #UNINDENT# } , [ worker_with_implama ] ] ] #NEWLINE# cases += [ [ None , { #NEWLINE# #INDENT# 'KMS' : 1 , #NEWLINE# #UNINDENT# } ] , [ icce , { #NEWLINE# #INDENT# 'KMS' : 2 , #NEWLINE# #UNINDENT# } ] ] #NEWLINE# return cases