28 Commits

Author SHA1 Message Date
jskunda
54c74fb8e3 Drop python2, python3.6 and 3.7 support
Refstack-client is dropping support of python2 and also all python3
versions above python3.8

Changes:
-requirements.txt - added license on python-subunit
-setup.cfg - removed python2 and python3 versions below python3.8
           - added python3.10
-setup_env - removed all python2 mentions
           - python3 min version set to 3.8.0
           - added parameter l which will force installation of
             python into  ${WORKDIR}/.localpython
-tox.ini - removed py27 from envlist, added py38

Change-Id: I6500ed950cb9bc07d87370940b4752e686712c14
2023-02-03 16:22:00 +01:00
Martin Kopec
df3ce16947 Update tempest version and drop U and T jobs
The commit updates tempest version and removes Ussuri and Train jobs
as those aren't supported by the community anymore.
The patch also updates old openstack.org links.

Depends-On: https://review.opendev.org/c/openinfra/ansible-role-refstack-client/+/854211
Change-Id: Idf69f02ba844bdeea21ec744ec41ca78bbd1907d
2022-08-23 16:18:31 +02:00
Martin Kopec
eb3c6d4957 Update setup.cfg and tox.ini
Add Python 3.9 to the list of supported Pythons and replace
dashes (which are deprecated) with underscores.

Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: I12cc6206ebfe06b7cf3a50ea59bf1b55a3ff7303
2022-05-10 20:56:51 +02:00
Martin Kopec
71000ff2d5 Reflect osf/ to openinfra/ namespace rename
Lately osf/ namespace got renamed to openinfra/ [1], this commit
reflects this change within refstack-client's repo.

[1] https://review.opendev.org/c/openstack/project-config/+/808479

Change-Id: I629d84cc8eed63ef8f33d3e063a3c7dc763c1d37
2021-10-21 21:08:37 +00:00
lpiwowar
9b8892c2dd Change documentation configuration
This patch makes sure that the html documentation is generated with
alabaster theme.

Change-Id: Id2f13d44100a1eeb97670ea49f600d29119258e9
2021-10-12 16:22:44 +02:00
Martin Kopec
7fbf6dad17 Update zuul jobs for Xena cycle
Use Xena zuul job template which contains also py39 job
and add jobs to run refstack-client also on stable/wallaby
release.
Also per Xena testing runtime we need to support at least
py36 and py38:
https://governance.openstack.org/tc/reference/runtimes/xena.html

Depends-On: https://review.opendev.org/c/openstack/devstack/+/790353
Change-Id: Id65875ab48ce1b25bd929cb784a86a093c586e73
2021-05-09 08:50:01 +00:00
Martin Kopec
c212ff55d2 Inclusive jargon in tox.ini
tox deprecated its whitelist_externals option in
3.18 release. The patch bumps the min version of tox
to 3.18 and renames the option from whitelist_externals
to allowlist_externals.

Change-Id: I06bf94861056e06722da839f7c5c8c60be2fc6ee
2021-01-09 15:53:31 +00:00
Martin Kopec
2fc66e3502 Add openstack cover job
The patch adds a new job which runs cover tox environment
to show code coverage by unit tests.

Change-Id: I888cd729b9a1dbe65a3380da357eafc1cc961b36
2020-12-18 20:32:26 +00:00
Manik Bindlish
474d3bbc4d Update min tox version to 2.0
The commands used by constraints need at least tox 2.0.
Update to reflect reality, which should help with local running of
constraints targets.

Change-Id: I35e4facae2d35838a73cdb6100968e98b550ea43
2020-11-19 15:52:22 +00:00
Martin Kopec
f069afca67 Fix pep8, flake8 and unit test failures
The patch edits the code so that it complies with W605 rule
wherever it makes sense. W504 rule is added to a ignore list.
High version cap of pyflakes and flake8 packages is increased
as well.

Change-Id: I51558ee9c808e03b4164d0832fc525c5556dddd1
2020-11-18 15:42:33 +00:00
Ghanshyam Mann
a2b4ce30b8 Update jobs for interop repos renaming
Interop repos are going under rename from
openstack namespace to osf namespace (Depends-On),
which need update the zuul job to start using the
new location.

Update .gitreview as well.

Disable py27 and py35 jobs, they don't work anymore as is.

Depends-On: https://review.opendev.org/#/c/734669/
Change-Id: Ib6871eaf0735e756f051d14513869fbe7cc6e826
2020-06-13 18:57:48 +02:00
Martin Kopec
fb9f35d13f Improve python3 compatibility
The review:
 * adds a python3 job in order to test the refstack-client with
   python3 as well.
 * adds a job which runs unit tests by python3.7
 * changes default python3 (when -p 3 is specified) in setup_env script
   to version 3.6.0
 * converts downloaded list of tests from bytes to str in order to unify
   the types used for python2 and python3 compatibility.
 * edits -p argument in the setup_env script so that it also accepts a full
   version of Python a user wants to run with, before there were 2 options:
    * python2.7.8
    * python3.6.0
 * sets object-storage.operator_role to Member in tempest.conf in order to run
   tempest.api.object_storage.test_container_services.ContainerTest tests

Change-Id: I961f0f093bd7d40fde7e448ea12ef9907c61d126
2019-09-09 16:38:21 +00:00
huang.zhiping
5f95355189 Add tox python3 overrides
Change-Id: I898d708ed89cc44acd480811137076354169277b
2019-01-22 02:34:11 +00:00
Zuul
f3ea2eda1e Merge "Fix tox for running py3.6" 2018-12-07 19:19:57 +00:00
Martin Kopec
549cdc5ceb Constraint flake8 version
A month ago a flake8 3.6.0 version was released and it's been causing
pep8 check gate fail since then.
This patch
 * removes flake8 dependency from tox.ini file, because otherwise
   version defined in test-requirements.txt is not taken into account.
 * flake8==2.0 version is too old so the version is bumped, however, it's
   limited for versions < 3.6.0
 * pyflakes version needs to be bumped too otherwise it doesn't work
   with newer flake8 versions

Change-Id: I470d1e8ae69aff87dcc9bf9dfa988370efb2817d
2018-11-20 14:12:09 +00:00
Chuck Short
db2e094dcf Fix tox for running py3.6
Fix unit tests to run with py3.6.

Change-Id: I96d8e28fe22d5344576caf49f6f7631b96e87b0f
Signed-off-by: Chuck Short <chucks@redhat.com>
2018-09-01 21:41:55 +00:00
Chandan Kumar
e1744ea1e4 Generate tempest.conf automatically using refstack-client
Usage: $ refstack-client config --use-test-accounts <path to test
         accounts file>

If not accounts.yaml is passed then:
  $ refstack-client config
  It will generate accounts.yaml and tempest.conf in etc folder

* It adds support for the above command
* Added zuul based devstack job to run the same
* let setup_env handles the installation of tempestconf
* updated git url for tempest
* It also generates accounts.yaml if no account file is
  passed
* we can --overrides flag to overrides the tempest.conf
  value.
* volume-feature-enabled.api_v2=True is added as default
  in overrides as it is deprecated in Rocky cycle but needed
  for interop tests.

Depends-On: https://review.openstack.org/589260
Story: 2001696
Task: 19758

Change-Id: I9cabfc52672e7a8a54792ca9d867c62babf12cb7
2018-08-13 19:59:53 +05:30
Luz Cazares
d1bfd90593 Add support for new doc PTI jobs
Implement optional cleanup to support the new PTI jobs
for documentation which won't use tox anymore.

Docs tox environment will still available for developers but
it is no loger used in the gate to construct the documentation.

See http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: Ib26b711365389c59658f9d7f6cafd5acb736dfce
2017-12-18 15:35:32 -08:00
Chandan Kumar
2619ebac4d Fixed tox.ini to run py35 tests
* Let tox auto handles the setting for LANG variables in order to
  fix py35 tox venv creation and installation.
* Use OS_TEST_PATH in tox variables and re-use it

Change-Id: I534ed66d154b6b05a03a06eb0baa0ff23d851f4e
2017-12-11 14:53:25 +05:30
Chandan Kumar
d159cc379e Switch to stestr for running unit tests
* As stestr is the successor of testr, it's time to switch to
  stestr for running refstack unit tests.

Change-Id: I3b9c0e2b4363dec24bad43bf5cfbeef4ecc7a37c
2017-12-05 17:07:45 +05:30
Luz Cazares
a2d5654879 Fix documentation tree
Fixed autogenerated sphinx documentation main tree
to include all approved specs.

Change-Id: Icb5cc6bf87a75929e9a683ac98ab512c69a945a7
2017-11-20 10:30:21 -08:00
Luz Cazares
c876311111 Add python35 support
To be aligned with community goals
Add python35 support to refstack-client

Change-Id: I42ccc6128fc6a83ddee0e4014cbe2c8793b84012
2017-08-09 18:28:53 -07:00
M V P Nitesh
3db8e64be0 Add 'rm -f .testrepository/times.dbm' command in testenv
Running py2* post py3* tests results in error. Add
'rm -f .testrepository/times.dbm' command in testenv to
resolve this.

Change-Id: I29d6247e11f1c9c207e9b89c0ae41f590141d281
2017-06-14 12:41:41 +05:30
Ondřej Nový
d55c1facc9 Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: I3cb2252fbb3fbb5e80a46bd0fa18eadabba0c3ee
2015-12-11 21:27:49 +01:00
sslypushenko
29bd7040d2 Post test results signed with RSA key
Added feature to upload test results in to Refstack API signed with
your personal RSA key. Just do upload with key '-i PATH_TO_PRIVATE_KEY'.
You can use your general OpenSSH key ~/.ssh/id-rsa or
generate a new one with 'ssh-keygen -b 4096'.

Change-Id: Icce6d7146f0fa9de892d1f4785ef24f17fc9b286
2015-04-13 22:01:03 +03:00
Paul Van Eck
456b885255 Change returncode checking to file checking
Previously, after the run_tempest script, was run, all post-processing
was done only if the returncode was 0. If it was non-zero, an error message
was given. This was an oversight, as the run_tempest script will return a code
of 1 when any test case fails. This leaves the unintended side effect of refstack
not parsing the results or producing the output json when Tempest successfully
runs, but a test case fails.

Checking for the existence of the expected subunit file will at least validate
that the Tempest test was at least started successfully, and didn't fail to run
due to some misconfiguration in the environment.

Change-Id: I541b798db41b713525efeb8dedfb9347be780a3f
2015-01-07 10:54:55 -08:00
sslypushenko
65538f145d Rename refstack-client to refstack_client
This renaming and change of project structure is necessary for adding
the unit tests.

Change-Id: I1893afbb05c86c83312983b12ce601d59a7fb417
2014-09-23 15:17:17 +03:00
David Lenwell
ac37215e45 First Commit 2014-07-10 11:48:59 -07:00