blob: 1f5ffe5ac0875f665303fec023ca648ab08e739d [file] [log] [blame] [view]
Dennis Dmitriev7d538c62016-10-18 13:51:17 +03001# tcp-qa
Dennis Dmitriev6f59add2016-10-18 13:45:27 +03002
Dennis Dmitriev5bd9f562016-10-18 13:50:47 +03003Default template used here requires 20 vCPU and 52Gb host RAM.
Dennis Dmitriev6f59add2016-10-18 13:45:27 +03004
5Clone the repo
6--------------
7
Dennis Dmitriev5bd9f562016-10-18 13:50:47 +03008git clone https://github.com/Mirantis/tcp-qa
Dennis Dmitriev6f59add2016-10-18 13:45:27 +03009
Dennis Dmitriev5bd9f562016-10-18 13:50:47 +030010cd ./tcp-qa
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030011
12Install requirements
13--------------------
14
Dennis Dmitriev5bd9f562016-10-18 13:50:47 +030015pip install -r ./tcp_tests/requirements.txt
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030016
17Initialize fuel-devops database if needed:
18------------------------------------------
19
20dos-manage.py migrate
21
22Get cloudinit image
23-------------------
24
25wget https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img -O ./trusty-server-cloudimg-amd64.qcow2
26
27Export variables
28----------------
29
30export ENV_NAME=tcpcloud-mk20 # Optional
31
32export IMAGE_PATH=./trusty-server-cloudimg-amd64.qcow2
33
34Run deploy test
35-----------------------------------------
36export WORKSPACE=$(pwd)
Dennis Dmitriev7b4ed112016-10-18 13:52:07 +030037
Dennis Dmitriev44d6f142016-10-18 15:51:33 +030038export SHUTDOWN_ENV_ON_TEARDOWN=false # Optional
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030039
40py.test -vvv -s -k test_tcp_install_default
41
42
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030043Create and start the env for manual tests
44-----------------------------------------
45
46dos.py create-env ./tcpcloud-wk20.yaml
47
48dos.py start "${ENV_NAME}"
49
50
Dennis Dmitriev95126792016-10-18 17:03:30 +030051Then, wait until cloud-init is finished and port 22 is open (~3-4 minutes), and login to the cfg01 node:
52
53ssh root@172.16.10.100 # Use password 'r00tme'