Skip to content

Commit

Permalink
Merge pull request #203 from scality/bugfix/ZENKO-789-re-enable-grafa…
Browse files Browse the repository at this point in the history
…na-tests

ci: re-enable grafana tests
  • Loading branch information
giacomoguiulfo committed Jul 20, 2018
2 parents 82be3e8 + 1940691 commit 1c3b81a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions charts/zenko/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ redis-ha:
grafana:
enabled: true
sidecar:
image: zenko/grafana-sidecar:latest
datasources:
enabled: true
# Every config map with the following label will be used as datasource. By default,
Expand Down
8 changes: 7 additions & 1 deletion eve/ci-values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,10 @@ backbeat:
cronRule: "0 */1 * * * *"

grafana:
enabled: false
rbac:
create: false
pspEnabled: false
serviceAccount:
create: false
adminUser: admin
adminPassword: strongpassword
4 changes: 2 additions & 2 deletions eve/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ stages:
helm upgrade $ZENKO_HELM_RELEASE --namespace %(prop:testNamespace)s
--install charts/zenko
-f eve/ci-values.yml
--timeout 700
--timeout 800
--wait $(./eve/workers/ci_env.sh set)
haltOnFailure: true
env:
Expand Down Expand Up @@ -214,7 +214,7 @@ stages:
--set backbeat.image.repository=%(secret:private_registry_url)s/zenko/backbeat
--set s3-data.image.tag='%(prop:cloudserver_sha1)s'
--set s3-data.image.repository=%(secret:private_registry_url)s/zenko/cloudserver
--timeout 1700
--timeout 800
--wait $(./eve/workers/ci_env.sh set)
haltOnFailure: true
env:
Expand Down
2 changes: 1 addition & 1 deletion tests/zenko_e2e/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def grafana_client():
user = 'admin'
password = os.getenv('GRAFANA_PASSWORD')
if not password:
password = 'admin'
password = 'strongpassword'
url = os.getenv('GRAFANA_ENDPOINT')
if not url:
url = 'http://{}-grafana:80'.format(zenko_helm_release())
Expand Down
1 change: 0 additions & 1 deletion tests/zenko_e2e/grafana/test_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
]


@pytest.mark.skip(reason="Grafana doesn't install on CI")
@pytest.mark.nondestructive
@pytest.mark.parametrize('dashboard', GRAFANA_DASHBOARDS)
def test_dashboard(grafana_client, dashboard):
Expand Down
1 change: 0 additions & 1 deletion tests/zenko_e2e/grafana/test_datasource.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
]


@pytest.mark.skip(reason="Grafana doesn't install on CI")
@pytest.mark.nondestructive
@pytest.mark.parametrize('datasource', GRAFANA_DATASOURCES)
def test_datasource(grafana_client, datasource):
Expand Down

0 comments on commit 1c3b81a

Please sign in to comment.