ncdsclient.internal.utils

utils.AuthenticationConfigLoader

class utils.AuthenticationConfigLoader.AuthenticationConfigLoader

Bases: object

Utility to load the auth configuration parameters.

add_nasdaq_specific_auth_properties(properties)
get_client_id(cfg)
validate_security_config(cfg)

utils.InstallCertificates

class utils.InstallCertificates.InstallCertificates(cert_dir)

Bases: object

Gets a one-time-url from kafka_cert_url and downloads the kafka stream certificate from that url.

cert_dir

The name of the directory where the certificate should be installed

Type

str

install()

utils.KafkaConfigLoader

class utils.KafkaConfigLoader.KafkaConfigLoader

Bases: object

Utility to load the kafka configuration parameters.

static load_test_config()
static nasdaq_specific_config(p)
validate_and_add_specific_properties(p)