Blame tests/t_acquire.py

Packit Service 9f2c4a
#!/usr/bin/python3
Packit Service 9f2c4a
# Copyright (C) 2015,2016 - GSS-Proxy contributors; see COPYING for the license.
Packit Service 9f2c4a
Packit Service 9f2c4a
from testlib import *
Packit Service 9f2c4a
Packit Service 9f2c4a
def run(testdir, env, conf, expected_failure=False):
Packit Service 9f2c4a
    print("Testing basic acquire creds...", file=sys.stderr)
Packit Service 9f2c4a
    conf['prefix'] = str(cmd_index)
Packit Service 9f2c4a
Packit Service 9f2c4a
    svc_keytab = os.path.join(testdir, SVC_KTNAME)
Packit Service 9f2c4a
    testenv = {'KRB5CCNAME': os.path.join(testdir, 't' + conf['prefix'] +
Packit Service 9f2c4a
                                                   '_acquire.ccache'),
Packit Service 9f2c4a
               'KRB5_KTNAME': conf['keytab'],
Packit Service 9f2c4a
               'KRB5_TRACE': os.path.join(testdir, 't' + conf['prefix'] +
Packit Service 9f2c4a
                                                   '_acquire.trace'),
Packit Service 9f2c4a
               'GSS_USE_PROXY': 'yes',
Packit Service 9f2c4a
               'GSSPROXY_BEHAVIOR': 'REMOTE_FIRST'}
Packit Service 9f2c4a
    testenv.update(env)
Packit Service 9f2c4a
Packit Service 9f2c4a
    cmd = "./tests/t_acquire " + conf['svc_name']
Packit Service 9f2c4a
Packit Service 9f2c4a
    return run_testcase_cmd(testenv, conf, cmd, "Acquire", expected_failure)
Packit Service 9f2c4a
Packit Service 9f2c4a
if __name__ == "__main__":
Packit Service 9f2c4a
    from runtests import runtests_main
Packit Service 9f2c4a
    runtests_main(["t_acquire.py"])