python-tripleoclient/tripleoclient/tests
Harald Jensås 86522255e3 Implement protected resource types
When using the oc deploy command with the options
--baremetal-provision, --vip-file and network-v2
version networks definition the heat environment
files are added to user environments internally.
Including the legacy environment files, such as
`network-isolation.yaml` would result in overriding
the internally defined resource types and a failed
deployment.

This patch implements a check that will detect
resource type conflicts and raise error if a
protected resource type is overriden.

For users that may still want/need to override the
resource types, the protection can be disabled by
setting: `--disable-protected-resource-types`

NOTE: Parameter's are left unprotected since
  traditionally THT interfaces always allowed
  overriding anything and everything.

Also refactor the process_multiple_environments
method by splitting part of method to the new
rewrite_env_path method, so that it can be used
also when checking for prohibited overrides.

Depends-On: I8008344f215be6a54e00d7d27b697375b7f88f0f
Change-Id: I8e0f2762d744b21ec1555faa1e9bbe6e2d00f67b
2021-06-30 22:03:10 +02:00
..
config Use ephemeral Heat by default 2021-06-11 07:53:10 -04:00
fixture_data Use ephemeral Heat by default 2021-06-11 07:53:10 -04:00
v1 Implement protected resource types 2021-06-30 22:03:10 +02:00
v2 Make 'ansible_playbooks' pre-network config only 2021-06-16 15:18:09 +02:00
workflows Fix overcloud node provide 2021-06-11 11:21:18 +05:30
__init__.py Rename rdomanager_oscplugin to tripleoclient 2015-09-08 10:22:22 -04:00
base.py Save DefaultPasswords values for undercloud deploy 2017-04-26 20:38:00 +01:00
fakes.py Move get_ctlplane_attrs to utils 2021-06-09 20:44:24 +02:00
test_export.py Use ceph_mon_network to find Ceph monitor IPs for export 2021-04-08 11:41:51 +00:00
test_heat_launcher.py Check for the service queue with ephemeral heat 2021-06-10 09:43:30 +05:30
test_overcloud_credentials.py Use ansible playbook for creating overcloudrc 2020-05-05 17:18:16 +05:30
test_plugin.py Update client to create archive and use tripleo-common 2021-01-20 09:43:52 -06:00
test_utils.py Implement protected resource types 2021-06-30 22:03:10 +02:00