Exemple #1
0
def check_data_source_create(data, **kwargs):
    b.check_data_source_unique_name(data['name'])

    if "swift" == data["type"]:
        if not ("user" in data["credentials"]
                and "password" in data["credentials"]):
            raise ex.InvalidCredentials("Invalid credentials for Swift")
Exemple #2
0
def check_data_source_create(data, **kwargs):
    b.check_data_source_unique_name(data['name'])

    if "swift" == data["type"]:
        if not ("user" in data["credentials"]
                and "password" in data["credentials"]):
            raise ex.InvalidCredentials("Invalid credentials for Swift")
Exemple #3
0
def check_data_source_create(data, **kwargs):
    b.check_data_source_unique_name(data['name'])

    if "swift" == data["type"]:
        _check_swift_data_source_create(data)

    if "hdfs" == data["type"]:
        _check_hdfs_data_source_create(data)
Exemple #4
0
def check_data_source_create(data, **kwargs):
    b.check_data_source_unique_name(data['name'])

    if "swift" == data["type"]:
        _check_swift_data_source_create(data)

    if "hdfs" == data["type"]:
        _check_hdfs_data_source_create(data)