Commit Graph

11 Commits (c19c4dca002ffaf352d63de5be2d294d6e49893f)

Author SHA1 Message Date
Zuul 3720db0ed6 Merge "Enable some off-by-default checks" 6 years ago
junboli 6ec05cc210 Switch from ostestr to stestr
This change updates the tox.ini file to call stestr
directly instead of going through ostestr.
For more background you can read the ML posting:
    https://goo.gl/TFvcxy
So now you won't need `--n` to run single tests, and you
can also supply regex directly without even the `--`.
For example:
  `tox -epy27 $regex`

Change-Id: I2b9b7fbd60b2cc5eea8af01e20cde5714df5027a
6 years ago
chenghuiyu 045995b079 Enable some off-by-default checks
Some of available checks are disabled by default,
like:[H106] Don’t put vim configuration in source
files;[H203] Use assertIs(Not)None to check for None;
[H904] Delay string interpolations at logging calls

Change-Id: Ic43e8b77cd6a700f3b71e89d6017f11a742fe87f
6 years ago
junboli e3573b7995 TrivialFix: make correction for error notes
We don't use wsmeext.sphinxext, it should be oslo_policy.sphinxext
not wsmeext.sphinxext. This patch is to correct this.

Change-Id: I33e717d5938bbe747ce93dbc79dcfca9cc78bc20
6 years ago
junboli eaa667d4df Fix 'cover' tox job fails for option --coverage not recognized
When running command tox -ecover, tox job will fail. the error message is

======================================================================
FAIL: process-returncode
tags: worker-0
----------------------------------------------------------------------
returncode 1
Ran 733 (+17) tests in 856.852s (+164.804s)
FAILED (id=6, failures=2, skips=7)
error: testr failed (1)
ERROR: InvocationError: '/home/github/mistral/.tox/py27/bin/python setup.py test
_____________________________________________________ summary __________________
ERROR:   py27: commands failed

Change-Id: I21a335992683aa94d2cf47c4a4fc0f43849dec9a
Closes-bug: #1724121
6 years ago
Lingxian Kong 851227deea Add devstack installation doc
Change-Id: I7db6a270489aa7f8191ab1db7c6107bfa853e51f
6 years ago
Lingxian Kong be7a929743 Add functional tests for runtime
Change-Id: Ie1c77a86f7682a50d8b85b4ca19be6f1f38c431b
6 years ago
Lingxian Kong 1171944560 Add basic unit test structure
Partially implements: blueprint add-unit-tests

Change-Id: Ic96dcaf401f30bc098738818630777fc62040aca
6 years ago
Lingxian Kong 786f83d182 Support Keystone session in python runtime
Keystone session can be used directly in user function to access
OpenStack services.

Include openstack clients in python requirements as well.

Add a python function example.

Implements: blueprint qinling-openstack-clients
Change-Id: I4798c404cb57bafe14049f57ba8db7c7125106c7
6 years ago
Lingxian Kong 14812384c2 Make api service work 6 years ago
Lingxian Kong ef833a417f Initial commit for qinling project 6 years ago