Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias Assign NameStore Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad Str attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad Str NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad Str attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call NameLoad NameLoad ListLoad NameLoad NameLoad TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad Str NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Lambda arguments args defaults Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad finalbody Expr Call AttributeLoad NameLoad attr decorator_list Call NameLoad Str Str NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad Str attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr CompareNotIn BinOpMod Str NameLoad NameLoad BinOpMod Str NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad Str attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Str Assign NameStore BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list
N/A N/A 
Product tests for presto-admin installation
 N/A certifi N/A os nose.plugins.attrib attr tests.no_hadoop_bare_image_provider NoHadoopBareImageProvider tests.product.base_product_case BaseProductTestCase docker_only tests.product.prestoadmin_installer PrestoadminInstaller tests.docker_cluster DockerCluster tests.product.constants DEFAULT_DOCKER_MOUNT_POINT DEFAULT_LOCAL_MOUNT_POINT N/A install_py26_script set -e
echo "deb http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu trusty main"     > /etc/apt/sources.list.d/fkrull-deadsnakes-trusty.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys     DB82666C
sudo apt-get update
sudo apt-get -y install python2.6
ln -s /usr/bin/python2.6 /usr/bin/python
 TestInstallation N/A BaseProductTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestInstallation self setUp N/A N/A self pa_installer N/A PrestoadminInstaller self N/A N/A N/A self setup_cluster N/A NoHadoopBareImageProvider N/A self BARE_CLUSTER N/A dist_dir N/A N/A N/A self pa_installer _build_dist_if_necessary N/A self cluster N/A N/A N/A N/A self pa_installer _copy_dist_to_host N/A self cluster dist_dir N/A N/A self cluster master N/A test_install_non_root N/A N/A self N/A N/A N/A install_dir /home/app-admin N/A script N/A N/A 
            set -e
            cp {mount_dir}/prestoadmin-*.tar.bz2 {install_dir}
            chown app-admin {install_dir}/prestoadmin-*.tar.bz2
            cd {install_dir}
            sudo -u app-admin tar jxf prestoadmin-*.tar.bz2
            cd prestoadmin
            sudo -u app-admin ./install-prestoadmin.sh
         format mount_dir N/A N/A self cluster mount_dir install_dir install_dir N/A N/A N/A self assertRaisesRegexp OSError mkdir: cannot create directory `/var/log/prestoadmin': Permission denied N/A N/A self cluster run_script_on_host script N/A N/A self cluster master N/A N/A attr smoketest docker_only test_install_from_different_dir N/A N/A self N/A N/A N/A install_dir /opt N/A script N/A N/A 
            set -e
            cp {mount_dir}/prestoadmin-*.tar.bz2 {install_dir}
            cd {install_dir}
            tar jxf prestoadmin-*.tar.bz2
             ./prestoadmin/install-prestoadmin.sh
         format mount_dir N/A N/A self cluster mount_dir install_dir install_dir N/A N/A N/A self assertRaisesRegexp OSError IOError: \[Errno 2\] No such file or directory: \'/opt/prestoadmin-.*-py2-none-any.whl\' N/A N/A self cluster run_script_on_host script N/A N/A self cluster master N/A N/A attr smoketest test_install_on_wrong_os_offline_installer N/A N/A self N/A N/A N/A image ubuntu N/A tag 14.04 N/A host N/A image -master N/A ubuntu_container N/A DockerCluster host N/A DEFAULT_LOCAL_MOUNT_POINT DEFAULT_DOCKER_MOUNT_POINT N/A N/A N/A N/A N/A ubuntu_container fetch_image_if_not_present image tag N/A N/A N/A ubuntu_container start_containers N/A N/A image : tag cmd tail -f /var/log/bootstrap.log N/A N/A N/A self retry N/A N/A N/A N/A N/A N/A ubuntu_container run_script_on_host install_py26_script N/A ubuntu_container master N/A N/A N/A ubuntu_container exec_cmd_on_host N/A ubuntu_container master sudo apt-get -y install wget N/A N/A N/A self assertRaisesRegexp OSError ERROR\nParamiko could not be imported. This usually means that N/A N/A self pa_installer install cluster ubuntu_container N/A N/A N/A N/A ubuntu_container tear_down N/A N/A attr smoketest offline_installer docker_only test_cert_arg_to_installation_nonexistent_file N/A N/A self N/A N/A N/A install_dir /opt N/A script N/A N/A 
            set -e
            cp {mount_dir}/prestoadmin-*.tar.bz2 {install_dir}
            cd {install_dir}
            tar jxf prestoadmin-*.tar.bz2
            cd prestoadmin
             ./install-prestoadmin.sh dummy_cert.cert
         format mount_dir N/A N/A self cluster mount_dir install_dir install_dir N/A output N/A N/A N/A self cluster run_script_on_host script N/A N/A self cluster master N/A N/A N/A self assertRegexpMatches output Adding pypi.python.org as trusted\-host. Cannot find certificate file: dummy_cert.cert N/A N/A attr smoketest test_cert_arg_to_installation_real_cert N/A N/A self N/A N/A N/A N/A N/A N/A self cluster copy_to_host N/A N/A certifi where N/A N/A self cluster master N/A install_dir /opt N/A cert_file N/A N/A N/A os path basename N/A N/A certifi where N/A script N/A N/A 
            set -e
            cp {mount_dir}/prestoadmin-*.tar.bz2 {install_dir}
            cd {install_dir}
            tar jxf prestoadmin-*.tar.bz2
            cd prestoadmin
             ./install-prestoadmin.sh {mount_dir}/{cacert}
         format mount_dir N/A N/A self cluster mount_dir install_dir install_dir cacert cert_file N/A output N/A N/A N/A self cluster run_script_on_host script N/A N/A self cluster master N/A N/A N/A self assertTrue N/A N/A Adding pypi.python.org as trusted-host. Cannot find certificate file: %s cert_file output N/A Unable to find cert file; output: %s output N/A N/A attr smoketest test_additional_dirs_created N/A N/A self N/A N/A N/A install_dir /opt N/A script N/A N/A 
            set -e
            cp {mount_dir}/prestoadmin-*.tar.bz2 {install_dir}
            cd {install_dir}
            tar jxf prestoadmin-*.tar.bz2
            cd prestoadmin
             ./install-prestoadmin.sh
         format mount_dir N/A N/A self cluster mount_dir install_dir install_dir N/A N/A N/A N/A self cluster run_script_on_host script N/A N/A self cluster master N/A pa_etc_dir /etc/opt/prestoadmin N/A connectors_dir N/A pa_etc_dir /connectors N/A N/A N/A self assert_path_exists N/A N/A self cluster master connectors_dir N/A coordinator_dir N/A pa_etc_dir /coordinator N/A N/A N/A self assert_path_exists N/A N/A self cluster master coordinator_dir N/A workers_dir N/A pa_etc_dir /workers N/A N/A N/A self assert_path_exists N/A N/A self cluster master workers_dir N/A N/A