Commit Graph

3 Commits

Author SHA1 Message Date
Matt Borland e8e84c2db4 Flavors panel can switch to Angular
This patch enables all of the features for the Flavors panel to use Angular but
disables it, so that it is easy to switch on/off.

Note that we add integration test switches since it can't read the Django
conf.

Note that I changed the common tests to allow for testing of api calls that
don't produce error toasts, because we needed better branch coverage, and
the deleteFlavor api wasn't fully branch-tested.

Change-Id: I92b1b57bd486e5eb87179cb8d44b7551e9de2e0f
Partially-Implements: blueprint ng-flavors
2016-10-11 15:49:55 -07:00
Rob Cresswell 1050755d05 Add ANGULAR_FEATURES setting dict
We should unify the angular features (new panels, workflows, etc.) in a
single setting. This also makes it a little cleaner to read, simply
using the 'truthiness' of a key rather than string comparisons.

I haven't moved the 'swift_panel' setting, as that panel will be removed
in the O cycle anway, so it seems pointless to move a setting causing
potential issues for a single cycle.

Change-Id: Ia5702ff523355ae895e14cc3d49c895128478944
2016-08-15 21:01:53 +00:00
Matt Borland 75427ad7f9 Pre-test hook for integration tests/deprecated
We want to allow for integration tests to test deprecated panels.  This
means that we need to override the configurations provided by the panels
and force a 'legacy' setting.

On the Infra side, we need to pass in an environment variable that tells this
override to be enabled.

Depends-On: I20232ef16ae60a7151e267b506af471ebfed2f7f
Change-Id: If5a3e273098aa726e12f9076c0273a5afaf233d2
Partially-Implements: blueprint test-deprecated-features
2016-08-11 07:26:34 -06:00