27 Commits

Author SHA1 Message Date
r
1530f0578c gitignore add .idea
Change-Id: I44f875ea4a1c9bcea887f8d919a61c58577f1320
2020-11-22 10:31:22 +02:00
Federico Ressi
0d8b6d9430 Add tools for getting ansible inventory
Change-Id: I596057cc79a91bbc099a2721b5453058069e4b41
2020-07-06 16:51:17 +02:00
Federico Ressi
5011a2fc46 Update .gitignore file
Change-Id: I30fe2b96b6a14dab6e53bab35b83b003daca1acd
2020-06-22 11:25:35 +02:00
Federico Ressi
92248c8506 Refactor test execution scripts
- Acreate a new tools/run_tests.py script to
  execute test cases
- Move report generation to such script and
  remove 'report' tox environment
- Running test cases generates report files
  (.log, .html, .xml) into 'report/{envname}'
  directory
- Test cases failures will returns exit code 1
  Other script test runner failures returns
  exit code 2

Big refactory to tox.ini file to try semplifying it:

- create the new 'py3' tox environment for running unit
  tests as default platform python 3 interpreter
- use same as py3 '{envdir}' for scenario, functional,
  neutron and faults tox environments

Change-Id: Id09425245cc86b84b41e6b3b1c1db759cc686f3a
2020-05-06 17:41:35 +02:00
Federico Ressi
a4ab99ba89 Spliting infrared plugin into roles
Create a set of roles to be composed into a new infrared plugin. The
final goal for these roles is to be used for either downstream and
upstream CI

Change-Id: I48d5f500c2e694c3f94ee497a0df1d92b6c411b3
2020-03-17 11:07:08 +00:00
Federico Ressi
447231ef0a Import infrared workspace if available
Change-Id: I06469d73e4da3005bccc6333becb5a0a69e4c89c
2020-03-11 11:42:14 +01:00
Federico Ressi
2e3af9b534 Fix Tox Infrared job
Change-Id: Ie4ad2f23e1e518c688dc4334acaa3379827ac146
2020-02-18 15:40:01 +01:00
Pini Komarov
1980cef3e7 Revert "Allow to configure undercloud via ssh_config file"
This reverts commit 8c33b9ac28db24617e5fa0b32f2273fc7a1e23b2.

Change-Id: Ib00cba30569c4971811f444697d10e12384ed81e

this is breaking doenstream CI again :

I'm reverting since the downstream CI is more important than any individual patch


2020-02-15 19:56:23.583 737695 DEBUG tobiko.common._fixture [-] Set up fixture 'tobiko.shell.sh._ssh.SSHShellProcessFixture' setUp /home/stack/tobiko/tobiko/common/_fixture.py:367
2020-02-15 19:56:23.584 737695 DEBUG tobiko.shell.sh._ssh [-] Executing remote command: 'hostname' (login='heat-admin@undercloud-0:22', timeout=None)... create_process /home/stack/tobiko/tobiko/shell/sh/_ssh.py:90
2020-02-15 19:56:23.584 737695 DEBUG tobiko.common._fixture [-] Set up fixture 'tobiko.shell.ssh._client.SSHClientFixture' setUp /home/stack/tobiko/tobiko/common/_fixture.py:367
2020-02-15 19:56:23.584 737695 DEBUG tobiko.shell.ssh._client [-] Logging in to 'heat-admin@undercloud-0:22' ({'key_filename': ['/home/stack/.ssh/id_rsa'], 'timeout': 10.0, 'allow_agent': False, 'compress': False})... attempt 1 out of 60 ssh_connect /home/stack/tobiko/tobiko/shell/ssh/_client.py:432
2020-02-15 19:56:23.629 737695 WARNING py.warnings [-] /home/stack/tobiko/.tox/scenario/lib/python3.6/site-packages/paramiko/client.py:837: UserWarning: Unknown ssh-ed25519 host key for undercloud-0: b'74d86f2d25b4898a737954b9a7b1822e'
  key.get_name(), hostname, hexlify(key.get_fingerprint())
: tobiko.openstack.topology._exception.NoSuchOpenStackTopologyNode: No such topology node: {'address': Selection([IPAddress('192.168.24.1'), IPAddress('127.0.0.1')])}
2020-02-15 19:56:23.704 737695 DEBUG tobiko.shell.ssh._client [-] Error logging in to 'heat-admin@undercloud-0:22': Authentication failed. ssh_connect /home/stack/tobiko/tobiko/shell/ssh/_client.py:449
2020-02-16 20:03:22 +00:00
Federico Ressi
8c33b9ac28 Allow to configure undercloud via ssh_config file
This reverts commit 6bebf4945919d87cbb0439578a437a43be48a5ee.

Change-Id: If8c218d7fa29414d6af13d2adcf6f0e3bfda24de
2020-02-14 15:08:53 +00:00
pinikomarov
6bebf49459 Revert "Allow to configure undercloud via ssh_config file"
This reverts commit 58373a74bda88de22ef8d1686be1ed163a7a8e20.

Change-Id: I84cdacdf6afe75e7e70189f6861c4219d1695575
2020-02-09 00:34:07 +02:00
Federico Ressi
58373a74bd Allow to configure undercloud via ssh_config file
Change-Id: I0ba420a32ac145510c03b88d5f6d02999bfd0474
2020-01-31 15:12:50 +01:00
Federico Ressi
710146be61 Use tobiko.conf directory as starting directory for relative paths
Change-Id: I3b3ed64936cacb7e21420943732caa339ebbbdf9
2020-01-30 14:28:15 +01:00
Federico Ressi
88cdecbc4f Produce separate named report files
Refactor role with tags for execute pre-run, run and
post-run phases.

Change-Id: I7daff63be56d2746a63e00d21aaa78078e60f60f
2019-12-03 21:06:38 +00:00
Federico Ressi
f4658cbfb9 Add mypy CI job
Change-Id: I13e3a491d9a2f58de43cf2ec05c48e2275261d78
2019-11-04 13:46:13 +01:00
Federico Ressi
7eaee607a9 Ignore tobiko_result.* files
Change-Id: I975a194ad8582cae967a594b67b9ee0da489a122
2019-10-30 12:59:15 +00:00
Slawek Kaplonski
c7577d579a Remove files added accidentally to the repo
This patch removes directory .tobiko-evn which was added
by accident to the git repo in the past.
It also updates .gitignore file to ignore this location
in the future.

Change-Id: Iae07065cbc763d8babd5163ff5ff75d442726d0a
2019-10-03 09:33:48 +00:00
Federico Ressi
7cf2fe8aa3 Add report files to Git ignore files
Change-Id: Iee823a624ce395cebb4559d04386c2212fb52859
2019-10-02 12:56:30 +02:00
Federico Ressi
f0cb1fcf05 Add tobiko.conf to .gitignore file
Change-Id: I1835339d17f7614f42a1b9f1487abd9f399d2a3a
2019-07-19 17:41:54 +02:00
Slawek Kaplonski
d050e3399a Autogenerate config options and sample config file
This patch adds to "docs" tox job ability to automatically
generate sample config file and config reference based on
config options defined in code.

Change-Id: Id960cc28d1b13ef3ed15e911f59620afb83f45b9
2019-07-18 17:51:49 +02:00
abregman
935856cb21 Refine tobiko faults
* Setup proper logging
* Extend os-faults configuration template with more services
* Add unit tests initial files (Python API and CLI)
* Add proper doc explaining how to use tobiko faults

Change-Id: I6d528981fea6c76d20f4da095a86189748038f77
2019-06-05 22:18:28 +03:00
Federico Ressi
f77e61faf9 Add cover CI job and tox env
Change-Id: Idf6011265e5674fc0016771341f65fa2037cf510
2019-04-25 09:58:55 +00:00
Slawek Kaplonski
31c6f20983 Add reno for release notes management
Change-Id: Iee09083a2c582e086aa64ba1516d36e37e4a8512
2019-04-03 12:58:54 +00:00
Federico Ressi
8c9629499d Ignore log files
Change-Id: I618a82d3a2f242e1f9778d1c80e803bccc7985c0
2018-12-12 12:16:14 +00:00
Federico Ressi
194b5eb0b2 Read OS credentials from tobiko.conf
Change-Id: Ica0edc527397bfc04a3f5b4f081f641b544fc2a9
2018-12-11 15:49:09 +01:00
Federico Ressi
b5a02e0a29 Get code coverage when running test cases.
Change-Id: Ieae7e463ca766541fa0d085d04a6963e251a554f
2018-11-26 15:57:14 +01:00
Federico Ressi
0377537dc0 Create tox.ini file.
Configure with minimal requirements for running -
  pep8 - flake8 verifications
  py27/py35 - unittests

Change-Id: If09bab1f0a8501afddd720cf9ea9335867072e1d
2018-08-23 08:01:55 +02:00
abregman
dce03ca6ea Add files required for making this project a tempest plugin
In addition:

* Add gitignore file
* Modified client to use tempest config variables instead of env
  vars. Tempest config is what usually used in CI builds
* Modified test to use common flavor (m1.micro).

Change-Id: I5f292d7762396016a35c1895d7f6898b7dc1b417
2018-08-16 10:41:28 +03:00