def test_get_auth_info(cli_conf):

    assert ftpdelconfig.get_ftps_HOST(cli_conf) is not None
    assert ftpdelconfig.get_ftps_USER(cli_conf) is not None
    assert ftpdelconfig.get_ftps_PASS(cli_conf) is not None
    assert ftpdelconfig.get_ftps_FTP_LOGIN_DIR(cli_conf) is not None
    assert ftpdelconfig.get_ftps_FTP_DEL_LIST_DIR(cli_conf) is not None
    assert ftpdelconfig.get_ftps_FTP_DEL_LIST_FILE(cli_conf) is not None
def test_Create_SessionFTPS(cli_conf):
    session = manuplate_ftp.ManuplateFTP()

    #get authentication set value.
    HOST = ftpdelconfig.get_ftps_HOST(cli_conf)
    ACCOUNT = ftpdelconfig.get_ftps_USER(cli_conf)
    PASSWORD = ftpdelconfig.get_ftps_PASS(cli_conf)

    assert session.Create_SessionFTPS(HOST, ACCOUNT, PASSWORD) == 0
    assert session.ftp_quit() == 0
def test_ftp_delete(cli_conf):
    session = manuplate_ftp.ManuplateFTP()

    #get authentication set value.
    HOST = ftpdelconfig.get_ftps_HOST(cli_conf)
    ACCOUNT = ftpdelconfig.get_ftps_USER(cli_conf)
    PASSWORD = ftpdelconfig.get_ftps_PASS(cli_conf)

    #edit exist file name
    FILE_NAME = 'TESTFILE1.txt'
    TEST_FILE_PATH = '/img/'

    assert session.Create_SessionFTPS(HOST, ACCOUNT, PASSWORD) == 0
    assert session.ftp_nlst(TEST_FILE_PATH + FILE_NAME) is not None
    assert session.ftp_delete(TEST_FILE_PATH + FILE_NAME) == 0
    assert session.ftp_quit() == 0