Commit Graph

6 Commits

Author SHA1 Message Date
Sean McGinnis 22efa8fd7f Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I5ad2c7a44dee2e19ab2576f206c69d94126a22b1
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Co-Authored-By: zhurong <aaronzhu1121@gmail.com>
2020-04-20 03:54:03 -07:00
zhurong 4985bfa010 Switch test runner to django default runner
nose is not actively maintained now and Django default test runner
seems to have enough features.

Horizon test setting no longer depends on nose and related stuffs.
This commit cleans up nose related dependencies.
The change was made in horizon Rocky-3,
so horizon 14.0.0.0b3 is required at least.

And murano-dashboard using unittest instead of testtools.

Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Change-Id: I419e0e166ea88c3ab1203f35ffa00928cf94acb1
Depends-On: https://review.openstack.org/599156/
2018-10-09 02:22:08 +00:00
Paul Bourke 78732bf776 Add encryptData yaql function
Adds a new yaql function 'encryptData' which encrypts values passed from
MuranoPL UI definitions.

Requires a valid secret storage backend (e.g. Barbican) to be configured
via Castellan in _50_murano.py

Murano will still work fine without this config but the encrypt/decrypt
functions will be unavailable.

Implements blueprint: allow-encrypting-of-muranopl-properties
Depends-On: I09416b6d35ed2dafa823eca98262a4e23081e6eb
Change-Id: Ida94093425a113b67baa05a194525e3cf4e16f79
2017-07-21 13:36:39 +01:00
Felipe Monteiro 1168ea718f Increase unit test coverage for muranodashboard Yaql Functions.
implements bp: murano-unit-test-coverage

Change-Id: I44c7090b2013d92bfee63bd3471d0abb568f59f9
2016-12-05 14:47:03 -05:00
Valerii Kovalchuk af5ad53697 Make _generate_hostname() and int2base() work in python3
Change-Id: I371fe8791eee5f39aa228961c05f6c5c0f25f1bf
Closes-bug: #1604000
2016-07-18 18:47:31 +03:00
Kirill Zaitsev 61f9587017 Make generateHostname honor pattern parameter
This patch restores behaviour broken by
I369f79c4258367974eb676cecb6eb1c941803503
The function now returns the pattern if supplied.

Change-Id: I6349555361ab9b12cf2cbd54d130c1979185dd18
Closes-Bug: #1588405
2016-07-18 16:42:37 +03:00