Ejemplo n.º 1
0
 def test_only_transfers_setup(self, patch):
     elasticSearchFunctions.setup('elasticsearch:9200',
                                  enabled=['transfers'])
     patch.assert_called_with(ANY, ['transfers', 'transferfiles'])
Ejemplo n.º 2
0
 def test_only_transfers_setup(self, patch):
     elasticSearchFunctions.setup("elasticsearch:9200", enabled=["transfers"])
     patch.assert_called_with(ANY, ["transfers", "transferfiles"])
Ejemplo n.º 3
0
 def test_default_setup(self, patch):
     elasticSearchFunctions.setup('elasticsearch:9200')
     patch.assert_called_with(
         ANY, ['aips', 'aipfiles', 'transfers', 'transferfiles'])
Ejemplo n.º 4
0
 def test_default_setup(self, patch):
     elasticSearchFunctions.setup("elasticsearch:9200")
     patch.assert_called_with(
         ANY, ["aips", "aipfiles", "transfers", "transferfiles"]
     )