Esempio n. 1
0
def test_master():
    m1 = Master(log_level='debug',
                log_config='/test/path.properties',
                security=Security.new_credentials())
    m2 = Master(resources=Resources(memory='1 GiB', vcores=2),
                script='script',
                env={'FOO': 'BAR'},
                files={'file': '/test/path'})
    m3 = Master()
    check_specification_methods(m1, m3)
    check_specification_methods(m2, m3)
Esempio n. 2
0
def test_security(tmpdir):
    bytes = Security.new_credentials()
    file = bytes.to_directory(str(tmpdir))
    other = Security.new_credentials()
    check_specification_methods(bytes, other)
    check_specification_methods(file, other)
Esempio n. 3
0
def test_master():
    m1 = Master(log_level='info',
                log_config='/test/path.properties',
                security=Security.new_credentials())
    m2 = Master(log_level='debug')
    check_specification_methods(m1, m2)