Commit Graph

17 Commits

Author SHA1 Message Date
GitLab Bot b5571e6e22 Add latest changes from gitlab-org/gitlab@master 2019-12-19 18:07:48 +00:00
GitLab Bot 1a9d9cc14e Add latest changes from gitlab-org/gitlab@master 2019-12-18 09:07:38 +00:00
GitLab Bot 69d6d3ca20 Add latest changes from gitlab-org/gitlab@master 2019-12-16 21:08:00 +00:00
GitLab Bot 784fae4b9d Add latest changes from gitlab-org/gitlab@master 2019-12-12 12:07:33 +00:00
GitLab Bot 330eac18ce Add latest changes from gitlab-org/gitlab@master 2019-12-09 03:07:57 +00:00
GitLab Bot 587794b4b8 Add latest changes from gitlab-org/gitlab@master 2019-10-02 00:06:26 +00:00
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