summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Moreau Simard <dmsimard@redhat.com>2018-09-12 10:33:02 -0400
committerDavid Moreau Simard <dmsimard@redhat.com>2018-09-12 10:33:02 -0400
commite77fc1c0c0ee3e315cb932eac42784734ac4a98d (patch)
tree4d16bdce1042f595bbf51c99507cee98f03221ff
parent177c3d56be2dc5d31a592d70bd939a3c93df61ad (diff)
Update ansible-integration testsHEADmaster
ansible-integration is just a very rough sanity check to make sure things are not horribly broken. Need to update it according to the latest changes. Change-Id: I93b03c89891fb4b5b55805a8fef1296598120929
Notes
Notes (review): Code-Review+2: David Moreau Simard <dmsimard@redhat.com> Workflow+1: David Moreau Simard <dmsimard@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 12 Sep 2018 14:57:28 +0000 Reviewed-on: https://review.openstack.org/602049 Project: openstack/ara-server Branch: refs/heads/master
-rw-r--r--hacking/validate.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/hacking/validate.py b/hacking/validate.py
index e19987c..21b3a66 100644
--- a/hacking/validate.py
+++ b/hacking/validate.py
@@ -25,7 +25,7 @@ from ara.clients.offline import AraOfflineClient
25def validate_playbook(playbook): 25def validate_playbook(playbook):
26 assert len(playbook['parameters']) == 40 26 assert len(playbook['parameters']) == 40
27 assert 'hacking/test-playbook.yml' in playbook['file']['path'] 27 assert 'hacking/test-playbook.yml' in playbook['file']['path']
28 assert len(playbook['files']) == 15 28 assert len(playbook['files']) == 9
29 assert playbook['completed'] 29 assert playbook['completed']
30 30
31 31
@@ -90,12 +90,12 @@ def main():
90 validate_task(task) 90 validate_task(task)
91 91
92 hosts = client.get('/api/v1/hosts') 92 hosts = client.get('/api/v1/hosts')
93 assert len(hosts['results']) == 2 93 assert len(hosts['results']) == 1
94 assert hosts['count'] == 2 94 assert hosts['count'] == 1
95 validate_host(hosts['results'][0]) 95 validate_host(hosts['results'][0])
96 96
97 host = client.get( 97 host = client.get(
98 '/api/v1/hosts/%s' % plays['results'][0]['hosts'][0]['id'] 98 '/api/v1/hosts/%s' % hosts['results'][0]['id']
99 ) 99 )
100 validate_host(host) 100 validate_host(host)
101 101
@@ -109,7 +109,7 @@ def main():
109 109
110 stats = client.get('/api/v1/stats') 110 stats = client.get('/api/v1/stats')
111 assert len(stats['results']) == 1 111 assert len(stats['results']) == 1
112 assert len(stats['count']) == 1 112 assert stats['count'] == 1
113 validate_stats(stats['results'][0]) 113 validate_stats(stats['results'][0])
114 114
115 client.log.info('All assertions passed.') 115 client.log.info('All assertions passed.')