def test_if_request_is_sent_to_the_current_marathon_leader( self, master_ar_process, superuser_user_header): generic_correct_upstream_dest_test(master_ar_process, superuser_user_header, '/system/v1/leader/marathon/foo/bar', 'http://127.0.0.2:80', )
def test_if_request_is_sent_to_correct_upstream(self, master_ar_process, superuser_user_header): generic_correct_upstream_dest_test( master_ar_process, superuser_user_header, agent_prefix + "/foo/bar", 'http://127.0.0.2:15001', )
def test_if_request_is_sent_to_correct_upstream(self, master_ar_process, superuser_user_header): generic_correct_upstream_dest_test( master_ar_process, superuser_user_header, '/exhibitor/some/path', 'http://127.0.0.1:8181', )
def test_if_request_is_sent_to_the_current_marathon_leader( self, master_ar_process, superuser_user_header): generic_correct_upstream_dest_test( master_ar_process, superuser_user_header, '/system/v1/leader/marathon/foo/bar', 'http://127.0.0.2:80', )
def test_if_request_is_sent_to_correct_upstream(self, master_ar_process, superuser_user_header): generic_correct_upstream_dest_test( master_ar_process, superuser_user_header, '/system/v1/logs/v1/foo/bar', 'http:///run/dcos/dcos-log.sock', )
def test_if_request_is_sent_to_correct_upstream(self, agent_ar_process, superuser_user_header): generic_correct_upstream_dest_test(agent_ar_process, superuser_user_header, '/system/v1/logs/v1/foo/bar', 'http:///run/dcos/dcos-log.sock', )
def test_if_request_is_sent_to_correct_upstream(self, master_ar_process, superuser_user_header): generic_correct_upstream_dest_test(master_ar_process, superuser_user_header, agent_prefix + "/foo/bar", 'http://127.0.0.2:15001', )
def test_if_request_is_sent_to_correct_upstream(self, master_ar_process, superuser_user_header): generic_correct_upstream_dest_test(master_ar_process, superuser_user_header, '/exhibitor/some/path', 'http://127.0.0.1:8181', )
def test_if_request_is_sent_to_correct_upstream(self, master_ar_process, superuser_user_header): generic_correct_upstream_dest_test(master_ar_process, superuser_user_header, '/system/v1/metrics/foo/bar', 'http:///run/dcos/dcos-metrics-master.sock', )
def test_if_request_is_sent_to_correct_upstream(self, master_ar_process, superuser_user_header): generic_correct_upstream_dest_test(master_ar_process, superuser_user_header, '/system/health/v1/foo/bar', 'http://127.0.0.1:1050', )
def test_if_request_is_sent_to_correct_upstream(self, master_ar_process, superuser_user_header): generic_correct_upstream_dest_test(master_ar_process, superuser_user_header, '/system/health/v1/foo/bar', 'http://127.0.0.1:1050', )
def test_if_request_is_sent_to_the_current_mesos_leader( self, master_ar_process, superuser_user_header): # FIXME: using MesosDNS `leader.mesos` alias makes things hard to test. # Dropping in in favour of cache+API call would improve reliability as # well. So no "changing the leader and testing results tests for now" generic_correct_upstream_dest_test( master_ar_process, superuser_user_header, '/system/v1/leader/mesos/foo/bar', 'http://127.0.0.2:80', )
def test_if_request_is_sent_to_the_current_mesos_leader(self, master_ar_process, superuser_user_header): # FIXME: using MesosDNS `leader.mesos` alias makes things hard to test. # Dropping in in favour of cache+API call would improve reliability as # well. So no "changing the leader and testing results tests for now" generic_correct_upstream_dest_test(master_ar_process, superuser_user_header, '/system/v1/leader/mesos/foo/bar', 'http://127.0.0.2:80', )
def test_if_request_is_sent_to_correct_upstream(self, master_ar_process, superuser_user_header, agent, endpoint, prefix): # FIXME - these are very simple tests for now, need to think how to test # streaming api better. ATM we only test if HTTP is set to 1.1 for streaming # stuff. uri_path = '/system/v1/agent/{}{}'.format(agent, prefix) generic_correct_upstream_dest_test( master_ar_process, superuser_user_header, uri_path, endpoint, )
def test_if_request_is_sent_to_correct_upstream(self, master_ar_process, superuser_user_header, agent, endpoint, prefix): # FIXME - these are very simple tests for now, need to think how to test # streaming api better. ATM we only test if HTTP is set to 1.1 for streaming # stuff. uri_path = '/system/v1/agent/{}{}'.format(agent, prefix) generic_correct_upstream_dest_test(master_ar_process, superuser_user_header, uri_path, endpoint, )