Exemplo n.º 1
0
 def test_status_endpoint_returns_expected_when_multiple_slashes(self):
     with patch.dict(config['zuul'], {
             'url': 'http://fake.url////////////',
             'status_endpoint': 'fake.json'
     }):
         result = service.status_endpoint()
         expected = 'http://fake.url/fake.json'
         self.assertEqual(result, expected)
Exemplo n.º 2
0
def show_dashboard():
    url = service.status_endpoint()
    resource = service.fetch_json_data(endpoint=url)
    pipeline_stats = service.pipelines_stats(resource['pipelines'])
    return render_template('dashboard.html', pipeline_stats=pipeline_stats)
Exemplo n.º 3
0
def show_status(pipename=config['default']['pipename']):
    url = service.status_endpoint()
    resource = service.fetch_json_data(endpoint=url)
    queues = service.make_queues(resource['pipelines'], pipename)
    return render_template('status.html', queues=queues, pipename=pipename)