diff --git a/resources/glance_api_service/test.py b/resources/glance_api_service/test.py index bdbb5069..9cbe0fa3 100644 --- a/resources/glance_api_service/test.py +++ b/resources/glance_api_service/test.py @@ -1,9 +1,11 @@ import json import requests +from solar.core.log import log + def test(resource): - print 'Testing glance_service' + log.debug('Testing glance_service') token_data = requests.post( 'http://%s:%s/v2.0/tokens' % (resource.args['ip'].value, resource.args['keystone_port'].value), json.dumps({ @@ -19,7 +21,7 @@ def test(resource): ) token = token_data.json()['access']['token']['id'] - print 'GLANCE TOKEN: {}'.format(token) + log.debug('GLANCE TOKEN: %s', token) images = requests.get( 'http://%s:%s/v1/images' % (resource.args['ip'].value, 9393), diff --git a/resources/haproxy_service/test.py b/resources/haproxy_service/test.py index f5941d0d..e7605087 100644 --- a/resources/haproxy_service/test.py +++ b/resources/haproxy_service/test.py @@ -1,8 +1,10 @@ import requests +from solar.core.log import log + def test(resource): - print 'Testing haproxy_service' + log.debug('Testing haproxy_service') requests.get( 'http://%s:%s' % (resource.args['ip'].value, resource.args['ports'].value[0]['value'][0]['value']) ) diff --git a/resources/keystone_puppet/test.py b/resources/keystone_puppet/test.py index c94af0ad..a82c8ea1 100644 --- a/resources/keystone_puppet/test.py +++ b/resources/keystone_puppet/test.py @@ -1,8 +1,10 @@ import requests +from solar.core.log import log + def test(resource): - print 'Testing keystone_puppet' + log.debug('Testing keystone_puppet') requests.get( 'http://%s:%s' % (resource.args['ip'].value, resource.args['port'].value) ) diff --git a/resources/keystone_service/test.py b/resources/keystone_service/test.py index b397bd2e..fb3d57ed 100644 --- a/resources/keystone_service/test.py +++ b/resources/keystone_service/test.py @@ -1,8 +1,10 @@ import requests +from solar.core.log import log + def test(resource): - print 'Testing keystone_service' + log.debug('Testing keystone_service') requests.get( 'http://%s:%s' % (resource.args['ip'].value, resource.args['port'].value) ) diff --git a/resources/keystone_user/test.py b/resources/keystone_user/test.py index 3fe8e8e2..b1c5f499 100644 --- a/resources/keystone_user/test.py +++ b/resources/keystone_user/test.py @@ -1,12 +1,15 @@ import json import requests +from solar.core.log import log + def test(resource): - print 'Testing keystone_user {}'.format(resource.args['user_name'].value) + log.debug('Testing keystone_user %s', resource.args['user_name'].value) token_data = requests.post( - 'http://%s:%s/v2.0/tokens' % (resource.args['keystone_host'].value, resource.args['keystone_port'].value), + 'http://%s:%s/v2.0/tokens' % (resource.args['keystone_host'].value, + resource.args['keystone_port'].value), json.dumps({ 'auth': { 'tenantName': resource.args['tenant_name'].value, @@ -21,4 +24,4 @@ def test(resource): token = token_data.json()['access']['token']['id'] - print '{} TOKEN: {}'.format(resource.args['user_name'].value, token) + log.debug('%s TOKEN: %s', resource.args['user_name'].value, token) diff --git a/resources/rabbitmq_service/test.py b/resources/rabbitmq_service/test.py index da81cb17..d8602ecc 100644 --- a/resources/rabbitmq_service/test.py +++ b/resources/rabbitmq_service/test.py @@ -1,7 +1,9 @@ import requests +from solar.core.log import log + def test(resource): - print 'Testing rabbitmq_service' + log.debug('Testing rabbitmq_service') requests.get('http://%s:%s' % (resource.args['ip'].value, resource.args['management_port'].value))