コード例 #1
0
 def setup_class(cls):
     cls.result = appmock.up(image='onedata/builder',
                             bindir=appmock_dir,
                             dns_server='none',
                             uid=common.generate_uid(),
                             config_path=os.path.join(
                                 test_utils.test_file('env.json')))
コード例 #2
0
ファイル: env_up_test.py プロジェクト: luman75/testonedata
 def setup_class(cls):
     cls.result = env.up(test_utils.test_file('env.json'))
コード例 #3
0
from tests.test_common import *
from tests import test_utils

package_dir = os.path.join(os.getcwd(), 'package/vivid/binary-amd64')
scripts_dir = os.path.dirname(test_utils.test_file('deb_install_script.py'))

from environment import docker, env


class TestDebInstallation:
    @classmethod
    def setup_class(cls):
        cls.result = env.up(test_utils.test_file('env.json'))

    @classmethod
    def teardown_class(cls):
        docker.remove(cls.result['docker_ids'], force=True, volumes=True)

    # Test if installation has finished successfully
    def test_installation(self):
        gr_node = self.result['gr_nodes'][0]
        (_, _, gr_dockername) = gr_node.partition('@')

        command = 'apt-get update && ' \
                  'apt-get install -y python && ' \
                  'python /root/data/deb_install_script.py'

        container = docker.run(tty=True,
                               interactive=True,
                               detach=True,
                               image='ubuntu:vivid',