def extdb_template(appliance): try: api = trackerbot.api() stream = get_stream(appliance.version.vstring) template_data = trackerbot.latest_template(api, stream) return api.template(template_data['latest_template'] + '-extdb').get() except BaseException: pytest.skip("trackerbot is unreachable")
def extdb_template(appliance): try: api = trackerbot.api() stream = get_stream(appliance.version.vstring) template_data = trackerbot.latest_template(api, stream) return api.template(template_data['latest_template'] + '-extdb').get() except BaseException: pytest.skip("trackerbot is unreachable")
def template_tags(appliance): try: api = trackerbot.api() stream = get_stream(appliance.version.vstring) template_data = trackerbot.latest_template(api, stream) template = api.template(template_data['latest_template']).get() # TODO: fix this in trackerbot by adding appropriate serialization to Template tags = json.loads(template['custom_data'].replace("'", '"').replace('u"', '"')) return tags['TAGS'] except BaseException: pytest.skip("trackerbot is unreachable")
def template_tags(appliance): try: api = trackerbot.api() stream = get_stream(appliance.version.vstring) template_data = trackerbot.latest_template(api, stream) template = api.template(template_data['latest_template']).get() # TODO: fix this in trackerbot by adding appropriate serialization to Template tags = json.loads(template['custom_data'].replace("'", '"').replace( 'u"', '"')) return tags['TAGS'] except BaseException: pytest.skip("trackerbot is unreachable")