~evarlast/charms/trusty/elasticsearch/add-logs-relation

« back to all changes in this revision

Viewing changes to tests/02-deploy-three-units

  • Committer: Michael Nelson
  • Date: 2014-11-06 02:48:04 UTC
  • mfrom: (35.1.8 firewall_optional)
  • Revision ID: michael.nelson@canonical.com-20141106024804-uxduhm2huet147vi
[r=simondavy][bugs=1386664,1376396] Bug fix for firewall on ec2 and enable firewall to be configured off (as well as update of tests and charmhelpers).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/python3
2
 
import json
3
 
import requests
4
 
import sys
5
 
 
6
2
import amulet
7
 
 
8
3
import helpers
9
4
 
10
 
d = amulet.Deployment()
 
5
d = amulet.Deployment(series='trusty')
11
6
 
12
7
d.add('elasticsearch', units=3)
13
8
 
19
14
    amulet.raise_status(amulet.FAIL, msg=msg)
20
15
    msg = ("Expected at least 3 nodes in cluster with 3 units deployed, "
21
16
           "got {}".format(health['number_of_nodes']))
 
17
 
 
18
print("Successfully deployed cluster of 3 units.")