This commit adds opportunity to call original method
in mock method. Corresponding test is attached.
Targets blueprint mocking-machinery
Change-Id: I889bb576e708d28a083c0a25f66c999a6492057f
Functions for injecting class methods or objects with mocks are added:
* mock can be provided as method name
* mock can be provided as YAQL expression
* Also, withOriginal function is added.
withOriginal allows to use data from the original context in mock function.
Targets blueprint mock-context-manager
Depends-On: I9a55d07188ff06bdf98248f011a700c297e33417
Change-Id: Iefee767390209bfad0cca4f39389e0205cd3c9e2
This patch enhances the GET /catalog/packages Murano API call with
option to filter packages by id.
Partially implements bp assign-category-button
Change-Id: I86bbdbde74a7fa086197adef7a91199704811f72
It is possible that there are several public networks exist.
ExistingNeutronNetwork used to pick first one of them.
Now when internal network name or ID supplied it tries
to find such public network that the internal network has
a common router with.
Change-Id: I252bb5545891903355cf7f8480a2cd76febcfebe
Closes-Bug: #1524322
Previously oslo.messaging's MessageHandlingServer
was used as as a murano-engine service in service launcher.
As a result it's wait() method was called. But after recent
changes it's wait method is supposed to be call only
after stop() to wait for graceful message processing to end.
As a result a warning was printed that stop() didn't finish
after 30 sec from wait() invocation (because it was never called).
This commit adds EngineService service implementation
that has its own wait() and encapsulates MessageHandlingServer
instance.
Change-Id: Ie553e0b27cc1c261b963907b4f12f89795b99a12
Closes-Bug: #1521087
It is used in murano-test-runner.
Mocks are inserted into new context, that is created
from the current context:
If mock for the current object exist, new linked context
(``murano.dsl.linked_context.LinkedContext``) will be returned. It links
existing context with the new context, where mock definition is presented.
So if mocked function will be called, context will contain two
definitions with that function: mock and original one, but mock will have
higher priority.
If there is no mock for the current object or class, existing context
will be returned. If there is no existing context, *None* will be returned.
Targets blueprint mock-context-manager
Depends-On: I9eccdf3af1802c731bfdfb93df92c4ad902a4d34
Change-Id: I9a55d07188ff06bdf98248f011a700c297e33417
It is a new smart type, that verifies function parameter
whether it belongs to the on of the specified in the function
declaration classes.
Targets blueprint mock-context-manager
Change-Id: I9eccdf3af1802c731bfdfb93df92c4ad902a4d34
Previously if request without 'HTTP-Authorization' header comes to
external context middleware it raised error code 500 Internal Server
Error instead of 401 Unauthorized.
Change-Id: I8285d24741bed5b541a4f8104422340c8594c695
Closes-Bug: #1522707
This commit does dot HOT template outputs (for Heat.HOT/1.0 format)
the same that was previously done for the inputs. Instead of generating
MuranoPL property per each output now all outputs are put into a
single 'templateOutputs' property. This allows to eliminate the constraints
on output names, not to have collisions with input names and remain
consistent with previous changes.
Change-Id: Ibbd0a2f410c55385cd3cb9e85ea135a36460afe7
Closes-Bug: #1520954
There is no separator Between request path and
'Accept' in the debug log.
This patch adds white space separator between
request path and 'Accept'.
Change-Id: I82c553b50975a3c5898fa8ee6db10c796bd5987c
This commit introduces some functional tests for Chef and Puppet
example applications.
Depends-On: I1363e46d655c8a641a1fa404faadc5f652f9fce4
Change-Id: I0a455d02a08d7c695f9f39e86b0dbb8b87deb5f2
Functional tests need to have configured the default
region when there is a testbed with multiples regions.
Partially Closes Bug: #1479260
Change-Id: Ib9488c7632fe88a22b014f5e251b48d12fa1dbce
Murano does not get keystone endpoint when Keystone is configured to use
templated catalog
Change-Id: Id568c0a59b2e99dc946b1f2f55f6b233fd6a1b27
Closes-bug: #1514692
Sometimes package section can be provided with input parameters from
Cloud Foundry. We need to skip it to prevent various errors.
Change-Id: I181d4227d05d90f7bccf723e6b04957227ebbfd4
Closes-Bug: #1517035
This feature will allow having private and public environment templates, as well as,
to obtain all public templates from all tenants. In addition, a clone functionality
is added to copy a template from a tenant to another.
Change-Id: I702d9d707cb14195278b1cc2084fe9609660a3fe
Targets-blueprint: abstract-env-template
The case
$dict[$key]: value
for integer $key was not addressed in LHS expression logic.
As a result no changes were made to $dict and no error was raised.
Change-Id: I969dab5f0d32312cf52490945934557c32f22dde
Closes-Bug: #1515612
Previously, the help message of --os-auth-url, "Authentication URL
(Env: OS_AUTH_URL)", is not same as other arguments of OS
environment variable. So update it to same format.
Change-Id: Iaed9b56016af8ce4c3470c55157458563b41ddcb
Closes-Bug: #1515781
Now we can use keystonemiddleware and murano context middleware for requests
from outside OpenStack so we don't need to recreate keystoneclient for each
request and can easily get token from the request headers. That makes
authorization proccess a lot easier in terms of source code.
Change-Id: If937501074b85d43921fdb108f8af3babeded828
Closes-Bug: #1512254
New middleware will solve the problem with non-Openstack requests by
adding some minimal required headers.
Change-Id: I49986e73d0eb3da1ce13d22771c6bcb5a28ba846
Implements: bp external-request-middleware