Commit graph

11 commits

Author SHA1 Message Date
Bob Van Landuyt
1de47ee373 Use namespace#path for building urls in specs
Some of the specs were using namespace names instead of paths for
building URLS. This would fail since we now build a namespace with a
user's name instead of a user's username.
2019-07-09 18:09:45 +02:00
Simon Knox
8980b71490 Return no_content from prometheus API empty response 2019-06-06 11:43:50 +01:00
Reuben Pereira
434359446a Add ability to do variable substitution
- In prometheus proxy api, allow variables to be replaced. For example,
if 'up{env="%{ci_environment_slug}"}' is passed to the endpoint, it
becomes 'up{env="production"}' before being sent to prometheus.
2019-04-15 15:31:59 +00:00
rpereira2
20594de8cc Use environment_params when defining expected_params 2019-04-05 02:12:34 +05:30
rpereira2
e89b073271 Do not hardcode project and namespace name in url
The names can change in different runs of the spec.
2019-04-05 02:12:34 +05:30
rpereira2
5ee7c419ea Call permit! on params 2019-04-05 02:12:34 +05:30
rpereira2
16772b91f0 Remove permitting of params
- It is now being done in ProxyService class.
2019-04-05 02:12:33 +05:30
rpereira2
eac3e2302c Add spec for invalid environment id 2019-04-05 02:12:33 +05:30
Peter Leitzen
4a0c8b4a9c Make filter params specs more readable 2019-04-05 02:12:33 +05:30
Peter Leitzen
1427ad4f5c Streamline controller specs 2019-04-05 02:12:33 +05:30
rpereira2
e1a167ee23 Add a Prometheus API per environment
The api will proxy requests to the environment's prometheus server.
The Prometheus::ProxyService class can be reused when we add support for
group prometheus servers.
2019-04-05 02:12:33 +05:30