Commit Graph

4 Commits (4a500125b350b46dee0d3c9f01c3cac7223d9c80)

Author SHA1 Message Date
Rakesh H S 4866280ecd Convergence: Fix unit tests
Some of the unit tests fail when convergence_engine is set as true
in config. This is mainly due to the convergence flag in some of the
functions/methods which is expected to be True but is set to False for
legacy engine.

Change-Id: I57ef37d4fd79f0b453aef9c16876495901c2d802
Closes-Bug: #1567321
7 years ago
Angus Salkeld 3ed5948b1c Set enforce_type=True on config overrides in tests
This makes sure that type checking is done by oslo.config
on the test override values.

Change-Id: Ia8c1cb55fe98e9d06b9b9ff13e5c2d25aa67bff3
Closes-bug: #1517839
7 years ago
Rabi Mishra e2294da861 Fix action (CREATE) in progress error for TemplateResource/RG
When StackResource 'update_with_template' is called and there
is no existing nested_stack, we call create_stack with an empty
template(TemplateResource CREATE_FAILED->UPDATE flow). We check
db for CREATE_COMPLETE before calling update_stack.There is a
possibility that the create_stack green thread has not finished
and released the stack lock. By persisting the stack state for
COMPLETE/FAILED in the same db session as releasing the lock,
when green thread finishes it's run, we can avoid this race
condition.

Change-Id: I1442a7bcedb4fa340ee4f0e6ebc3705544c2a9dd
Closes-Bug: #1498495
8 years ago
tengqm 78911b208f Split engine service test cases (10)
This patch further separates out the stack-adopt unit tests into a
dedicated module.

Change-Id: I68a0f04a8f5efdd91283be8f15289a45e7789446
8 years ago