Remove superfluous argument to str.format in dmaap.
Fix two tests with the same name in dnsdesig.
Raise a proper exception instead of bool in helm.
Signed-off-by: Miroslav Los <miroslav.los@pantheon.tech>
Issue-ID: CCSDK-1928
Change-Id: I07ff9eaa3b25a4c7864eda2b6189d7357c887dd4
# Get the publisher id
target_feed = ctx.target.node.id
publisher_id = ctx.source.instance.runtime_properties[target_feed]["publisher_id"]
- ctx.logger.info("Attempting to delete publisher {0}".format(publisher_id, target_feed))
+ ctx.logger.info("Attempting to delete publisher {0}".format(publisher_id))
# Make the request
dmc = DMaaPControllerHandle(DMAAP_API_URL, DMAAP_USER, DMAAP_PASS, ctx.logger)
dnsdesig.dns_plugin.cnamenotneeded()
@_setup(_goodos, 'noservice.x.example.com')
-def test_dns_delcname():
+def test_dns_delbadcname():
with pytest.raises(RecoverableError):
dnsdesig.dns_plugin.cnamenotneeded()
elif s == 'False' or s == 'false':
return False
else:
- raise False
+ raise ValueError('Require [Tt]rue or [Ff]alse; got: {0}'.format(s))
def get_config_json(config_json, config_path, config_opt_f, config_file_nm):