diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 6a0caeb9..e6237f8f 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -31,10 +31,11 @@ jobs:
git checkout gh-pages
rm -rf $(basename ${GITHUB_REF})
mv docs/_build/html $(basename ${GITHUB_REF})
+ ln --force --no-dereference --symbolic $(dirname v*/index.html | sort --version-sort --reverse | head -n1) latest
git show origin/develop:docs/_gh_include/header.inc > index.html
- (echo develop; dirname *.*.*/index.html | sort --version-sort --reverse) | xargs -I@@ -n1 echo '
' >> index.html
+ (echo develop; echo latest; dirname *.*.*/index.html | sort --version-sort --reverse) | xargs -I@@ -n1 echo '' >> index.html
git show origin/develop:docs/_gh_include/footer.inc >> index.html
- git add $(basename ${GITHUB_REF}) index.html
+ git add $(basename ${GITHUB_REF}) latest index.html
git commit -m "update docs for $(basename ${GITHUB_REF})" || true
- name: push docs
run: git push origin gh-pages
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 1d725d61..b6c11652 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -41,7 +41,7 @@ jobs:
with:
python-version: ${{ matrix.python }}
- name: Restore pip cache
- uses: actions/cache@v2.1.6
+ uses: actions/cache@v2.1.7
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
@@ -77,7 +77,7 @@ jobs:
with:
python-version: "3.8"
- name: Restore pip cache
- uses: actions/cache@v2.1.6
+ uses: actions/cache@v2.1.7
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
@@ -101,7 +101,7 @@ jobs:
with:
python-version: "3.8"
- name: Restore pip cache
- uses: actions/cache@v2.1.6
+ uses: actions/cache@v2.1.7
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
@@ -126,7 +126,7 @@ jobs:
with:
python-version: "3.8"
- name: Restore pip cache
- uses: actions/cache@v2.1.6
+ uses: actions/cache@v2.1.7
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
diff --git a/.gitignore b/.gitignore
index 6068f380..fbfd4214 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,3 +14,4 @@ venv/
docs/plugins/
docs/_build/
changelogs/.plugin-cache.yaml
+importer_result.json
diff --git a/.mailmap b/.mailmap
index df888f7c..182211f3 100644
--- a/.mailmap
+++ b/.mailmap
@@ -4,7 +4,9 @@ Anton
Bernhard Hopfenmüller
Bernhard Hopfenmüller
Baptiste Agasse
+Baptiste Agasse
Christoffer Reijer
+Christoffer Reijer
Eric D. Helms
Manisha Singhal
Matthias Dellweg <2500@gmx.de>
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 7cba1051..ce184a53 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -6,6 +6,30 @@ redhat.satellite Release Notes
This changelog describes changes after version 0.8.1.
+v3.1.0
+======
+
+Minor Changes
+-------------
+
+- Warn if the user tries to use a plain HTTP server URL and fail if the URL is neither HTTPS nor HTTP.
+- new ``compute_profiles`` role to manage compute profiles
+- new ``compute_resources`` role to manage compute resources
+- new ``content_view_publish`` role to publish a list of content views (https://github.com/theforeman/foreman-ansible-modules/issues/1209)
+- new ``domains`` role to manage domains
+- new ``operatingsystems`` role to manage operating systems
+- new ``provisioning_templates`` role to manage provisioning templates
+- new ``settings`` role to manage settings
+- new ``subnets`` role to manage subnets
+- repository - new ``download_concurrency`` parameter (https://github.com/theforeman/foreman-ansible-modules/issues/1273)
+
+Bugfixes
+--------
+
+- callback plugin - include timezone information in the callback reported data (https://github.com/theforeman/foreman-ansible-modules/issues/1171)
+- hostgroup, location - don't fail when trying to delete a Hostgroup or Location where the parent is already absent
+- inventory plugin - fetch *all* facts, not only the first 250, when using the old Hosts API
+
v3.0.0
======
diff --git a/Makefile b/Makefile
index 639af7a5..d7e3f25c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
-NAMESPACE := $(shell python -c 'import yaml; print(yaml.safe_load(open("galaxy.yml"))["namespace"])')
-NAME := $(shell python -c 'import yaml; print(yaml.safe_load(open("galaxy.yml"))["name"])')
-VERSION := $(shell python -c 'import yaml; print(yaml.safe_load(open("galaxy.yml"))["version"])')
+PYTHON_COMMAND ?= python
+NAMESPACE := $(shell $(PYTHON_COMMAND) -c 'import yaml; print(yaml.safe_load(open("galaxy.yml"))["namespace"])')
+NAME := $(shell $(PYTHON_COMMAND) -c 'import yaml; print(yaml.safe_load(open("galaxy.yml"))["name"])')
+VERSION := $(shell $(PYTHON_COMMAND) -c 'import yaml; print(yaml.safe_load(open("galaxy.yml"))["version"])')
MANIFEST := build/collections/ansible_collections/$(NAMESPACE)/$(NAME)/MANIFEST.json
ROLES := $(wildcard roles/*)
@@ -9,7 +10,7 @@ METADATA := galaxy.yml LICENSE README.md meta/runtime.yml requirements.txt chang
$(foreach PLUGIN_TYPE,$(PLUGIN_TYPES),$(eval _$(PLUGIN_TYPE) := $(filter-out %__init__.py,$(wildcard plugins/$(PLUGIN_TYPE)/*.py))))
DEPENDENCIES := $(METADATA) $(foreach PLUGIN_TYPE,$(PLUGIN_TYPES),$(_$(PLUGIN_TYPE))) $(foreach ROLE,$(ROLES),$(wildcard $(ROLE)/*/*)) $(foreach ROLE,$(ROLES),$(ROLE)/README.md)
-PYTHON_VERSION = $(shell python -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')
+PYTHON_VERSION = $(shell $(PYTHON_COMMAND) -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')
COLLECTION_COMMAND ?= ansible-galaxy
SANITY_OPTS = --venv
TEST =
@@ -45,6 +46,7 @@ lint: $(MANIFEST) | tests/test_playbooks/vars/server.yml
ansible-lint -v roles/*
ansible-playbook --syntax-check tests/test_playbooks/*.yml | grep -v '^$$'
flake8 --ignore=E402,W503 --max-line-length=160 plugins/ tests/
+ GALAXY_IMPORTER_CONFIG=tests/galaxy-importer.cfg python -m galaxy_importer.main $(NAMESPACE)-$(NAME)-$(VERSION).tar.gz
sanity: $(MANIFEST)
# Fake a fresh git repo for ansible-test
@@ -81,7 +83,7 @@ clean_%: FORCE $(MANIFEST)
setup: test-setup
test-setup: | tests/test_playbooks/vars/server.yml
- pip install --upgrade 'pip<20'
+ pip install --upgrade pip
pip install --upgrade -r requirements-dev.txt
tests/test_playbooks/vars/server.yml:
@@ -90,6 +92,7 @@ tests/test_playbooks/vars/server.yml:
dist-test: $(MANIFEST)
SATELLITE_SERVER_URL=https://foreman.example.test ansible -m $(NAMESPACE).$(NAME).organization -a "username=admin password=changeme name=collectiontest" localhost | grep -q "Failed to connect to Foreman server.*foreman.example.test"
+ SATELLITE_SERVER_URL=http://foreman.example.test ansible -m $(NAMESPACE).$(NAME).organization -a "username=admin password=changeme name=collectiontest" localhost 2>&1| grep -q "You have configured a plain HTTP server URL."
ansible-doc $(NAMESPACE).$(NAME).organization | grep -q "Manage Organization"
$(MANIFEST): $(NAMESPACE)-$(NAME)-$(VERSION).tar.gz
diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml
index 4b7d677d..38b45d3a 100644
--- a/changelogs/changelog.yaml
+++ b/changelogs/changelog.yaml
@@ -523,3 +523,39 @@ releases:
- drop-ansible28.yml
- validate-inventory-certs.yml
release_date: '2021-11-11'
+ 3.1.0:
+ changes:
+ bugfixes:
+ - callback plugin - include timezone information in the callback reported data
+ (https://github.com/theforeman/foreman-ansible-modules/issues/1171)
+ - hostgroup, location - don't fail when trying to delete a Hostgroup or Location
+ where the parent is already absent
+ - inventory plugin - fetch *all* facts, not only the first 250, when using the
+ old Hosts API
+ minor_changes:
+ - Warn if the user tries to use a plain HTTP server URL and fail if the URL
+ is neither HTTPS nor HTTP.
+ - new ``compute_profiles`` role to manage compute profiles
+ - new ``compute_resources`` role to manage compute resources
+ - new ``content_view_publish`` role to publish a list of content views (https://github.com/theforeman/foreman-ansible-modules/issues/1209)
+ - new ``domains`` role to manage domains
+ - new ``operatingsystems`` role to manage operating systems
+ - new ``provisioning_templates`` role to manage provisioning templates
+ - new ``settings`` role to manage settings
+ - new ``subnets`` role to manage subnets
+ - repository - new ``download_concurrency`` parameter (https://github.com/theforeman/foreman-ansible-modules/issues/1273)
+ fragments:
+ - 1171-timezone.yml
+ - 1209-content_views_role.yml
+ - 1301-failsafe-parents.yml
+ - 1303-foreman-repository-download-concurrency.yml
+ - add-compute-profile-role.yml
+ - add-compute-resource-role.yml
+ - add-domains-role.yml
+ - add-operatingsystems-role.yml
+ - add-provisioning-templates-role.yml
+ - add-settings-role.yml
+ - add-subnets-role.yml
+ - explicit-http-warning.yml
+ - inventory-facts-batch-size.yml
+ release_date: '2022-01-14'
diff --git a/galaxy.yml b/galaxy.yml
index c0adf75e..8289eb5b 100644
--- a/galaxy.yml
+++ b/galaxy.yml
@@ -65,19 +65,21 @@ authors:
- "achevalet "
- "calvingsmith <4283930+calvingsmith@users.noreply.github.com>"
- "furhouse "
+ - "gardar "
- "igramic <36156377+igramic@users.noreply.github.com>"
- "jerrejkw <43955357+jerrejkw@users.noreply.github.com>"
- "marco "
- "metalcated "
- "russianguppie <46544650+russianguppie@users.noreply.github.com>"
- "willtome "
-version: "3.0.0"
+version: "3.1.0"
license:
- "GPL-3.0-or-later"
tags:
- foreman
- katello
- satellite
+ - infrastructure
readme: "README.md"
homepage: "https://access.redhat.com/products/red-hat-satellite"
repository: "https://github.com/RedHatSatellite/satellite-ansible-collection"
diff --git a/plugins/callback/foreman.py b/plugins/callback/foreman.py
index 9b914ef8..be9600fc 100644
--- a/plugins/callback/foreman.py
+++ b/plugins/callback/foreman.py
@@ -166,8 +166,10 @@ def get_time():
def get_now():
"""
Return the current timestamp as a string to be sent over the network.
+ The time is always in UTC *with* timezone information, so that Ruby
+ DateTime can easily parse it.
"""
- return datetime.utcnow().isoformat()
+ return datetime.utcnow().strftime("%Y-%m-%d %H:%M:%S+00:00")
class CallbackModule(CallbackBase):
@@ -283,7 +285,6 @@ def send_reports_proxy_host_report(self, stats):
changes.
"""
for host in stats.processed.keys():
- total = stats.summarize(host)
report = {
"host": host,
"reported_at": get_now(),
@@ -292,17 +293,10 @@ def send_reports_proxy_host_report(self, stats):
"total": int(get_time() - self.start_time)
}
},
- "status": {
- "applied": total['changed'],
- "failed": total['failures'] + total['unreachable'],
- "skipped": total['skipped'],
- },
+ "summary": stats.summarize(host),
"results": self.items[host],
"check_mode": self.check_mode,
}
- if self.check_mode:
- report['status']['pending'] = total['changed']
- report['status']['applied'] = 0
self._send_data('report', 'proxy', host, report)
self.items[host] = []
diff --git a/plugins/inventory/foreman.py b/plugins/inventory/foreman.py
index 4152cce6..4503bf55 100644
--- a/plugins/inventory/foreman.py
+++ b/plugins/inventory/foreman.py
@@ -256,8 +256,20 @@ def _get_json(self, url, ignore_errors=None, params=None):
break
elif isinstance(json['results'], MutableMapping):
# /facts are returned as dict in 'results'
- results = json['results']
- break
+ if not isinstance(results, MutableMapping):
+ results = {}
+
+ # check for end of paging
+ if len(json['results']) == 0:
+ break
+
+ for host, facts in json['results'].items():
+ if host not in results:
+ results[host] = {}
+ results[host].update(facts)
+
+ # get next page
+ params['page'] += 1
else:
# /hosts 's 'results' is a list of all hosts, returned is paginated
results = results + json['results']
diff --git a/plugins/module_utils/foreman_helper.py b/plugins/module_utils/foreman_helper.py
index 1e4a28bd..f49ee365 100644
--- a/plugins/module_utils/foreman_helper.py
+++ b/plugins/module_utils/foreman_helper.py
@@ -381,6 +381,11 @@ def __init__(self, **kwargs):
self._foremanapi_password = self.foreman_params.pop('password')
self._foremanapi_validate_certs = self.foreman_params.pop('validate_certs')
+ if self._foremanapi_server_url.lower().startswith('http://'):
+ self.warn("You have configured a plain HTTP server URL. All communication will happen unencrypted.")
+ elif not self._foremanapi_server_url.lower().startswith('https://'):
+ self.fail_json(msg="The server URL needs to be either HTTPS or HTTP!")
+
self.task_timeout = 60
self.task_poll = 4
@@ -1315,6 +1320,8 @@ def __init__(self, **kwargs):
if 'parent' in self.foreman_spec and self.foreman_spec['parent'].get('type') == 'entity':
if 'resouce_type' not in self.foreman_spec['parent']:
self.foreman_spec['parent']['resource_type'] = self.foreman_spec['entity']['resource_type']
+ if 'failsafe' not in self.foreman_spec['parent']:
+ self.foreman_spec['parent']['failsafe'] = True
current, parent = split_fqn(self.foreman_params[self.entity_key])
if isinstance(self.foreman_params.get('parent'), six.string_types):
if parent:
@@ -1424,10 +1431,14 @@ def __init__(self, **kwargs):
def run(self, **kwargs):
""" lookup entities, ensure entity, remove sensitive data, manage parameters.
"""
+ parent_name = self.foreman_params.get('parent')
if ('parent' in self.foreman_spec and self.foreman_spec['parent'].get('type') == 'entity'
- and self.desired_absent and 'parent' in self.foreman_params and self.lookup_entity('parent') is None):
- # Parent does not exist so just exit here
- return None
+ and 'parent' in self.foreman_params and self.lookup_entity('parent') is None):
+ if self.desired_absent:
+ # Parent does not exist so just exit here
+ return None
+ else:
+ self.fail_json(msg="Couldn't find parent '{0}' for '{1}'.".format(parent_name, self.foreman_params['name']))
if not self.desired_absent:
self.auto_lookup_entities()
entity = self.lookup_entity('entity')
diff --git a/plugins/modules/repository.py b/plugins/modules/repository.py
index f96f392f..9f52e278 100644
--- a/plugins/modules/repository.py
+++ b/plugins/modules/repository.py
@@ -112,6 +112,13 @@
- Repository SSL client private key
required: false
type: str
+ download_concurrency:
+ description:
+ - download concurrency for sync from upstream
+ - as the API does not return this value, this will break idempotence for this module
+ required: false
+ type: int
+ version_added: 3.0.0
download_policy:
description:
- download policy for sync from upstream
@@ -294,6 +301,7 @@ def main():
ssl_client_cert=dict(type='entity', resource_type='content_credentials', scope=['organization']),
ssl_client_key=dict(type='entity', resource_type='content_credentials', scope=['organization'], no_log=False),
download_policy=dict(choices=['background', 'immediate', 'on_demand']),
+ download_concurrency=dict(type='int'),
mirror_on_sync=dict(type='bool', default=True),
verify_ssl_on_sync=dict(type='bool'),
upstream_username=dict(),
diff --git a/requirements-dev.txt b/requirements-dev.txt
index 2c6d46b5..3a3328a1 100644
--- a/requirements-dev.txt
+++ b/requirements-dev.txt
@@ -11,7 +11,8 @@ rstcheck
docker
ruamel.yaml.clib<0.2.3; python_version < '3.6'
cryptography<3.1; python_version < '3.6'
--r requirements-lint.txt
-r requirements.txt
pylint==2.6.0; python_version >= '3.6'
voluptuous==0.12.1 # from https://github.com/ansible/ansible/raw/devel/test/lib/ansible_test/_data/requirements/sanity.validate-modules.txt
+pycodestyle==2.8.0 # from https://github.com/ansible/ansible/raw/devel/test/lib/ansible_test/_data/requirements/sanity.pep8.txt
+yamllint==1.26.3; python_version >= '3.5' # from https://github.com/ansible/ansible/raw/devel/test/lib/ansible_test/_data/requirements/sanity.yamllint.txt
diff --git a/requirements-lint.txt b/requirements-lint.txt
index a7bd6179..56ff02ce 100644
--- a/requirements-lint.txt
+++ b/requirements-lint.txt
@@ -1,3 +1,4 @@
flake8
yamllint
ansible-lint
+galaxy-importer
diff --git a/roles/compute_profiles/README.md b/roles/compute_profiles/README.md
new file mode 100644
index 00000000..231dea8f
--- /dev/null
+++ b/roles/compute_profiles/README.md
@@ -0,0 +1,54 @@
+redhat.satellite.compute_profiles
+===================================
+
+This role creates and manages Compute Profiles.
+
+Role Variables
+--------------
+
+This role supports the [Common Role Variables](https://github.com/theforeman/foreman-ansible-modules/blob/develop/README.md#common-role-variables).
+
+The main data structure for this role is the list of `satellite_compute_profiles`. Each `compute_profile` requires the following fields:
+
+- `name`: The name of the compute profile.
+
+The following fields are optional and will be omitted by default:
+
+- `description`: Description of the compute profile
+- `compute_attributes`: List of attributes for the profile on specific compute resources.
+
+Example Playbooks
+-----------------
+
+Create a compute profile named `1-Small` with a VMware spec of 1 single core CPU, 2 GiB of memory, 15 GiB of disk, and a VMXNET3 network card connected to `VM Network`:
+
+```yaml
+- hosts: localhost
+ roles:
+ - role: redhat.satellite.compute_profiles
+ vars:
+ satellite_server_url: https://satellite.example.com
+ satellite_username: "admin"
+ satellite_password: "changeme"
+ satellite_organization: "Default Organization"
+ satellite_compute_profiles:
+ - name: "1-Small"
+ compute_attributes:
+ - compute_resource: "VMware"
+ vm_attrs:
+ cluster: "cluster01"
+ path: /Datacenters/ha-datacenter/vm/
+ memoryHotAddEnabled: true
+ cpuHotAddEnabled: true
+ cpus: 1
+ corespersocket: 1
+ memory_mb: 2048
+ volumes_attributes:
+ 0:
+ datastore: "datastore1"
+ size_gb: 15
+ interfaces_attributes:
+ 0:
+ type: "VirtualVmxnet3"
+ network: "VM Network"
+```
diff --git a/roles/compute_profiles/tasks/main.yml b/roles/compute_profiles/tasks/main.yml
new file mode 100644
index 00000000..b798161a
--- /dev/null
+++ b/roles/compute_profiles/tasks/main.yml
@@ -0,0 +1,11 @@
+---
+- name: 'Create Compute Profiles'
+ redhat.satellite.compute_profile:
+ username: "{{ satellite_username | default(omit) }}"
+ password: "{{ satellite_password | default(omit) }}"
+ server_url: "{{ satellite_server_url | default(omit) }}"
+ validate_certs: "{{ satellite_validate_certs | default(omit) }}"
+ name: "{{ item.name }}"
+ compute_attributes: "{{ item.compute_attributes | default(omit) }}"
+ state: "{{ item.state | default('present') }}"
+ loop: "{{ satellite_compute_profiles }}"
diff --git a/roles/compute_resources/README.md b/roles/compute_resources/README.md
new file mode 100644
index 00000000..964a2459
--- /dev/null
+++ b/roles/compute_resources/README.md
@@ -0,0 +1,53 @@
+redhat.satellite.compute_resources
+====================================
+
+This role creates and manages Compute Resources.
+
+Role Variables
+--------------
+
+This role supports the [Common Role Variables](https://github.com/theforeman/foreman-ansible-modules/blob/develop/README.md#common-role-variables).
+
+The main data structure for this role is the list of `satellite_compute_resources`. Each `compute_resource` requires the following fields:
+
+- `name`: The name of the compute resource.
+
+The following fields are optional and will be omitted by default:
+
+- `description`: Description of the compute resource
+- `provider`: Compute resource provider. Required if *state=present_with_defaults*.
+- `provider_params`: Parameter specific to compute resource provider. Required if *state=present_with_defaults*.
+
+Each `compute_resource` can also list a number of `images` associated with the compute resource.
+
+Example Playbooks
+-----------------
+
+Create a compute resource for vSphere, with a single image for RHEL 8.4.
+
+```yaml
+- hosts: localhost
+ roles:
+ - role: redhat.satellite.compute_resources
+ vars:
+ satellite_server_url: https://satellite.example.com
+ satellite_username: "admin"
+ satellite_password: "changeme"
+ satellite_organization: "Default Organization"
+ satellite_compute_resources:
+ - name: "VMware"
+ provider: "vmware"
+ provider_params:
+ url: "vcenter.example.com"
+ user: "administrator@vsphere.local"
+ password: "changeme"
+ datacenter: "ha-datacenter"
+ images:
+ - name: "RHEL-8.4"
+ operatingsystem: "RedHat-8.4"
+ architecture: "x86_64"
+ user_data: true
+ image_username: "root"
+ image_password: "changeme"
+ uuid: "Templates/rhel-8.4-template"
+```
diff --git a/roles/compute_resources/tasks/main.yml b/roles/compute_resources/tasks/main.yml
new file mode 100644
index 00000000..b1fe0894
--- /dev/null
+++ b/roles/compute_resources/tasks/main.yml
@@ -0,0 +1,32 @@
+---
+- name: 'Create Compute Resources'
+ redhat.satellite.compute_resource:
+ username: "{{ satellite_username | default(omit) }}"
+ password: "{{ satellite_password | default(omit) }}"
+ server_url: "{{ satellite_server_url | default(omit) }}"
+ validate_certs: "{{ satellite_validate_certs | default(omit) }}"
+ name: "{{ item.name }}"
+ description: "{{ item.description | default(omit) }}"
+ organizations: "{{ item.organizations | default(omit) }}"
+ locations: "{{ item.locations | default(omit) }}"
+ provider: "{{ item.provider | default(omit) }}"
+ provider_params: "{{ item.provider_params | default(omit) }}"
+ state: "{{ item.state | default('present') }}"
+ loop: "{{ satellite_compute_resources }}"
+
+- name: 'Create Images'
+ redhat.satellite.image:
+ username: "{{ satellite_username | default(omit) }}"
+ password: "{{ satellite_password | default(omit) }}"
+ server_url: "{{ satellite_server_url | default(omit) }}"
+ validate_certs: "{{ satellite_validate_certs | default(omit) }}"
+ name: "{{ item.1.name }}"
+ architecture: "{{ item.1.architecture | default(omit) }}"
+ compute_resource: "{{ item.0.name | default(omit) }}"
+ image_password: "{{ item.1.image_password | default(omit) }}"
+ image_username: "{{ item.1.image_username | default(omit) }}"
+ operatingsystem: "{{ item.1.operatingsystem | default(omit) }}"
+ user_data: "{{ item.1.user_data | default(omit) }}"
+ uuid: "{{ item.1.uuid | default(omit) }}"
+ state: "{{ item.1.state | default('present') }}"
+ loop: "{{ satellite_compute_resources | subelements('images', { 'skip_missing': True }) }}"
diff --git a/roles/content_view_publish/README.md b/roles/content_view_publish/README.md
new file mode 100644
index 00000000..871719cb
--- /dev/null
+++ b/roles/content_view_publish/README.md
@@ -0,0 +1,30 @@
+redhat.satellite.content_view_publish
+=======================================
+
+Publish a list of Content Views.
+
+Role Variables
+--------------
+
+This role supports the [Common Role Variables](https://github.com/theforeman/foreman-ansible-modules/blob/develop/README.md#common-role-variables).
+
+### Required
+
+- `satellite_content_views`: List of content views to publish
+
+Example Playbook
+----------------
+
+```yaml
+- hosts: localhost
+ roles:
+ - role: redhat.satellite.content_view
+ vars:
+ satellite_server_url: https://satellite.example.com
+ satellite_username: "admin"
+ satellite_password: "changeme"
+ satellite_organization: "Default Organization"
+ satellite_content_views:
+ - RHEL 7 View
+ - RHEL 8 View
+```
diff --git a/roles/content_view_publish/tasks/main.yml b/roles/content_view_publish/tasks/main.yml
new file mode 100644
index 00000000..2d1cc5b8
--- /dev/null
+++ b/roles/content_view_publish/tasks/main.yml
@@ -0,0 +1,12 @@
+---
+- name: "Publish content views"
+ redhat.satellite.content_view_version:
+ username: "{{ satellite_username | default(omit) }}"
+ password: "{{ satellite_password | default(omit) }}"
+ server_url: "{{ satellite_server_url | default(omit) }}"
+ validate_certs: "{{ satellite_validate_certs | default(omit) }}"
+ content_view: "{{ content_view }}"
+ organization: "{{ satellite_organization }}"
+ loop: "{{ satellite_content_views }}"
+ loop_control:
+ loop_var: "content_view"
diff --git a/roles/content_view_version_cleanup/tasks/main.yml b/roles/content_view_version_cleanup/tasks/main.yml
index a7768d5c..75759f5c 100644
--- a/roles/content_view_version_cleanup/tasks/main.yml
+++ b/roles/content_view_version_cleanup/tasks/main.yml
@@ -20,7 +20,8 @@
include_tasks: delete_cv_versions.yml
vars:
cv_name: "{{ ccv.name }}"
- cv_versions: "{{ (ccv.versions | rejectattr('environment_ids') | map(attribute='version') | map('float') | sort | map('string') | reverse | list)[satellite_content_view_version_cleanup_keep:] }}"
+ cv_versions: "{{ (ccv.versions | rejectattr('environment_ids') | map(attribute='version') | map('float') | sort
+ | map('string') | reverse | list)[satellite_content_view_version_cleanup_keep:] }}"
loop: "{{ all_cvs.resources | selectattr('composite') | list }}"
loop_control:
label: "{{ ccv.label }}"
diff --git a/roles/convert2rhel/tasks/products_and_repos.yml b/roles/convert2rhel/tasks/products_and_repos.yml
index fd4b9d00..504bb034 100644
--- a/roles/convert2rhel/tasks/products_and_repos.yml
+++ b/roles/convert2rhel/tasks/products_and_repos.yml
@@ -13,7 +13,8 @@
organization: "{{ satellite_organization }}"
name: "Convert2RHEL CA"
content_type: cert
- content: "{{ ct.stat.exists | ternary(lookup('file', '/etc/rhsm/ca/redhat-uep.pem', errors='ignore', rstrip=False), lookup('url', 'https://ftp.redhat.com/redhat/convert2rhel/redhat-uep.pem', split_lines=False)) }}"
+ content: "{{ ct.stat.exists | ternary(lookup('file', '/etc/rhsm/ca/redhat-uep.pem', errors='ignore', rstrip=False),
+ lookup('url', 'https://ftp.redhat.com/redhat/convert2rhel/redhat-uep.pem', split_lines=False)) }}"
state: present
- name: "Create '{{ satellite_convert2rhel_rhel7_product }}' product and repositories"
diff --git a/roles/domains/README.md b/roles/domains/README.md
new file mode 100644
index 00000000..e7d7649e
--- /dev/null
+++ b/roles/domains/README.md
@@ -0,0 +1,41 @@
+redhat.satellite.domains
+==========================
+
+This role creates and manages Domains.
+
+Role Variables
+--------------
+
+This role supports the [Common Role Variables](https://github.com/theforeman/foreman-ansible-modules/blob/develop/README.md#common-role-variables).
+
+The main data structure for this role is the list of `satellite_domains`. Each `domain` requires the following fields:
+
+- `name`: The name of the domain.
+
+The following fields are optional and will be omitted by default:
+
+- `description`: Description of the domain.
+- `dns_proxy`: DNS proxy to use within this domain for managing A records.
+- `parameters`: Domain specific host parameters.
+
+Example Playbook
+----------------
+
+Create a domain `example.org`.
+
+```yaml
+- hosts: localhost
+ roles:
+ - role: redhat.satellite.domains
+ vars:
+ satellite_server_url: https://satellite.example.com
+ satellite_username: "admin"
+ satellite_password: "changeme"
+ satellite_domains:
+ - name: "example.org"
+ description: "Example Domain"
+ locations:
+ - "Uppsala"
+ organizations:
+ - "ACME"
+```
diff --git a/roles/domains/tasks/main.yml b/roles/domains/tasks/main.yml
new file mode 100644
index 00000000..75ab693d
--- /dev/null
+++ b/roles/domains/tasks/main.yml
@@ -0,0 +1,13 @@
+---
+- name: 'Create Domains'
+ redhat.satellite.domain:
+ username: "{{ satellite_username | default(omit) }}"
+ password: "{{ satellite_password | default(omit) }}"
+ server_url: "{{ satellite_server_url | default(omit) }}"
+ validate_certs: "{{ satellite_validate_certs | default(omit) }}"
+ name: "{{ item.name }}"
+ locations: "{{ item.locations | default(omit) }}"
+ organizations: "{{ item.organizations | default(omit) }}"
+ parameters: "{{ item.parameters | default(omit) }}"
+ state: "{{ item.state | default('present') }}"
+ loop: "{{ satellite_domains }}"
diff --git a/roles/operatingsystems/README.md b/roles/operatingsystems/README.md
new file mode 100644
index 00000000..28c9e456
--- /dev/null
+++ b/roles/operatingsystems/README.md
@@ -0,0 +1,43 @@
+redhat.satellite.operatingsystems
+===================================
+
+This role creates and manages Operatingsystems.
+
+Role Variables
+--------------
+
+This role supports the [Common Role Variables](https://github.com/theforeman/foreman-ansible-modules/blob/develop/README.md#common-role-variables).
+
+The main data structure for this role is the list of `satellite_operatingsystems`. Each `operatingsystem` requires the following fields:
+
+- `name`: The name of the operatingsystem.
+
+For all other fields see the `operatingsystem` module. The field `default_templates` can also be used to assign
+default provisioning templates for the operatingsystem where each `template` consists of the fields from the module
+`os_default_template`.
+
+Example Playbook
+----------------
+
+Create operating system `RedHat 8.5` and assign it templates for provisioning using `cloud-init` and `open-vm-tools`:
+
+```yaml
+- hosts: localhost
+ roles:
+ - role: redhat.satellite.operatingsystems
+ vars:
+ satellite_server_url: https://satellite.example.com
+ satellite_username: "admin"
+ satellite_password: "changeme"
+ satellite_operatingsystems:
+ - name: "RedHat"
+ major: "8"
+ minor: "5"
+ os_family: "Redhat"
+ password_hash: "SHA256"
+ default_templates:
+ - template_kind: "cloud-init"
+ provisioning_template: "CloudInit default"
+ - template_kind: "user_data"
+ provisioning_template: "UserData open-vm-tools"
+```
diff --git a/roles/operatingsystems/tasks/main.yml b/roles/operatingsystems/tasks/main.yml
new file mode 100644
index 00000000..46253193
--- /dev/null
+++ b/roles/operatingsystems/tasks/main.yml
@@ -0,0 +1,35 @@
+---
+- name: 'Create Operatingsystems'
+ redhat.satellite.operatingsystem:
+ username: "{{ satellite_username | default(omit) }}"
+ password: "{{ satellite_password | default(omit) }}"
+ server_url: "{{ satellite_server_url | default(omit) }}"
+ validate_certs: "{{ satellite_validate_certs | default(omit) }}"
+ name: "{{ item.name }}"
+ architectures: "{{ item.architectures | default(omit) }}"
+ description: "{{ item.description | default(omit) }}"
+ major: "{{ item.major | default(omit) }}"
+ media: "{{ item.media | default(omit) }}"
+ minor: "{{ item.minor | default(omit) }}"
+ os_family: "{{ item.os_family | default(omit) }}"
+ parameters: "{{ item.parameters | default(omit) }}"
+ password_hash: "{{ item.password_hash | default(omit) }}"
+ provisioning_templates: "{{ item.provisioning_templates | default(omit) }}"
+ ptables: "{{ item.ptables | default(omit) }}"
+ release_name: "{{ item.release_name | default(omit) }}"
+ state: "{{ item.state | default('present') }}"
+ loop: "{{ satellite_operatingsystems }}"
+
+- name: 'Set default templates for Operatingsystems'
+ vars:
+ default_os_name: "{{ item.0.name }} {{ item.0.major }}.{{ item.0.minor | default('0') }}"
+ redhat.satellite.os_default_template:
+ username: "{{ satellite_username | default(omit) }}"
+ password: "{{ satellite_password | default(omit) }}"
+ server_url: "{{ satellite_server_url | default(omit) }}"
+ validate_certs: "{{ satellite_validate_certs | default(omit) }}"
+ operatingsystem: "{{ item.0.description | default(default_os_name) }}"
+ provisioning_template: "{{ item.1.provisioning_template }}"
+ template_kind: "{{ item.1.template_kind }}"
+ state: "{{ item.1.state | default('present') }}"
+ loop: "{{ satellite_operatingsystems | subelements('default_templates', { 'skip_missing': True }) }}"
diff --git a/roles/provisioning_templates/README.md b/roles/provisioning_templates/README.md
new file mode 100644
index 00000000..9400aa5b
--- /dev/null
+++ b/roles/provisioning_templates/README.md
@@ -0,0 +1,33 @@
+redhat.satellite.provisioning_templates
+=========================================
+
+This role creates and manages Provisioning Templates.
+
+Role Variables
+--------------
+
+This role supports the [Common Role Variables](https://github.com/theforeman/foreman-ansible-modules/blob/develop/README.md#common-role-variables).
+
+The main data structure for this role is the list of `satellite_provisioning_templates`. Each `provisioning_template` accepts fields according to the module `provisioning_template`.
+
+Example Playbook
+----------------
+
+Create a custom template `CloudInit vSphere` using the file `files/cloudinit_vsphere.erb` and assign it to the
+operating systems `RedHat 7.9` and `RedHat 8.5`:
+
+```yaml
+- hosts: localhost
+ roles:
+ - role: redhat.satellite.provisioning_templates
+ vars:
+ satellite_server_url: https://satellite.example.com
+ satellite_username: "admin"
+ satellite_password: "changeme"
+ satellite_provisioning_templates:
+ - name: CloudInit vSphere
+ template: "{{ lookup('file', 'cloudinit_vsphere.erb') }}"
+ operatingsystems:
+ - RedHat 7.9
+ - RedHat 8.5
+```
diff --git a/roles/provisioning_templates/tasks/main.yml b/roles/provisioning_templates/tasks/main.yml
new file mode 100644
index 00000000..2353a9a9
--- /dev/null
+++ b/roles/provisioning_templates/tasks/main.yml
@@ -0,0 +1,18 @@
+---
+- name: 'Create Provisioning Templates'
+ redhat.satellite.provisioning_template:
+ username: "{{ satellite_username | default(omit) }}"
+ password: "{{ satellite_password | default(omit) }}"
+ server_url: "{{ satellite_server_url | default(omit) }}"
+ validate_certs: "{{ satellite_validate_certs | default(omit) }}"
+ name: "{{ item.name }}"
+ audit_comment: "{{ item.audit_comment | default(omit) }}"
+ file_name: "{{ item.file_name | default(omit) }}"
+ kind: "{{ item.bmc_proxy | default(omit) }}"
+ locations: "{{ item.locations | default(omit) }}"
+ locked: "{{ item.locked | default(omit) }}"
+ operatingsystems: "{{ item.operatingsystems | default(omit) }}"
+ organizations: "{{ item.organizations | default(omit) }}"
+ template: "{{ item.template | default(omit) }}"
+ state: "{{ item.state | default('present') }}"
+ loop: "{{ satellite_provisioning_templates }}"
diff --git a/roles/settings/README.md b/roles/settings/README.md
new file mode 100644
index 00000000..e4057a05
--- /dev/null
+++ b/roles/settings/README.md
@@ -0,0 +1,31 @@
+redhat.satellite.settings
+===========================
+
+This role creates and manages Settings.
+
+Role Variables
+--------------
+
+This role supports the [Common Role Variables](https://github.com/theforeman/foreman-ansible-modules/blob/develop/README.md#common-role-variables).
+
+The main data structure for this role is the list of `satellite_settings`. Each `setting` must contain the field `name` and may contain the optional field `value` which if empty will reset the setting to the default value.
+
+Example Playbook
+----------------
+
+Enable *Destroy associated VM on host delete* and disable *Clean up failed deployment*:
+
+```yaml
+- hosts: localhost
+ roles:
+ - role: redhat.satellite.settings
+ vars:
+ satellite_server_url: https://satellite.example.com
+ satellite_username: "admin"
+ satellite_password: "changeme"
+ satellite_settings:
+ - name: destroy_vm_on_host_delete
+ value: true
+ - name: clean_up_failed_deployment
+ value: false
+```
diff --git a/roles/settings/tasks/main.yml b/roles/settings/tasks/main.yml
new file mode 100644
index 00000000..94bf9f9a
--- /dev/null
+++ b/roles/settings/tasks/main.yml
@@ -0,0 +1,10 @@
+---
+- name: 'Create Settings'
+ redhat.satellite.setting:
+ username: "{{ satellite_username | default(omit) }}"
+ password: "{{ satellite_password | default(omit) }}"
+ server_url: "{{ satellite_server_url | default(omit) }}"
+ validate_certs: "{{ satellite_validate_certs | default(omit) }}"
+ name: "{{ item.name }}"
+ value: "{{ item.value | default(omit) }}"
+ loop: "{{ satellite_settings }}"
diff --git a/roles/subnets/README.md b/roles/subnets/README.md
new file mode 100644
index 00000000..4c996070
--- /dev/null
+++ b/roles/subnets/README.md
@@ -0,0 +1,53 @@
+redhat.satellite.subnets
+==========================
+
+This role creates and manages Subnets.
+
+Role Variables
+--------------
+
+This role supports the [Common Role Variables](https://github.com/theforeman/foreman-ansible-modules/blob/develop/README.md#common-role-variables).
+
+The main data structure for this role is the list of `satellite_subnets`. Each `subnet` requires the following fields:
+
+- `name`: The name of the subnet.
+- `network`: Subnet IP address.
+
+For all other fields see the `subnet` module.
+
+Example Playbook
+----------------
+
+Create subnet `192.168.0.0/26`:
+
+```yaml
+- hosts: localhost
+ roles:
+ - role: redhat.satellite.subnets
+ vars:
+ satellite_server_url: https://satellite.example.com
+ satellite_username: "admin"
+ satellite_password: "changeme"
+ satellite_subnets:
+ - name: "My subnet"
+ description: "My description"
+ network: "192.168.0.0"
+ mask: "255.255.255.192"
+ gateway: "192.168.0.1"
+ from_ip: "192.168.0.2"
+ to_ip: "192.168.0.42"
+ boot_mode: "Static"
+ dhcp_proxy: "smart-proxy1.foo.example.com"
+ tftp_proxy: "smart-proxy1.foo.example.com"
+ dns_proxy: "smart-proxy2.foo.example.com"
+ template_proxy: "smart-proxy2.foo.example.com"
+ vlanid: 452
+ mtu: 9000
+ domains:
+ - "foo.example.com"
+ - "bar.example.com"
+ organizations:
+ - "Example Org"
+ locations:
+ - "Uppsala"
+```
diff --git a/roles/subnets/tasks/main.yml b/roles/subnets/tasks/main.yml
new file mode 100644
index 00000000..8b6f852a
--- /dev/null
+++ b/roles/subnets/tasks/main.yml
@@ -0,0 +1,38 @@
+---
+- name: 'Create Subnets'
+ redhat.satellite.subnet:
+ username: "{{ satellite_username | default(omit) }}"
+ password: "{{ satellite_password | default(omit) }}"
+ server_url: "{{ satellite_server_url | default(omit) }}"
+ validate_certs: "{{ satellite_validate_certs | default(omit) }}"
+ name: "{{ item.name }}"
+ bmc_proxy: "{{ item.bmc_proxy | default(omit) }}"
+ boot_mode: "{{ item.boot_mode | default(omit) }}"
+ cidr: "{{ item.cidr | default(omit) }}"
+ description: "{{ item.description | default(omit) }}"
+ dhcp_proxy: "{{ item.dhcp_proxy | default(omit) }}"
+ discovery_proxy: "{{ item.discovery_proxy | default(omit) }}"
+ dns_primary: "{{ item.dns_primary | default(omit) }}"
+ dns_proxy: "{{ item.dns_proxy | default(omit) }}"
+ dns_secondary: "{{ item.dns_secondary | default(omit) }}"
+ domains: "{{ item.domains | default(omit) }}"
+ externalipam_group: "{{ item.externalipam_group | default(omit) }}"
+ externalipam_proxy: "{{ item.externalipam_proxy | default(omit) }}"
+ from_ip: "{{ item.from_ip | default(omit) }}"
+ gateway: "{{ item.gateway | default(omit) }}"
+ httpboot_proxy: "{{ item.httpboot_proxy | default(omit) }}"
+ ipam: "{{ item.ipam | default(omit) }}"
+ locations: "{{ item.locations | default(omit) }}"
+ mask: "{{ item.mask | default(omit) }}"
+ mtu: "{{ item.mtu | default(omit) }}"
+ network: "{{ item.network | default(omit) }}"
+ network_type: "{{ item.network_type | default(omit) }}"
+ organizations: "{{ item.organizations | default(omit) }}"
+ parameters: "{{ item.parameters | default(omit) }}"
+ remote_execution_proxies: "{{ item.remote_execution_proxies | default(omit) }}"
+ template_proxy: "{{ item.template_proxy | default(omit) }}"
+ tftp_proxy: "{{ item.tftp_proxy | default(omit) }}"
+ to_ip: "{{ item.to_ip | default(omit) }}"
+ vlanid: "{{ item.vlanid | default(omit) }}"
+ state: "{{ item.state | default('present') }}"
+ loop: "{{ satellite_subnets }}"
diff --git a/tests/fixtures/apidoc/compute_profiles_role.json b/tests/fixtures/apidoc/compute_profiles_role.json
new file mode 120000
index 00000000..8e89899a
--- /dev/null
+++ b/tests/fixtures/apidoc/compute_profiles_role.json
@@ -0,0 +1 @@
+katello.json
\ No newline at end of file
diff --git a/tests/fixtures/apidoc/compute_resources_role.json b/tests/fixtures/apidoc/compute_resources_role.json
new file mode 120000
index 00000000..8e89899a
--- /dev/null
+++ b/tests/fixtures/apidoc/compute_resources_role.json
@@ -0,0 +1 @@
+katello.json
\ No newline at end of file
diff --git a/tests/fixtures/apidoc/content_view_publish_role.json b/tests/fixtures/apidoc/content_view_publish_role.json
new file mode 120000
index 00000000..8e89899a
--- /dev/null
+++ b/tests/fixtures/apidoc/content_view_publish_role.json
@@ -0,0 +1 @@
+katello.json
\ No newline at end of file
diff --git a/tests/fixtures/apidoc/domains_role.json b/tests/fixtures/apidoc/domains_role.json
new file mode 120000
index 00000000..8e89899a
--- /dev/null
+++ b/tests/fixtures/apidoc/domains_role.json
@@ -0,0 +1 @@
+katello.json
\ No newline at end of file
diff --git a/tests/fixtures/apidoc/operatingsystems_role.json b/tests/fixtures/apidoc/operatingsystems_role.json
new file mode 120000
index 00000000..8e89899a
--- /dev/null
+++ b/tests/fixtures/apidoc/operatingsystems_role.json
@@ -0,0 +1 @@
+katello.json
\ No newline at end of file
diff --git a/tests/fixtures/apidoc/provisioning_templates_role.json b/tests/fixtures/apidoc/provisioning_templates_role.json
new file mode 120000
index 00000000..8e89899a
--- /dev/null
+++ b/tests/fixtures/apidoc/provisioning_templates_role.json
@@ -0,0 +1 @@
+katello.json
\ No newline at end of file
diff --git a/tests/fixtures/apidoc/settings_role.json b/tests/fixtures/apidoc/settings_role.json
new file mode 120000
index 00000000..8e89899a
--- /dev/null
+++ b/tests/fixtures/apidoc/settings_role.json
@@ -0,0 +1 @@
+katello.json
\ No newline at end of file
diff --git a/tests/fixtures/apidoc/subnets_role.json b/tests/fixtures/apidoc/subnets_role.json
new file mode 120000
index 00000000..8e89899a
--- /dev/null
+++ b/tests/fixtures/apidoc/subnets_role.json
@@ -0,0 +1 @@
+katello.json
\ No newline at end of file
diff --git a/tests/fixtures/callback/dir_store/foreman/testhost.json b/tests/fixtures/callback/dir_store/foreman/testhost.json
index ff499bcd..5b65c70f 100644
--- a/tests/fixtures/callback/dir_store/foreman/testhost.json
+++ b/tests/fixtures/callback/dir_store/foreman/testhost.json
@@ -97,7 +97,7 @@
"total": 1
}
},
- "reported_at": "2000-01-01 12:00:00.0000",
+ "reported_at": "2000-01-01 12:00:00+00:00",
"reporter": "ansible",
"status": {
"applied": 5,
diff --git a/tests/fixtures/callback/dir_store/foreman/testhostA.json b/tests/fixtures/callback/dir_store/foreman/testhostA.json
index 4e7e5631..e888289e 100644
--- a/tests/fixtures/callback/dir_store/foreman/testhostA.json
+++ b/tests/fixtures/callback/dir_store/foreman/testhostA.json
@@ -42,7 +42,7 @@
"total": 1
}
},
- "reported_at": "2000-01-01 12:00:00.0000",
+ "reported_at": "2000-01-01 12:00:00+00:00",
"reporter": "ansible",
"status": {
"applied": 1,
diff --git a/tests/fixtures/callback/dir_store/foreman/testhostB.json b/tests/fixtures/callback/dir_store/foreman/testhostB.json
index a9507801..6877dde4 100644
--- a/tests/fixtures/callback/dir_store/foreman/testhostB.json
+++ b/tests/fixtures/callback/dir_store/foreman/testhostB.json
@@ -42,7 +42,7 @@
"total": 1
}
},
- "reported_at": "2000-01-01 12:00:00.0000",
+ "reported_at": "2000-01-01 12:00:00+00:00",
"reporter": "ansible",
"status": {
"applied": 1,
diff --git a/tests/fixtures/callback/dir_store/proxy/testhost.json b/tests/fixtures/callback/dir_store/proxy/testhost.json
index 69fdecd5..fe196a63 100644
--- a/tests/fixtures/callback/dir_store/proxy/testhost.json
+++ b/tests/fixtures/callback/dir_store/proxy/testhost.json
@@ -6,7 +6,7 @@
"total": 1
}
},
- "reported_at": "2000-01-01 12:00:00.0000",
+ "reported_at": "2000-01-01 12:00:00+00:00",
"results": [
{
"failed": false,
@@ -436,9 +436,13 @@
}
}
],
- "status": {
- "applied": 5,
- "failed": 0,
- "skipped": 1
+ "summary": {
+ "changed": 5,
+ "failures": 0,
+ "ignored": 1,
+ "ok": 8,
+ "rescued": 0,
+ "skipped": 1,
+ "unreachable": 0
}
}
\ No newline at end of file
diff --git a/tests/fixtures/callback/dir_store/proxy/testhostA.json b/tests/fixtures/callback/dir_store/proxy/testhostA.json
index 6ace0fe1..79c1f072 100644
--- a/tests/fixtures/callback/dir_store/proxy/testhostA.json
+++ b/tests/fixtures/callback/dir_store/proxy/testhostA.json
@@ -6,7 +6,7 @@
"total": 1
}
},
- "reported_at": "2000-01-01 12:00:00.0000",
+ "reported_at": "2000-01-01 12:00:00+00:00",
"results": [
{
"failed": false,
@@ -129,9 +129,13 @@
}
}
],
- "status": {
- "applied": 1,
- "failed": 0,
- "skipped": 1
+ "summary": {
+ "changed": 1,
+ "failures": 0,
+ "ignored": 1,
+ "ok": 3,
+ "rescued": 0,
+ "skipped": 1,
+ "unreachable": 0
}
}
\ No newline at end of file
diff --git a/tests/fixtures/callback/dir_store/proxy/testhostB.json b/tests/fixtures/callback/dir_store/proxy/testhostB.json
index 9e0f8a06..d50c49c8 100644
--- a/tests/fixtures/callback/dir_store/proxy/testhostB.json
+++ b/tests/fixtures/callback/dir_store/proxy/testhostB.json
@@ -6,7 +6,7 @@
"total": 1
}
},
- "reported_at": "2000-01-01 12:00:00.0000",
+ "reported_at": "2000-01-01 12:00:00+00:00",
"results": [
{
"failed": false,
@@ -129,9 +129,13 @@
}
}
],
- "status": {
- "applied": 1,
- "failed": 0,
- "skipped": 1
+ "summary": {
+ "changed": 1,
+ "failures": 0,
+ "ignored": 1,
+ "ok": 3,
+ "rescued": 0,
+ "skipped": 1,
+ "unreachable": 0
}
}
\ No newline at end of file
diff --git a/tests/galaxy-importer.cfg b/tests/galaxy-importer.cfg
new file mode 100644
index 00000000..6aa4ee83
--- /dev/null
+++ b/tests/galaxy-importer.cfg
@@ -0,0 +1,2 @@
+[galaxy-importer]
+CHECK_REQUIRED_TAGS = True
diff --git a/tests/test_callback.py b/tests/test_callback.py
index d91fa54b..a50c4c70 100644
--- a/tests/test_callback.py
+++ b/tests/test_callback.py
@@ -56,6 +56,7 @@ def run_callback(tmpdir, report_type, vcrmode):
assert len(tmpdir.listdir()) > 0, "Directory with results is empty"
for real_file in tmpdir.listdir(sort=True):
contents = real_file.read()
+ contents = re.sub(r"\d+-\d+-\d+ \d+:\d+:\d+\+\d+:\d+", "2000-01-01 12:00:00+00:00", contents)
contents = re.sub(r"\d+-\d+-\d+[ T]\d+:\d+:\d+\.\d+", "2000-01-01 12:00:00.0000", contents)
contents = re.sub(r"\d+:\d+:\d+\.\d+", "12:00:00.0000", contents)
if report_type == "foreman":
diff --git a/tests/test_crud.py b/tests/test_crud.py
index 1b4f4823..a0dc5d42 100644
--- a/tests/test_crud.py
+++ b/tests/test_crud.py
@@ -8,6 +8,7 @@
IGNORED_WARNINGS = [
"Activation Key 'Test Activation Key Copy' already exists.",
+ "You have configured a plain HTTP server URL. All communication will happen unencrypted.",
]
if sys.version_info[0] == 2:
diff --git a/tests/test_playbooks/compute_profiles_role.yml b/tests/test_playbooks/compute_profiles_role.yml
new file mode 100644
index 00000000..d9e8597d
--- /dev/null
+++ b/tests/test_playbooks/compute_profiles_role.yml
@@ -0,0 +1,92 @@
+---
+- hosts: localhost
+ collections:
+ - redhat.satellite
+ gather_facts: false
+ vars_files:
+ - vars/server.yml
+ tasks:
+ - name: ensure test organization
+ include_tasks: tasks/organization.yml
+ vars:
+ organization_name: "Test Organization"
+ organization_state: "present"
+ - name: ensure test location
+ include: tasks/location.yml
+ vars:
+ location_name: "Test Location"
+ location_state: present
+ - name: ensure operating system
+ include: tasks/operatingsystem.yml
+ vars:
+ operatingsystem_name: "RedHat-8.4"
+ operatingsystem_major: "8"
+ operatingsystem_family: Redhat
+ operatingsystem_state: present
+ - name: ensure compute resource
+ include: tasks/compute_resource.yml
+ vars:
+ compute_resource_name: "libvirt"
+ compute_resource_organizations:
+ - Test Organization
+ compute_resource_locations:
+ - Test Location
+ compute_resource_provider: 'libvirt'
+ compute_resource_provider_params:
+ url: qemu:///system
+ compute_resource_state: present
+
+- hosts: tests
+ collections:
+ - redhat.satellite
+ gather_facts: false
+ vars_files:
+ - vars/server.yml
+ roles:
+ - role: compute_profiles
+ vars:
+ satellite_organization: "Test Organization"
+ satellite_compute_profiles:
+ - name: "app-small"
+ compute_attributes:
+ - compute_resource: "libvirt"
+ vm_attrs:
+ cpus: 1
+ memory: 2147483648
+ nics_attributes:
+ 0:
+ type: bridge
+ bridge: ""
+ model: virtio
+ volumes_attributes:
+ 0:
+ pool_name: default
+ capacity: 10G
+ allocation: 0G
+ format_type: raw
+ state: present
+ expected_change: true
+
+- hosts: localhost
+ collections:
+ - redhat.satellite
+ gather_facts: false
+ vars_files:
+ - vars/server.yml
+ tasks:
+ - include: tasks/organization.yml
+ vars:
+ organization_name: "Test Organization"
+ organization_state: absent
+ - include: tasks/location.yml
+ vars:
+ location_name: "Test Location"
+ location_state: absent
+ - include: tasks/operatingsystem.yml
+ vars:
+ operatingsystem_name: "RedHat-8.4"
+ operatingsystem_state: absent
+ - include: tasks/compute_resource.yml
+ vars:
+ compute_resource_name: "libvirt"
+ compute_resource_state: absent
diff --git a/tests/test_playbooks/compute_resources_role.yml b/tests/test_playbooks/compute_resources_role.yml
new file mode 100644
index 00000000..cbc30e35
--- /dev/null
+++ b/tests/test_playbooks/compute_resources_role.yml
@@ -0,0 +1,72 @@
+---
+- hosts: localhost
+ collections:
+ - redhat.satellite
+ gather_facts: false
+ vars_files:
+ - vars/server.yml
+ tasks:
+ - name: ensure test organization
+ include_tasks: tasks/organization.yml
+ vars:
+ organization_name: "Test Organization"
+ organization_state: "present"
+ - name: ensure test location
+ include: tasks/location.yml
+ vars:
+ location_name: "Test Location"
+ location_state: present
+ - name: ensure operating system
+ include: tasks/operatingsystem.yml
+ vars:
+ operatingsystem_name: "RedHat-8.4"
+ operatingsystem_major: "8"
+ operatingsystem_family: Redhat
+ operatingsystem_state: present
+
+- hosts: tests
+ collections:
+ - redhat.satellite
+ gather_facts: false
+ vars_files:
+ - vars/server.yml
+ roles:
+ - role: compute_resources
+ vars:
+ satellite_organization: "Test Organization"
+ satellite_compute_resources:
+ - name: "libvirt-cr01"
+ description: 'Libvirt compute resource'
+ organizations:
+ - Test Organization
+ locations:
+ - Test Location
+ provider: 'libvirt'
+ provider_params:
+ url: qemu+ssh://root@libvirt.example.com/system
+ images:
+ - name: "RHEL-8.4"
+ operatingsystem: "RedHat-8.4"
+ architecture: "x86_64"
+ user_data: true
+ image_username: "root"
+ image_password: "changeme"
+ uuid: "rhel-8.4-template"
+ state: present
+ expected_change: true
+
+- hosts: localhost
+ collections:
+ - redhat.satellite
+ gather_facts: false
+ vars_files:
+ - vars/server.yml
+ tasks:
+ - include: tasks/organization.yml
+ vars:
+ organization_name: "Test Organization"
+ organization_state: absent
+ - include: tasks/location.yml
+ vars:
+ location_name: "Test Location"
+ location_state: absent
diff --git a/tests/test_playbooks/content_view_publish_role.yml b/tests/test_playbooks/content_view_publish_role.yml
new file mode 100644
index 00000000..3c879376
--- /dev/null
+++ b/tests/test_playbooks/content_view_publish_role.yml
@@ -0,0 +1,93 @@
+---
+- hosts: localhost
+ collections:
+ - redhat.satellite
+ gather_facts: false
+ vars_files:
+ - vars/server.yml
+ tasks:
+ - include: tasks/organization.yml
+ vars:
+ organization_state: present
+ - include: tasks/product.yml
+ vars:
+ product_state: present
+ - include: tasks/repository.yml
+ vars:
+ repository_state: present
+ - include: tasks/product.yml
+ vars:
+ product_name: "Test Product 2"
+ product_state: present
+ - include: tasks/repository.yml
+ vars:
+ product_name: "Test Product 2"
+ repository_state: present
+ - include: tasks/content_view.yml
+ vars:
+ content_view_name: "Test Composite Content View"
+ content_view_state: absent
+ - include: tasks/content_view_version.yml
+ vars:
+ state: absent
+ version: "1.0"
+ ignore_errors: true
+ - include: tasks/content_view.yml
+ vars:
+ content_view_state: absent
+ - include: tasks/content_view.yml
+ vars:
+ content_view_state: present
+ repositories:
+ - name: "Test Repository"
+ product: "Test Product"
+
+- hosts: tests
+ collections:
+ - redhat.satellite
+ gather_facts: false
+ vars_files:
+ - vars/server.yml
+ roles:
+ - role: content_view_publish
+ vars:
+ satellite_organization: "Test Organization"
+ satellite_content_views:
+ - Test Content View
+ post_tasks:
+ - name: search content view version info
+ content_view_version_info:
+ username: "{{ foreman_username }}"
+ password: "{{ foreman_password }}"
+ server_url: "{{ foreman_server_url }}"
+ validate_certs: "{{ foreman_validate_certs }}"
+ organization: "Test Organization"
+ content_view: "Test Content View"
+ search: 'version = "1.0"'
+ register: content_view_version_info
+ - name: check content_view details
+ assert:
+ that:
+ - content_view_version_info['content_view_versions'][0]['version'] == "1.0"
+
+- hosts: localhost
+ collections:
+ - redhat.satellite
+ gather_facts: false
+ vars_files:
+ - vars/server.yml
+ tasks:
+ - include: tasks/content_view.yml
+ vars:
+ content_view_state: absent
+ - include: tasks/repository.yml
+ vars:
+ product_name: "Test Product 2"
+ repository_state: absent
+ - include: tasks/product.yml
+ vars:
+ product_name: "Test Product 2"
+ product_state: absent
+ - include: tasks/organization.yml
+ vars:
+ organization_state: absent
diff --git a/tests/test_playbooks/domains_role.yml b/tests/test_playbooks/domains_role.yml
new file mode 100644
index 00000000..96e4126d
--- /dev/null
+++ b/tests/test_playbooks/domains_role.yml
@@ -0,0 +1,61 @@
+---
+- hosts: localhost
+ collections:
+ - redhat.satellite
+ gather_facts: false
+ vars_files:
+ - vars/server.yml
+ tasks:
+ - name: ensure test organization
+ include_tasks: tasks/organization.yml
+ vars:
+ organization_name: "Test Organization"
+ organization_state: "present"
+ - name: ensure test location
+ include: tasks/location.yml
+ vars:
+ location_name: "Test Location"
+ location_state: present
+ - include_tasks: tasks/domain.yml
+ vars:
+ domain_name: "example.org"
+ domain_state: "absent"
+
+- hosts: tests
+ collections:
+ - redhat.satellite
+ gather_facts: false
+ vars_files:
+ - vars/server.yml
+ roles:
+ - role: domains
+ vars:
+ satellite_domains:
+ - name: "example.org"
+ description: 'Example Domain'
+ organizations:
+ - Test Organization
+ locations:
+ - Test Location
+ state: present
+ expected_change: true
+
+- hosts: localhost
+ collections:
+ - redhat.satellite
+ gather_facts: false
+ vars_files:
+ - vars/server.yml
+ tasks:
+ - include: tasks/organization.yml
+ vars:
+ organization_name: "Test Organization"
+ organization_state: absent
+ - include: tasks/location.yml
+ vars:
+ location_name: "Test Location"
+ location_state: absent
+ - include_tasks: tasks/domain.yml
+ vars:
+ domain_name: "example.org"
+ domain_state: "absent"
diff --git a/tests/test_playbooks/fixtures/compute_profiles_role-0.yml b/tests/test_playbooks/fixtures/compute_profiles_role-0.yml
new file mode 100644
index 00000000..772a9d42
--- /dev/null
+++ b/tests/test_playbooks/fixtures/compute_profiles_role-0.yml
@@ -0,0 +1,355 @@
+interactions:
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/status
+ response:
+ body:
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=100
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '62'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/compute_profiles?search=name%3D%22app-small%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 4,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"app-small\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": []\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=99
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '175'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"compute_profile": {"name": "app-small"}}'
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '42'
+ Content-Type:
+ - application/json
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: POST
+ uri: https://foreman.example.org/api/compute_profiles
+ response:
+ body:
+ string: '{"created_at":"2021-11-19 08:38:06 UTC","updated_at":"2021-11-19 08:38:06
+ UTC","id":10,"name":"app-small","compute_attributes":[]}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=98
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Transfer-Encoding:
+ - chunked
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ status:
+ code: 201
+ message: Created
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/compute_resources?search=name%3D%22libvirt%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"libvirt\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"url\":\"qemu:///system\",\"created_at\":\"2021-11-19
+ 08:38:05 UTC\",\"updated_at\":\"2021-11-19 08:38:05 UTC\",\"id\":5,\"name\":\"libvirt\",\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\":\"vnc\",\"set_console_password\":true}]\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=97
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '423'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/compute_resources/5
+ response:
+ body:
+ string: '{"description":null,"url":"qemu:///system","created_at":"2021-11-19
+ 08:38:05 UTC","updated_at":"2021-11-19 08:38:05 UTC","id":5,"name":"libvirt","provider":"Libvirt","provider_friendly_name":"Libvirt","display_type":"vnc","set_console_password":true,"images":[],"compute_attributes":[],"locations":[{"id":10,"name":"Test
+ Location","title":"Test Location","description":null}],"organizations":[{"id":9,"name":"Test
+ Organization","title":"Test Organization","description":"A test organization"}]}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=96
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '494'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"compute_attribute": {"vm_attrs": {"cpus": 1, "memory": 2147483648, "nics_attributes":
+ {"0": {"type": "bridge", "bridge": "", "model": "virtio"}}, "volumes_attributes":
+ {"0": {"pool_name": "default", "capacity": "10G", "allocation": "0G", "format_type":
+ "raw"}}}}}'
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '265'
+ Content-Type:
+ - application/json
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: POST
+ uri: https://foreman.example.org/api/compute_profiles/10/compute_resources/5/compute_attributes
+ response:
+ body:
+ string: '{"created_at":"2021-11-19 08:38:06 UTC","updated_at":"2021-11-19 08:38:06
+ UTC","id":3,"name":"1 CPUs and 2 GB memory","compute_resource_id":5,"compute_resource_name":"libvirt","provider_friendly_name":"Libvirt","compute_profile_id":10,"compute_profile_name":"app-small","vm_attrs":{"cpus":1,"memory":2147483648,"nics_attributes":{"0":{"type":"bridge","bridge":"","model":"virtio"}},"volumes_attributes":{"0":{"pool_name":"default","capacity":"10G","allocation":"0G","format_type":"raw"}}},"attributes":{"cpus":1,"memory":2147483648,"image_id":null,"image_name":null,"volumes_attributes":{"0":{"capacity":"10737418240","allocation":"0","format_type":"raw","pool":"default"}},"interfaces_attributes":{"0":{"type":"bridge","model":"virtio","bridge":""}}}}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=95
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Transfer-Encoding:
+ - chunked
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ status:
+ code: 201
+ message: Created
+version: 1
diff --git a/tests/test_playbooks/fixtures/compute_resources_role-0.yml b/tests/test_playbooks/fixtures/compute_resources_role-0.yml
new file mode 100644
index 00000000..250e8570
--- /dev/null
+++ b/tests/test_playbooks/fixtures/compute_resources_role-0.yml
@@ -0,0 +1,299 @@
+interactions:
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/status
+ response:
+ body:
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=100
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '62'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/compute_resources?search=name%3D%22libvirt-cr01%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 1,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"libvirt-cr01\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=99
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '178'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2021-11-15
+ 13:47:03 UTC\",\"updated_at\":\"2021-11-15 13:47:06 UTC\",\"id\":3,\"name\":\"Test
+ Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=98
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '388'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 13:47:07 UTC\",\"updated_at\":\"2021-11-15 13:47:07 UTC\",\"id\":4,\"name\":\"Test
+ Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=97
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '384'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"compute_resource": {"name": "libvirt-cr01", "provider": "Libvirt", "url":
+ "qemu+ssh://root@libvirt.example.com/system", "description": "Libvirt compute
+ resource", "location_ids": [4], "organization_ids": [3]}}'
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '211'
+ Content-Type:
+ - application/json
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: POST
+ uri: https://foreman.example.org/api/compute_resources
+ response:
+ body:
+ string: '{"description":"Libvirt compute resource","url":"qemu+ssh://root@libvirt.example.com/system","created_at":"2021-11-15
+ 13:47:09 UTC","updated_at":"2021-11-15 13:47:09 UTC","id":2,"name":"libvirt-cr01","provider":"Libvirt","provider_friendly_name":"Libvirt","display_type":"vnc","set_console_password":true,"images":[],"compute_attributes":[],"locations":[{"id":4,"name":"Test
+ Location","title":"Test Location","description":null}],"organizations":[{"id":3,"name":"Test
+ Organization","title":"Test Organization","description":"A test organization"}]}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=96
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Transfer-Encoding:
+ - chunked
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ status:
+ code: 201
+ message: Created
+version: 1
diff --git a/tests/test_playbooks/fixtures/compute_resources_role-1.yml b/tests/test_playbooks/fixtures/compute_resources_role-1.yml
new file mode 100644
index 00000000..8bccbb5c
--- /dev/null
+++ b/tests/test_playbooks/fixtures/compute_resources_role-1.yml
@@ -0,0 +1,415 @@
+interactions:
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/status
+ response:
+ body:
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=100
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '62'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/compute_resources?search=name%3D%22libvirt-cr01%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"libvirt-cr01\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":\"Libvirt
+ compute resource\",\"url\":\"qemu+ssh://root@libvirt.example.com/system\",\"created_at\":\"2021-11-15
+ 13:47:09 UTC\",\"updated_at\":\"2021-11-15 13:47:09 UTC\",\"id\":2,\"name\":\"libvirt-cr01\",\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\":\"vnc\",\"set_console_password\":true}]\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=99
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '483'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22RedHat-8.4%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 6,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"RedHat-8.4\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=98
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '177'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/operatingsystems?search=title~%22RedHat-8.4%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 6,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title~\\\"RedHat-8.4\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"8\",\"minor\":\"2\",\"family\":\"Redhat\",\"release_name\":\"reverse
+ whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2021-11-15 13:47:08 UTC\",\"updated_at\":\"2021-11-15
+ 13:47:08 UTC\",\"id\":6,\"name\":\"RedHat-8.4\",\"title\":\"RedHat-8.4 8.2\"}]\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=97
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '424'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/compute_resources/2/images?search=name%3D%22RHEL-8.4%22%2Coperatingsystem%3D%226%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"RHEL-8.4\\\",operatingsystem=\\\"6\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ []\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=96
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '196'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 13:19:47 UTC\",\"updated_at\":\"2021-11-15 13:19:47 UTC\",\"name\":\"x86_64\",\"id\":1}]\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=95
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '274'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"image": {"name": "RHEL-8.4", "username": "root", "uuid": "rhel-8.4-template",
+ "password": "changeme", "compute_resource_id": 2, "architecture_id": 1, "operatingsystem_id":
+ 6, "user_data": true}}'
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '196'
+ Content-Type:
+ - application/json
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: POST
+ uri: https://foreman.example.org/api/compute_resources/2/images
+ response:
+ body:
+ string: '{"operatingsystem_id":6,"operatingsystem_name":"RedHat-8.4 8.2","compute_resource_id":2,"compute_resource_name":"libvirt-cr01","architecture_id":1,"architecture_name":"x86_64","uuid":"rhel-8.4-template","username":"root","created_at":"2021-11-15
+ 13:47:10 UTC","updated_at":"2021-11-15 13:47:10 UTC","id":1,"name":"RHEL-8.4"}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=94
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Transfer-Encoding:
+ - chunked
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ status:
+ code: 201
+ message: Created
+version: 1
diff --git a/tests/test_playbooks/fixtures/content_view_publish_role-0.yml b/tests/test_playbooks/fixtures/content_view_publish_role-0.yml
new file mode 100644
index 00000000..634a035e
--- /dev/null
+++ b/tests/test_playbooks/fixtures/content_view_publish_role-0.yml
@@ -0,0 +1,384 @@
+interactions:
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/status
+ response:
+ body:
+ string: '{"result":"ok","status":200,"version":"2.5.0-develop","api_version":2}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.0-develop
+ Keep-Alive:
+ - timeout=15, max=100
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '70'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2021-04-29
+ 11:48:55 UTC\",\"updated_at\":\"2021-04-29 11:48:57 UTC\",\"id\":5,\"name\":\"Test
+ Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.0-develop
+ Keep-Alive:
+ - timeout=15, max=99
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '388'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296
+ response:
+ body:
+ string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
+ Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":0,"latest_version":null,"auto_publish":false,"solve_dependencies":false,"import_only":false,"repository_ids":[30],"id":12,"name":"Test
+ Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":5},"created_at":"2021-04-29
+ 12:01:12 UTC","updated_at":"2021-04-29 12:01:12 UTC","environments":[],"repositories":[{"id":30,"name":"Test
+ Repository","label":"Test_Repository","content_type":"yum"}],"versions":[],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"1.0","last_published":null,"permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]}
+
+ '
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - 5; Test Organization
+ Foreman_version:
+ - 2.5.0-develop
+ Keep-Alive:
+ - timeout=15, max=98
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '1005'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{}'
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '2'
+ Content-Type:
+ - application/json
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: POST
+ uri: https://foreman.example.org/katello/api/content_views/12/publish
+ response:
+ body:
+ string: ' {"id":"38185912-cdbc-421f-968a-bf36d779e210","label":"Actions::Katello::ContentView::Publish","pending":true,"action":"Publish
+ content view ''Test Content View''; organization ''Test Organization''","username":"admin","started_at":"2021-04-29
+ 12:01:13 UTC","ended_at":null,"state":"planned","result":"pending","progress":0.0,"input":{"content_view":{"id":12,"name":"Test
+ Content View","label":"Test_Content_View"},"organization":{"id":5,"name":"Test
+ Organization","label":"Test_Organization"},"services_checked":["pulp3","candlepin","candlepin_auth"],"history_id":14,"content_view_id":12,"auto_publish_composite_ids":[],"content_view_version_name":"Test
+ Content View 1.0","content_view_version_id":9,"environment_id":5,"user_id":4,"skip_promotion":null,"current_request_id":"726c5254-5c40-45f8-9a9e-f0b5f7d9e061","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{},"humanized":{"action":"Publish","input":[["content_view",{"text":"content
+ view ''Test Content View''","link":"/content_views/12/versions"}],["organization",{"text":"organization
+ ''Test Organization''","link":"/organizations/5/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2021-04-29
+ 12:01:13 UTC","available_actions":{"cancellable":false,"resumable":false}}
+
+ '
+ headers:
+ Cache-Control:
+ - no-cache
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.0-develop
+ Keep-Alive:
+ - timeout=15, max=97
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Transfer-Encoding:
+ - chunked
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ status:
+ code: 202
+ message: Accepted
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/foreman_tasks/api/tasks/38185912-cdbc-421f-968a-bf36d779e210
+ response:
+ body:
+ string: '{"id":"38185912-cdbc-421f-968a-bf36d779e210","label":"Actions::Katello::ContentView::Publish","pending":false,"action":"Publish
+ content view ''Test Content View''; organization ''Test Organization''","username":"admin","started_at":"2021-04-29
+ 12:01:13 UTC","ended_at":"2021-04-29 12:01:17 UTC","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":12,"name":"Test
+ Content View","label":"Test_Content_View"},"organization":{"id":5,"name":"Test
+ Organization","label":"Test_Organization"},"services_checked":["pulp3","candlepin","candlepin_auth"],"history_id":14,"content_view_id":12,"auto_publish_composite_ids":[],"content_view_version_name":"Test
+ Content View 1.0","content_view_version_id":9,"environment_id":5,"user_id":4,"skip_promotion":null,"current_request_id":"726c5254-5c40-45f8-9a9e-f0b5f7d9e061","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{"content_view_id":12,"content_view_version_id":9,"skip_promotion":null},"humanized":{"action":"Publish","input":[["content_view",{"text":"content
+ view ''Test Content View''","link":"/content_views/12/versions"}],["organization",{"text":"organization
+ ''Test Organization''","link":"/organizations/5/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2021-04-29
+ 12:01:13 UTC","available_actions":{"cancellable":false,"resumable":false}}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.0-develop
+ Keep-Alive:
+ - timeout=15, max=96
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '1389'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/katello/api/content_view_versions/9
+ response:
+ body:
+ string: ' {"version":"1.0","major":1,"minor":0,"composite_content_view_ids":[],"published_in_composite_content_view_ids":[],"content_view_id":12,"default":false,"description":null,"id":9,"name":"Test
+ Content View 1.0","created_at":"2021-04-29 12:01:13 UTC","updated_at":"2021-04-29
+ 12:01:17 UTC","content_view":{"id":12,"name":"Test Content View","label":"Test_Content_View"},"composite_content_views":[],"composite_content_view_versions":[],"published_in_composite_content_views":[],"environments":[{"id":5,"name":"Library","label":"Library","permissions":{"readable":true,"promotable_or_removable":true,"all_hosts_editable":true,"all_keys_editable":true},"host_count":0,"activation_key_count":0}],"repositories":[{"id":32,"name":"Test
+ Repository","label":"Test_Repository","content_type":"yum","library_instance_id":30}],"last_event":{"user":"admin","status":"successful","description":null,"action":"publish","created_at":"2021-04-29
+ 12:01:13 UTC","updated_at":"2021-04-29 12:01:17 UTC","environment":null,"task":{"id":"38185912-cdbc-421f-968a-bf36d779e210","label":"Actions::Katello::ContentView::Publish","pending":false,"action":"Publish
+ content view ''Test Content View''; organization ''Test Organization''","username":"admin","started_at":"2021-04-29
+ 12:01:13 UTC","ended_at":"2021-04-29 12:01:17 UTC","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":12,"name":"Test
+ Content View","label":"Test_Content_View"},"organization":{"id":5,"name":"Test
+ Organization","label":"Test_Organization"},"services_checked":["pulp3","candlepin","candlepin_auth"],"history_id":14,"content_view_id":12,"auto_publish_composite_ids":[],"content_view_version_name":"Test
+ Content View 1.0","content_view_version_id":9,"environment_id":5,"user_id":4,"skip_promotion":null,"current_request_id":"726c5254-5c40-45f8-9a9e-f0b5f7d9e061","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{"content_view_id":12,"content_view_version_id":9,"skip_promotion":null},"humanized":{"action":"Publish","input":[["content_view",{"text":"content
+ view ''Test Content View''","link":"/content_views/12/versions"}],["organization",{"text":"organization
+ ''Test Organization''","link":"/organizations/5/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2021-04-29
+ 12:01:13 UTC","available_actions":{"cancellable":false,"resumable":false}},"version":"1.0","publish":true,"version_id":9,"triggered_by":null,"triggered_by_id":null},"active_history":[],"ansible
+ collection_count":0,"deb_count":0,"docker_manifest_count":0,"docker_manifest_list_count":0,"docker_tag_count":0,"file_count":0,"rpm_count":0,"modulemd_count":0,"erratum_count":0,"package_group_count":0,"srpm_count":0,"module_stream_count":0,"package_count":0,"ostree_branch_count":null,"errata_counts":{"security":null,"bugfix":0,"enhancement":0,"total":null},"permissions":{"deletable":true}}
+
+ '
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.0-develop
+ Keep-Alive:
+ - timeout=15, max=95
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '2911'
+ status:
+ code: 200
+ message: OK
+version: 1
diff --git a/tests/test_playbooks/fixtures/content_view_publish_role-1.yml b/tests/test_playbooks/fixtures/content_view_publish_role-1.yml
new file mode 100644
index 00000000..fe0824a4
--- /dev/null
+++ b/tests/test_playbooks/fixtures/content_view_publish_role-1.yml
@@ -0,0 +1,255 @@
+interactions:
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/status
+ response:
+ body:
+ string: '{"result":"ok","status":200,"version":"2.5.0-develop","api_version":2}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.0-develop
+ Keep-Alive:
+ - timeout=15, max=100
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '70'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2021-04-29
+ 11:48:55 UTC\",\"updated_at\":\"2021-04-29 11:48:57 UTC\",\"id\":5,\"name\":\"Test
+ Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.0-develop
+ Keep-Alive:
+ - timeout=15, max=99
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '388'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/katello/api/organizations/5/content_views?search=name%3D%22Test+Content+View%22&per_page=4294967296
+ response:
+ body:
+ string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
+ Content View\"","sort":{"by":"name","order":"asc"},"results":[{"composite":false,"component_ids":[],"default":false,"version_count":1,"latest_version":"1.0","auto_publish":false,"solve_dependencies":false,"import_only":false,"repository_ids":[30],"id":12,"name":"Test
+ Content View","label":"Test_Content_View","description":null,"organization_id":5,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":5},"created_at":"2021-04-29
+ 12:01:12 UTC","updated_at":"2021-04-29 12:01:13 UTC","environments":[{"id":5,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[{"id":30,"name":"Test
+ Repository","label":"Test_Repository","content_type":"yum"}],"versions":[{"id":9,"version":"1.0","published":"2021-04-29
+ 12:01:13 UTC","environment_ids":[5]}],"components":[],"content_view_components":[],"activation_keys":[],"next_version":"2.0","last_published":"2021-04-29
+ 12:01:13 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]}
+
+ '
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - 5; Test Organization
+ Foreman_version:
+ - 2.5.0-develop
+ Keep-Alive:
+ - timeout=15, max=98
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '1186'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/katello/api/content_views/12/content_view_versions?organization_id=5&search=version+%3D+%221.0%22&per_page=4294967296
+ response:
+ body:
+ string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"version
+ = \"1.0\"","sort":{"by":"version","order":"desc"},"results":[{"version":"1.0","major":1,"minor":0,"composite_content_view_ids":[],"published_in_composite_content_view_ids":[],"content_view_id":12,"default":false,"description":null,"id":9,"name":"Test
+ Content View 1.0","created_at":"2021-04-29 12:01:13 UTC","updated_at":"2021-04-29
+ 12:01:17 UTC","content_view":{"id":12,"name":"Test Content View","label":"Test_Content_View"},"composite_content_views":[],"composite_content_view_versions":[],"published_in_composite_content_views":[],"environments":[{"id":5,"name":"Library","label":"Library","permissions":{"readable":true,"promotable_or_removable":true,"all_hosts_editable":true,"all_keys_editable":true},"host_count":0,"activation_key_count":0}],"repositories":[{"id":32,"name":"Test
+ Repository","label":"Test_Repository","content_type":"yum","library_instance_id":30}],"last_event":{"user":"admin","status":"successful","description":null,"action":"publish","created_at":"2021-04-29
+ 12:01:13 UTC","updated_at":"2021-04-29 12:01:17 UTC","environment":null,"task":{"id":"38185912-cdbc-421f-968a-bf36d779e210","label":"Actions::Katello::ContentView::Publish","pending":false,"action":"Publish
+ content view ''Test Content View''; organization ''Test Organization''","username":"admin","started_at":"2021-04-29
+ 12:01:13 UTC","ended_at":"2021-04-29 12:01:17 UTC","state":"stopped","result":"success","progress":1.0,"input":{"content_view":{"id":12,"name":"Test
+ Content View","label":"Test_Content_View"},"organization":{"id":5,"name":"Test
+ Organization","label":"Test_Organization"},"services_checked":["pulp3","candlepin","candlepin_auth"],"history_id":14,"content_view_id":12,"auto_publish_composite_ids":[],"content_view_version_name":"Test
+ Content View 1.0","content_view_version_id":9,"environment_id":5,"user_id":4,"skip_promotion":null,"current_request_id":"726c5254-5c40-45f8-9a9e-f0b5f7d9e061","current_timezone":"UTC","current_organization_id":null,"current_location_id":null,"current_user_id":4},"output":{"content_view_id":12,"content_view_version_id":9,"skip_promotion":null},"humanized":{"action":"Publish","input":[["content_view",{"text":"content
+ view ''Test Content View''","link":"/content_views/12/versions"}],["organization",{"text":"organization
+ ''Test Organization''","link":"/organizations/5/edit"}]],"output":"","errors":[]},"cli_example":null,"start_at":"2021-04-29
+ 12:01:13 UTC","available_actions":{"cancellable":false,"resumable":false}},"version":"1.0","publish":true,"version_id":9,"triggered_by":null,"triggered_by_id":null},"active_history":[],"ansible
+ collection_count":0,"deb_count":0,"docker_manifest_count":0,"docker_manifest_list_count":0,"docker_tag_count":0,"file_count":0,"rpm_count":0,"modulemd_count":0,"erratum_count":0,"package_group_count":0,"srpm_count":0,"module_stream_count":0,"package_count":0,"ostree_branch_count":null,"errata_counts":{"security":null,"bugfix":0,"enhancement":0,"total":null},"permissions":{"deletable":true}}]}
+
+ '
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - 5; Test Organization
+ Foreman_version:
+ - 2.5.0-develop
+ Keep-Alive:
+ - timeout=15, max=97
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '3060'
+ status:
+ code: 200
+ message: OK
+version: 1
diff --git a/tests/test_playbooks/fixtures/domains_role-0.yml b/tests/test_playbooks/fixtures/domains_role-0.yml
new file mode 100644
index 00000000..1a6775d5
--- /dev/null
+++ b/tests/test_playbooks/fixtures/domains_role-0.yml
@@ -0,0 +1,298 @@
+interactions:
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/status
+ response:
+ body:
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=100
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '62'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/domains?search=name%3D%22example.org%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"example.org\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=99
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '177'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2021-11-22
+ 08:08:03 UTC\",\"updated_at\":\"2021-11-22 08:08:08 UTC\",\"id\":13,\"name\":\"Test
+ Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=98
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '389'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-22
+ 08:08:09 UTC\",\"updated_at\":\"2021-11-22 08:08:09 UTC\",\"id\":14,\"name\":\"Test
+ Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=97
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '385'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"domain": {"name": "example.org", "location_ids": [14], "organization_ids":
+ [13]}}'
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '83'
+ Content-Type:
+ - application/json
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: POST
+ uri: https://foreman.example.org/api/domains
+ response:
+ body:
+ string: '{"fullname":null,"created_at":"2021-11-22 08:08:11 UTC","updated_at":"2021-11-22
+ 08:08:11 UTC","id":3,"name":"example.org","dns_id":null,"dns":null,"subnets":[],"interfaces":[],"parameters":[],"locations":[{"id":14,"name":"Test
+ Location","title":"Test Location","description":null}],"organizations":[{"id":13,"name":"Test
+ Organization","title":"Test Organization","description":"A test organization"}]}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=96
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Transfer-Encoding:
+ - chunked
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ status:
+ code: 201
+ message: Created
+version: 1
diff --git a/tests/test_playbooks/fixtures/hostgroup-0.yml b/tests/test_playbooks/fixtures/hostgroup-0.yml
index 6e85043c..c13c3f63 100644
--- a/tests/test_playbooks/fixtures/hostgroup-0.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-0.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,31 +70,9 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\
- :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\
- :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\
- :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\
- :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\
- ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\
- :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\
- :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\
- architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\
- realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\
- :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\
- :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\
- :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\
- :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
- :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\
- :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -113,7 +91,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -131,71 +109,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1816'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json;version=2
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - apypie (https://github.com/Apipie/apypie)
- method: GET
- uri: https://foreman.example.org/api/hostgroups/2
- response:
- body:
- string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
- 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part
- table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":2,"name":"New host
- group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03
- 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":53,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2020-09-03
- 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":54,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[]}'
- headers:
- Cache-Control:
- - max-age=0, private, must-revalidate
- Connection:
- - Keep-Alive
- Content-Security-Policy:
- - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
- style-src ''unsafe-inline'' ''self'''
- Content-Type:
- - application/json; charset=utf-8
- Foreman_api_version:
- - '2'
- Foreman_current_location:
- - ; ANY
- Foreman_current_organization:
- - ; ANY
- Foreman_version:
- - 2.1.2
- Keep-Alive:
- - timeout=15, max=98
- Strict-Transport-Security:
- - max-age=631139040; includeSubdomains
- Vary:
- - Accept-Encoding
- X-Content-Type-Options:
- - nosniff
- X-Download-Options:
- - noopen
- X-Frame-Options:
- - sameorigin
- X-Permitted-Cross-Domain-Policies:
- - none
- X-XSS-Protection:
- - 1; mode=block
- content-length:
- - '2530'
+ - '181'
status:
code: 200
message: OK
@@ -214,13 +128,11 @@ interactions:
uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\
- \ 07:56:40 UTC\",\"updated_at\":\"2020-09-03 07:56:40 UTC\",\"id\":51,\"name\"\
- :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\
- }]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:35 UTC\",\"updated_at\":\"2021-11-15 08:24:35 UTC\",\"id\":12,\"name\":\"Test
+ Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -239,9 +151,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=97
+ - timeout=15, max=98
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -276,13 +188,11 @@ interactions:
uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\
- \ 07:56:41 UTC\",\"updated_at\":\"2020-09-03 07:56:41 UTC\",\"id\":52,\"name\"\
- :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\
- }]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:35 UTC\",\"updated_at\":\"2021-11-15 08:24:35 UTC\",\"id\":13,\"name\":\"Test
+ Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -301,9 +211,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=96
+ - timeout=15, max=97
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -338,12 +248,10 @@ interactions:
uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\
- by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\
- parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:16\
- \ UTC\",\"updated_at\":\"2020-09-03 07:50:16 UTC\",\"id\":46,\"name\":\"Foo\"\
- ,\"title\":\"Foo\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:32 UTC\",\"updated_at\":\"2021-11-15 08:24:32 UTC\",\"id\":9,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -362,9 +270,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=95
+ - timeout=15, max=96
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -380,7 +288,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '355'
+ - '354'
status:
code: 200
message: OK
@@ -399,12 +307,10 @@ interactions:
uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :\"46\",\"parent_id\":46,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\
- \ 07:50:17 UTC\",\"updated_at\":\"2020-09-03 07:50:17 UTC\",\"id\":47,\"name\"\
- :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"9\",\"parent_id\":9,\"parent_name\":\"Foo\",\"created_at\":\"2021-11-15
+ 08:24:33 UTC\",\"updated_at\":\"2021-11-15 08:24:33 UTC\",\"id\":10,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -423,9 +329,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=94
+ - timeout=15, max=95
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -441,7 +347,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '362'
+ - '360'
status:
code: 200
message: OK
@@ -460,12 +366,10 @@ interactions:
uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\
- by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\
- parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:18\
- \ UTC\",\"updated_at\":\"2020-09-03 07:50:18 UTC\",\"id\":48,\"name\":\"Bar\"\
- ,\"title\":\"Bar\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:34 UTC\",\"updated_at\":\"2021-11-15 08:24:34 UTC\",\"id\":11,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -484,9 +388,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=93
+ - timeout=15, max=94
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -521,13 +425,10 @@ interactions:
uri: https://foreman.example.org/api/compute_resources?search=name%3D%22libvirt-cr%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"libvirt-cr\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\
- :null,\"url\":\"qemu:///system\",\"created_at\":\"2020-09-03 07:54:29 UTC\"\
- ,\"updated_at\":\"2020-09-03 07:54:29 UTC\",\"id\":1,\"name\":\"libvirt-cr\"\
- ,\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\"\
- :\"vnc\",\"set_console_password\":true}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"libvirt-cr\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"url\":\"qemu:///system\",\"created_at\":\"2021-11-15
+ 08:31:38 UTC\",\"updated_at\":\"2021-11-15 08:31:38 UTC\",\"id\":1,\"name\":\"libvirt-cr\",\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\":\"vnc\",\"set_console_password\":true}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -546,9 +447,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=92
+ - timeout=15, max=93
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -583,11 +484,10 @@ interactions:
uri: https://foreman.example.org/api/compute_profiles?search=name%3D%22myprofile%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"myprofile\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-09-03 07:54:30 UTC\",\"updated_at\":\"2020-09-03 07:54:30 UTC\",\"\
- id\":4,\"name\":\"myprofile\"}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"myprofile\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:31:39 UTC\",\"updated_at\":\"2021-11-15 08:31:39 UTC\",\"id\":4,\"name\":\"myprofile\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -606,9 +506,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=91
+ - timeout=15, max=92
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -643,13 +543,10 @@ interactions:
uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\
- :null,\"created_at\":\"2020-09-03 07:50:22 UTC\",\"updated_at\":\"2020-09-03\
- \ 07:50:22 UTC\",\"id\":17,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- }}]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\":null,\"created_at\":\"2021-11-15
+ 08:27:23 UTC\",\"updated_at\":\"2021-11-15 08:27:23 UTC\",\"id\":2,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"}}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -668,9 +565,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=90
+ - timeout=15, max=91
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -686,7 +583,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '441'
+ - '440'
status:
code: 200
message: OK
@@ -705,19 +602,11 @@ interactions:
uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\
- :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\
- ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\
- :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\
- \ 07:50:23 UTC\",\"updated_at\":\"2020-09-03 07:50:23 UTC\",\"ipam\":\"DHCP\"\
- ,\"boot_mode\":\"DHCP\",\"id\":35,\"name\":\"Test subnet4\",\"description\"\
- :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\
- :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\
- :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\
- template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\
- :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2021-11-15
+ 08:27:24 UTC\",\"updated_at\":\"2021-11-15 08:27:24 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"nic_delay\":null,\"id\":1,\"name\":\"Test
+ subnet4\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"bmc_id\":null,\"bmc_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"externalipam\":null,\"dns\":null,\"template\":null,\"bmc\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -736,9 +625,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=89
+ - timeout=15, max=90
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -754,7 +643,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '870'
+ - '927'
status:
code: 200
message: OK
@@ -773,11 +662,10 @@ interactions:
uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-07-15 11:29:52 UTC\",\"updated_at\":\"2020-07-15 11:29:52 UTC\",\"\
- name\":\"x86_64\",\"id\":1}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:14:58 UTC\",\"updated_at\":\"2021-11-15 08:14:58 UTC\",\"name\":\"x86_64\",\"id\":1}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -796,9 +684,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=88
+ - timeout=15, max=89
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -833,13 +721,11 @@ interactions:
uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\
- :null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\"\
- :\"reverse whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-09-03\
- \ 07:50:25 UTC\",\"updated_at\":\"2020-09-03 07:50:25 UTC\",\"id\":2,\"name\"\
- :\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\":\"reverse
+ whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2021-11-15 08:27:25 UTC\",\"updated_at\":\"2021-11-15
+ 08:27:25 UTC\",\"id\":2,\"name\":\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -858,9 +744,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=87
+ - timeout=15, max=88
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -895,12 +781,11 @@ interactions:
uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 12,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\":\
- \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\"\
- :\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\"\
- :\"2020-09-03 07:50:26 UTC\",\"updated_at\":\"2020-09-03 07:50:26 UTC\",\"\
- id\":12,\"name\":\"TestOS Mirror\"}]\n}\n"
+ string: "{\n \"total\": 13,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\":\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\":\"2021-11-15
+ 08:27:25 UTC\",\"updated_at\":\"2021-11-15 08:27:25 UTC\",\"id\":13,\"name\":\"TestOS
+ Mirror\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -919,9 +804,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=86
+ - timeout=15, max=87
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -956,12 +841,11 @@ interactions:
uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 19,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\
- :null,\"os_family\":\"Redhat\",\"created_at\":\"2020-09-03 07:50:24 UTC\"\
- ,\"updated_at\":\"2020-09-03 07:50:24 UTC\",\"name\":\"Part table\",\"id\"\
- :127}]\n}\n"
+ string: "{\n \"total\": 20,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"os_family\":\"Redhat\",\"created_at\":\"2021-11-15
+ 08:27:24 UTC\",\"updated_at\":\"2021-11-15 08:27:24 UTC\",\"name\":\"Part
+ table\",\"id\":133}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -980,9 +864,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=85
+ - timeout=15, max=86
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -1017,11 +901,10 @@ interactions:
uri: https://foreman.example.org/api/environments?search=name%3D%22production%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"production\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-07-15 11:32:08 UTC\",\"updated_at\":\"2020-07-15 11:32:08 UTC\",\"\
- name\":\"production\",\"id\":1}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"production\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:16:43 UTC\",\"updated_at\":\"2021-11-15 08:16:43 UTC\",\"name\":\"production\",\"id\":1}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1040,9 +923,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=84
+ - timeout=15, max=85
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -1077,11 +960,10 @@ interactions:
uri: https://foreman.example.org/api/config_groups?search=name%3D%22cfg_group1%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"cfg_group1\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-09-03 07:54:31 UTC\",\"updated_at\":\"2020-09-03 07:54:31 UTC\",\"\
- id\":1,\"name\":\"cfg_group1\",\"puppetclasses\":[]}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"cfg_group1\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:31:39 UTC\",\"updated_at\":\"2021-11-15 08:31:39 UTC\",\"id\":1,\"name\":\"cfg_group1\",\"puppetclasses\":[]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1100,9 +982,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=83
+ - timeout=15, max=84
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -1137,11 +1019,10 @@ interactions:
uri: https://foreman.example.org/api/config_groups?search=name%3D%22cfg_group2%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"cfg_group2\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-09-03 07:54:31 UTC\",\"updated_at\":\"2020-09-03 07:54:31 UTC\",\"\
- id\":2,\"name\":\"cfg_group2\",\"puppetclasses\":[]}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"cfg_group2\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:31:40 UTC\",\"updated_at\":\"2021-11-15 08:31:40 UTC\",\"id\":2,\"name\":\"cfg_group2\",\"puppetclasses\":[]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1160,9 +1041,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=82
+ - timeout=15, max=83
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -1194,20 +1075,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296
+ uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-5.tanso.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\
- \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\
- :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\
- name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\
- id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\
- :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\
- ,\"id\":3}]}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-5.tanso.example.com\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"created_at\":\"2021-11-15 08:16:36 UTC\",\"updated_at\":\"2021-11-15 08:16:36
+ UTC\",\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Puppet
+ CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"Registration\",\"id\":13},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3}]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1226,9 +1102,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=81
+ - timeout=15, max=82
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -1244,7 +1120,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '666'
+ - '629'
status:
code: 200
message: OK
@@ -1260,20 +1136,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296
+ uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-5.tanso.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\
- \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\
- :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\
- name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\
- id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\
- :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\
- ,\"id\":3}]}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-5.tanso.example.com\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"created_at\":\"2021-11-15 08:16:36 UTC\",\"updated_at\":\"2021-11-15 08:16:36
+ UTC\",\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Puppet
+ CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"Registration\",\"id\":13},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3}]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1292,9 +1163,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=80
+ - timeout=15, max=81
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -1310,12 +1181,19 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '666'
+ - '629'
status:
code: 200
message: OK
- request:
- body: '{"hostgroup": {"organization_ids": [51, 52]}}'
+ body: '{"hostgroup": {"name": "New host group", "description": "New host group",
+ "environment_id": 1, "compute_profile_id": 4, "compute_resource_id": 1, "operatingsystem_id":
+ 2, "architecture_id": 1, "pxe_loader": "Grub2 UEFI", "medium_id": 13, "ptable_id":
+ 133, "subnet_id": 1, "domain_id": 2, "config_group_ids": [1, 2], "group_parameters_attributes":
+ [{"name": "subnet_param1", "value": "value1", "parameter_type": "string"}, {"name":
+ "subnet_param2", "value": "value2", "parameter_type": "string"}], "puppet_proxy_id":
+ 1, "puppet_ca_proxy_id": 1, "location_ids": [9, 10, 11], "organization_ids":
+ [12, 13]}}'
headers:
Accept:
- application/json;version=2
@@ -1324,25 +1202,25 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '45'
+ - '603'
Content-Type:
- application/json
User-Agent:
- apypie (https://github.com/Apipie/apypie)
- method: PUT
- uri: https://foreman.example.org/api/hostgroups/2
+ method: POST
+ uri: https://foreman.example.org/api/hostgroups
response:
body:
- string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
- 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part
- table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":2,"name":"New host
- group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03
- 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":53,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2020-09-03
- 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":54,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test
- Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test
+ string: '{"subnet_id":1,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
+ 7.6","domain_id":2,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":133,"ptable_name":"Part
+ table","medium_id":13,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2021-11-15
+ 08:33:48 UTC","updated_at":"2021-11-15 08:33:48 UTC","id":8,"name":"New host
+ group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2021-11-15
+ 08:33:48 UTC","updated_at":"2021-11-15 08:33:48 UTC","id":15,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2021-11-15
+ 08:33:48 UTC","updated_at":"2021-11-15 08:33:48 UTC","id":16,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2021-11-15
+ 08:31:39 UTC","updated_at":"2021-11-15 08:31:39 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2021-11-15
+ 08:31:40 UTC","updated_at":"2021-11-15 08:31:40 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":9,"name":"Foo","title":"Foo","description":null},{"id":10,"name":"Baz","title":"Foo/Baz","description":null},{"id":11,"name":"Bar","title":"Bar","description":null}],"organizations":[{"id":12,"name":"Test
+ Org1","title":"Test Org1","description":"A test organization"},{"id":13,"name":"Test
Org2","title":"Test Org2","description":"A test organization"}]}'
headers:
Cache-Control:
@@ -1362,13 +1240,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=79
+ - timeout=15, max=80
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
- Vary:
- - Accept-Encoding
+ Transfer-Encoding:
+ - chunked
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -1379,9 +1257,7 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
- content-length:
- - '2699'
status:
- code: 200
- message: OK
+ code: 201
+ message: Created
version: 1
diff --git a/tests/test_playbooks/fixtures/hostgroup-1.yml b/tests/test_playbooks/fixtures/hostgroup-1.yml
index 76860656..1ffb4b92 100644
--- a/tests/test_playbooks/fixtures/hostgroup-1.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-1.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,32 +70,10 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group+with+puppet+classes%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group with puppet classes\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"subnet_id\":35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\
- :2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":17,\"domain_name\"\
- :\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\"\
- ,\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":127,\"ptable_name\"\
- :\"Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\"\
- :\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\"\
- :1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\"\
- :\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-09-03\
- \ 07:54:34 UTC\",\"updated_at\":\"2020-09-03 07:54:34 UTC\",\"id\":3,\"name\"\
- :\"New host group with puppet classes\",\"title\":\"New host group with puppet\
- \ classes\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\"\
- :\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\"\
- :\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"inherited_compute_profile_id\"\
- :null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\"\
- :null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\"\
- :null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\"\
- :null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\"\
- :null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\"\
- :null}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group with puppet classes\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ []\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -114,7 +92,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -132,72 +110,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1876'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json;version=2
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - apypie (https://github.com/Apipie/apypie)
- method: GET
- uri: https://foreman.example.org/api/hostgroups/3
- response:
- body:
- string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
- 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part
- table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:54:34 UTC","updated_at":"2020-09-03 07:54:34 UTC","id":3,"name":"New host
- group with puppet classes","title":"New host group with puppet classes","description":"New
- host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03
- 07:54:35 UTC","updated_at":"2020-09-03 07:54:35 UTC","id":55,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2020-09-03
- 07:54:35 UTC","updated_at":"2020-09-03 07:54:35 UTC","id":56,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[]}'
- headers:
- Cache-Control:
- - max-age=0, private, must-revalidate
- Connection:
- - Keep-Alive
- Content-Security-Policy:
- - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
- style-src ''unsafe-inline'' ''self'''
- Content-Type:
- - application/json; charset=utf-8
- Foreman_api_version:
- - '2'
- Foreman_current_location:
- - ; ANY
- Foreman_current_organization:
- - ; ANY
- Foreman_version:
- - 2.1.2
- Keep-Alive:
- - timeout=15, max=98
- Strict-Transport-Security:
- - max-age=631139040; includeSubdomains
- Vary:
- - Accept-Encoding
- X-Content-Type-Options:
- - nosniff
- X-Download-Options:
- - noopen
- X-Frame-Options:
- - sameorigin
- X-Permitted-Cross-Domain-Policies:
- - none
- X-XSS-Protection:
- - 1; mode=block
- content-length:
- - '2570'
+ - '201'
status:
code: 200
message: OK
@@ -216,13 +129,11 @@ interactions:
uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\
- \ 07:56:40 UTC\",\"updated_at\":\"2020-09-03 07:56:40 UTC\",\"id\":51,\"name\"\
- :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\
- }]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:35 UTC\",\"updated_at\":\"2021-11-15 08:24:35 UTC\",\"id\":12,\"name\":\"Test
+ Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -241,9 +152,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=97
+ - timeout=15, max=98
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -278,13 +189,11 @@ interactions:
uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\
- \ 07:56:41 UTC\",\"updated_at\":\"2020-09-03 07:56:41 UTC\",\"id\":52,\"name\"\
- :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\
- }]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:35 UTC\",\"updated_at\":\"2021-11-15 08:24:35 UTC\",\"id\":13,\"name\":\"Test
+ Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -303,9 +212,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=96
+ - timeout=15, max=97
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -340,12 +249,10 @@ interactions:
uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\
- by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\
- parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:16\
- \ UTC\",\"updated_at\":\"2020-09-03 07:50:16 UTC\",\"id\":46,\"name\":\"Foo\"\
- ,\"title\":\"Foo\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:32 UTC\",\"updated_at\":\"2021-11-15 08:24:32 UTC\",\"id\":9,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -364,9 +271,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=95
+ - timeout=15, max=96
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -382,7 +289,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '355'
+ - '354'
status:
code: 200
message: OK
@@ -401,12 +308,10 @@ interactions:
uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :\"46\",\"parent_id\":46,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\
- \ 07:50:17 UTC\",\"updated_at\":\"2020-09-03 07:50:17 UTC\",\"id\":47,\"name\"\
- :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"9\",\"parent_id\":9,\"parent_name\":\"Foo\",\"created_at\":\"2021-11-15
+ 08:24:33 UTC\",\"updated_at\":\"2021-11-15 08:24:33 UTC\",\"id\":10,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -425,9 +330,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=94
+ - timeout=15, max=95
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -443,7 +348,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '362'
+ - '360'
status:
code: 200
message: OK
@@ -462,12 +367,10 @@ interactions:
uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\
- by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\
- parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:18\
- \ UTC\",\"updated_at\":\"2020-09-03 07:50:18 UTC\",\"id\":48,\"name\":\"Bar\"\
- ,\"title\":\"Bar\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:34 UTC\",\"updated_at\":\"2021-11-15 08:24:34 UTC\",\"id\":11,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -486,9 +389,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=93
+ - timeout=15, max=94
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -523,13 +426,10 @@ interactions:
uri: https://foreman.example.org/api/compute_resources?search=name%3D%22libvirt-cr%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"libvirt-cr\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\
- :null,\"url\":\"qemu:///system\",\"created_at\":\"2020-09-03 07:54:29 UTC\"\
- ,\"updated_at\":\"2020-09-03 07:54:29 UTC\",\"id\":1,\"name\":\"libvirt-cr\"\
- ,\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\"\
- :\"vnc\",\"set_console_password\":true}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"libvirt-cr\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"url\":\"qemu:///system\",\"created_at\":\"2021-11-15
+ 08:31:38 UTC\",\"updated_at\":\"2021-11-15 08:31:38 UTC\",\"id\":1,\"name\":\"libvirt-cr\",\"provider\":\"Libvirt\",\"provider_friendly_name\":\"Libvirt\",\"display_type\":\"vnc\",\"set_console_password\":true}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -548,9 +448,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=92
+ - timeout=15, max=93
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -585,11 +485,10 @@ interactions:
uri: https://foreman.example.org/api/compute_profiles?search=name%3D%22myprofile%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"myprofile\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-09-03 07:54:30 UTC\",\"updated_at\":\"2020-09-03 07:54:30 UTC\",\"\
- id\":4,\"name\":\"myprofile\"}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"myprofile\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:31:39 UTC\",\"updated_at\":\"2021-11-15 08:31:39 UTC\",\"id\":4,\"name\":\"myprofile\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -608,9 +507,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=91
+ - timeout=15, max=92
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -645,13 +544,10 @@ interactions:
uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\
- :null,\"created_at\":\"2020-09-03 07:50:22 UTC\",\"updated_at\":\"2020-09-03\
- \ 07:50:22 UTC\",\"id\":17,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- }}]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\":null,\"created_at\":\"2021-11-15
+ 08:27:23 UTC\",\"updated_at\":\"2021-11-15 08:27:23 UTC\",\"id\":2,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"}}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -670,9 +566,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=90
+ - timeout=15, max=91
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -688,7 +584,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '441'
+ - '440'
status:
code: 200
message: OK
@@ -707,19 +603,11 @@ interactions:
uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\
- :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\
- ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\
- :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\
- \ 07:50:23 UTC\",\"updated_at\":\"2020-09-03 07:50:23 UTC\",\"ipam\":\"DHCP\"\
- ,\"boot_mode\":\"DHCP\",\"id\":35,\"name\":\"Test subnet4\",\"description\"\
- :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\
- :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\
- :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\
- template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\
- :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2021-11-15
+ 08:27:24 UTC\",\"updated_at\":\"2021-11-15 08:27:24 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"nic_delay\":null,\"id\":1,\"name\":\"Test
+ subnet4\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"bmc_id\":null,\"bmc_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"externalipam\":null,\"dns\":null,\"template\":null,\"bmc\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -738,9 +626,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=89
+ - timeout=15, max=90
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -756,7 +644,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '870'
+ - '927'
status:
code: 200
message: OK
@@ -775,11 +663,10 @@ interactions:
uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-07-15 11:29:52 UTC\",\"updated_at\":\"2020-07-15 11:29:52 UTC\",\"\
- name\":\"x86_64\",\"id\":1}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:14:58 UTC\",\"updated_at\":\"2021-11-15 08:14:58 UTC\",\"name\":\"x86_64\",\"id\":1}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -798,9 +685,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=88
+ - timeout=15, max=89
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -835,13 +722,11 @@ interactions:
uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\
- :null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\"\
- :\"reverse whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-09-03\
- \ 07:50:25 UTC\",\"updated_at\":\"2020-09-03 07:50:25 UTC\",\"id\":2,\"name\"\
- :\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\":\"reverse
+ whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2021-11-15 08:27:25 UTC\",\"updated_at\":\"2021-11-15
+ 08:27:25 UTC\",\"id\":2,\"name\":\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -860,9 +745,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=87
+ - timeout=15, max=88
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -897,12 +782,11 @@ interactions:
uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 12,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\":\
- \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\"\
- :\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\"\
- :\"2020-09-03 07:50:26 UTC\",\"updated_at\":\"2020-09-03 07:50:26 UTC\",\"\
- id\":12,\"name\":\"TestOS Mirror\"}]\n}\n"
+ string: "{\n \"total\": 13,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\":\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\":\"2021-11-15
+ 08:27:25 UTC\",\"updated_at\":\"2021-11-15 08:27:25 UTC\",\"id\":13,\"name\":\"TestOS
+ Mirror\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -921,9 +805,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=86
+ - timeout=15, max=87
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -958,12 +842,11 @@ interactions:
uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 19,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\
- :null,\"os_family\":\"Redhat\",\"created_at\":\"2020-09-03 07:50:24 UTC\"\
- ,\"updated_at\":\"2020-09-03 07:50:24 UTC\",\"name\":\"Part table\",\"id\"\
- :127}]\n}\n"
+ string: "{\n \"total\": 20,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"os_family\":\"Redhat\",\"created_at\":\"2021-11-15
+ 08:27:24 UTC\",\"updated_at\":\"2021-11-15 08:27:24 UTC\",\"name\":\"Part
+ table\",\"id\":133}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -982,9 +865,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=85
+ - timeout=15, max=86
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -1019,11 +902,10 @@ interactions:
uri: https://foreman.example.org/api/environments?search=name%3D%22production%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"production\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-07-15 11:32:08 UTC\",\"updated_at\":\"2020-07-15 11:32:08 UTC\",\"\
- name\":\"production\",\"id\":1}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"production\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:16:43 UTC\",\"updated_at\":\"2021-11-15 08:16:43 UTC\",\"name\":\"production\",\"id\":1}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1042,9 +924,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=84
+ - timeout=15, max=85
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -1079,11 +961,10 @@ interactions:
uri: https://foreman.example.org/api/config_groups?search=name%3D%22cfg_group1%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"cfg_group1\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-09-03 07:54:31 UTC\",\"updated_at\":\"2020-09-03 07:54:31 UTC\",\"\
- id\":1,\"name\":\"cfg_group1\",\"puppetclasses\":[]}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"cfg_group1\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:31:39 UTC\",\"updated_at\":\"2021-11-15 08:31:39 UTC\",\"id\":1,\"name\":\"cfg_group1\",\"puppetclasses\":[]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1102,9 +983,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=83
+ - timeout=15, max=84
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -1139,11 +1020,10 @@ interactions:
uri: https://foreman.example.org/api/config_groups?search=name%3D%22cfg_group2%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"cfg_group2\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-09-03 07:54:31 UTC\",\"updated_at\":\"2020-09-03 07:54:31 UTC\",\"\
- id\":2,\"name\":\"cfg_group2\",\"puppetclasses\":[]}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"cfg_group2\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:31:40 UTC\",\"updated_at\":\"2021-11-15 08:31:40 UTC\",\"id\":2,\"name\":\"cfg_group2\",\"puppetclasses\":[]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1162,9 +1042,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=82
+ - timeout=15, max=83
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -1196,20 +1076,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296
+ uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-5.tanso.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\
- \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\
- :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\
- name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\
- id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\
- :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\
- ,\"id\":3}]}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-5.tanso.example.com\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"created_at\":\"2021-11-15 08:16:36 UTC\",\"updated_at\":\"2021-11-15 08:16:36
+ UTC\",\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Puppet
+ CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"Registration\",\"id\":13},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3}]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1228,9 +1103,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=81
+ - timeout=15, max=82
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -1246,7 +1121,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '666'
+ - '629'
status:
code: 200
message: OK
@@ -1262,20 +1137,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296
+ uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-5.tanso.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\
- \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\
- :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\
- name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\
- id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\
- :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\
- ,\"id\":3}]}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-5.tanso.example.com\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"created_at\":\"2021-11-15 08:16:36 UTC\",\"updated_at\":\"2021-11-15 08:16:36
+ UTC\",\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Puppet
+ CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"Registration\",\"id\":13},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3}]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1294,9 +1164,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=80
+ - timeout=15, max=81
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -1312,12 +1182,19 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '666'
+ - '629'
status:
code: 200
message: OK
- request:
- body: '{"hostgroup": {"organization_ids": [51, 52]}}'
+ body: '{"hostgroup": {"name": "New host group with puppet classes", "description":
+ "New host group", "environment_id": 1, "compute_profile_id": 4, "compute_resource_id":
+ 1, "operatingsystem_id": 2, "architecture_id": 1, "pxe_loader": "Grub2 UEFI",
+ "medium_id": 13, "ptable_id": 133, "subnet_id": 1, "domain_id": 2, "config_group_ids":
+ [1, 2], "group_parameters_attributes": [{"name": "subnet_param1", "value": "value1",
+ "parameter_type": "string"}, {"name": "subnet_param2", "value": "value2", "parameter_type":
+ "string"}], "puppet_proxy_id": 1, "puppet_ca_proxy_id": 1, "location_ids": [9,
+ 10, 11], "organization_ids": [12, 13]}}'
headers:
Accept:
- application/json;version=2
@@ -1326,26 +1203,26 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '45'
+ - '623'
Content-Type:
- application/json
User-Agent:
- apypie (https://github.com/Apipie/apypie)
- method: PUT
- uri: https://foreman.example.org/api/hostgroups/3
+ method: POST
+ uri: https://foreman.example.org/api/hostgroups
response:
body:
- string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
- 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part
- table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:54:34 UTC","updated_at":"2020-09-03 07:54:34 UTC","id":3,"name":"New host
+ string: '{"subnet_id":1,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
+ 7.6","domain_id":2,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":133,"ptable_name":"Part
+ table","medium_id":13,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2021-11-15
+ 08:33:49 UTC","updated_at":"2021-11-15 08:33:49 UTC","id":9,"name":"New host
group with puppet classes","title":"New host group with puppet classes","description":"New
- host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03
- 07:54:35 UTC","updated_at":"2020-09-03 07:54:35 UTC","id":55,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2020-09-03
- 07:54:35 UTC","updated_at":"2020-09-03 07:54:35 UTC","id":56,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test
- Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test
+ host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2021-11-15
+ 08:33:49 UTC","updated_at":"2021-11-15 08:33:49 UTC","id":17,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2021-11-15
+ 08:33:49 UTC","updated_at":"2021-11-15 08:33:49 UTC","id":18,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2021-11-15
+ 08:31:39 UTC","updated_at":"2021-11-15 08:31:39 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2021-11-15
+ 08:31:40 UTC","updated_at":"2021-11-15 08:31:40 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":9,"name":"Foo","title":"Foo","description":null},{"id":10,"name":"Baz","title":"Foo/Baz","description":null},{"id":11,"name":"Bar","title":"Bar","description":null}],"organizations":[{"id":12,"name":"Test
+ Org1","title":"Test Org1","description":"A test organization"},{"id":13,"name":"Test
Org2","title":"Test Org2","description":"A test organization"}]}'
headers:
Cache-Control:
@@ -1365,13 +1242,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=79
+ - timeout=15, max=80
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
- Vary:
- - Accept-Encoding
+ Transfer-Encoding:
+ - chunked
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -1382,11 +1259,9 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
- content-length:
- - '2739'
status:
- code: 200
- message: OK
+ code: 201
+ message: Created
- request:
body: null
headers:
@@ -1402,12 +1277,10 @@ interactions:
uri: https://foreman.example.org/api/environments/1/puppetclasses?search=name%3D%22prometheus%3A%3Aredis_exporter%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 50,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"prometheus::redis_exporter\\\"\",\n\
- \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : {\"prometheus\":[{\"id\":33,\"name\":\"prometheus::redis_exporter\",\"created_at\"\
- :\"2020-09-03T07:55:19.882Z\",\"updated_at\":\"2020-09-03T07:55:19.882Z\"\
- }]}\n}\n"
+ string: "{\n \"total\": 59,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"prometheus::redis_exporter\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ {\"prometheus\":[{\"id\":39,\"name\":\"prometheus::redis_exporter\",\"created_at\":\"2021-11-15T08:22:48.079Z\",\"updated_at\":\"2021-11-15T08:22:48.079Z\"}]}\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1426,9 +1299,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=78
+ - timeout=15, max=79
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -1449,7 +1322,7 @@ interactions:
code: 200
message: OK
- request:
- body: '{"puppetclass_id": 33}'
+ body: '{"puppetclass_id": 39}'
headers:
Accept:
- application/json;version=2
@@ -1464,10 +1337,10 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: POST
- uri: https://foreman.example.org/api/hostgroups/3/puppetclass_ids
+ uri: https://foreman.example.org/api/hostgroups/9/puppetclass_ids
response:
body:
- string: '{"hostgroup_id":3,"puppetclass_id":33}'
+ string: '{"hostgroup_id":9,"puppetclass_id":39}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1486,9 +1359,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- - timeout=15, max=77
+ - timeout=15, max=78
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
diff --git a/tests/test_playbooks/fixtures/hostgroup-10.yml b/tests/test_playbooks/fixtures/hostgroup-10.yml
index 150ff5bc..9b9a2c46 100644
--- a/tests/test_playbooks/fixtures/hostgroup-10.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-10.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,10 +70,10 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%2FNew+host+group+with+nested+parent%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group/New\
- \ host group with nested parent\\\"\",\n \"sort\": {\n \"by\": null,\n\
- \ \"order\": null\n },\n \"results\": []\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group/New
+ host group with nested parent\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\":
+ null\n },\n \"results\": []\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -92,7 +92,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -126,16 +126,19 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296
+ uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\
- \ 07:56:40 UTC\",\"updated_at\":\"2020-09-03 07:56:40 UTC\",\"id\":51,\"name\"\
- :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\
- }]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"subnet_id\":1,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS
+ 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\":\"8\",\"parent_id\":8,\"parent_name\":\"New
+ host group\",\"ptable_id\":133,\"ptable_name\":\"Part table\",\"medium_id\":13,\"medium_name\":\"TestOS
+ Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:54 UTC\",\"updated_at\":\"2021-11-15 08:33:54 UTC\",\"id\":10,\"name\":\"Nested
+ New host group\",\"title\":\"New host group/Nested New host group\",\"description\":\"Nested
+ group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -154,7 +157,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -172,7 +175,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '389'
+ - '1872'
status:
code: 200
message: OK
@@ -188,16 +191,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296
+ uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\
- \ 07:56:41 UTC\",\"updated_at\":\"2020-09-03 07:56:41 UTC\",\"id\":52,\"name\"\
- :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\
- }]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:35 UTC\",\"updated_at\":\"2021-11-15 08:24:35 UTC\",\"id\":12,\"name\":\"Test
+ Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -216,7 +217,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=97
Strict-Transport-Security:
@@ -250,15 +251,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296
+ uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\
- by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\
- parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:16\
- \ UTC\",\"updated_at\":\"2020-09-03 07:50:16 UTC\",\"id\":46,\"name\":\"Foo\"\
- ,\"title\":\"Foo\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:35 UTC\",\"updated_at\":\"2021-11-15 08:24:35 UTC\",\"id\":13,\"name\":\"Test
+ Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -277,7 +277,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=96
Strict-Transport-Security:
@@ -295,7 +295,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '355'
+ - '389'
status:
code: 200
message: OK
@@ -311,15 +311,13 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296
+ uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :\"46\",\"parent_id\":46,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\
- \ 07:50:17 UTC\",\"updated_at\":\"2020-09-03 07:50:17 UTC\",\"id\":47,\"name\"\
- :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:32 UTC\",\"updated_at\":\"2021-11-15 08:24:32 UTC\",\"id\":9,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -338,7 +336,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=95
Strict-Transport-Security:
@@ -356,7 +354,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '362'
+ - '354'
status:
code: 200
message: OK
@@ -372,15 +370,13 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296
+ uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\
- by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\
- parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:18\
- \ UTC\",\"updated_at\":\"2020-09-03 07:50:18 UTC\",\"id\":48,\"name\":\"Bar\"\
- ,\"title\":\"Bar\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"9\",\"parent_id\":9,\"parent_name\":\"Foo\",\"created_at\":\"2021-11-15
+ 08:24:33 UTC\",\"updated_at\":\"2021-11-15 08:24:33 UTC\",\"id\":10,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -399,7 +395,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=94
Strict-Transport-Security:
@@ -417,7 +413,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '355'
+ - '360'
status:
code: 200
message: OK
@@ -433,16 +429,13 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296
+ uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\
- :null,\"created_at\":\"2020-09-03 07:50:22 UTC\",\"updated_at\":\"2020-09-03\
- \ 07:50:22 UTC\",\"id\":17,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- }}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:34 UTC\",\"updated_at\":\"2021-11-15 08:24:34 UTC\",\"id\":11,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -461,7 +454,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=93
Strict-Transport-Security:
@@ -479,7 +472,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '441'
+ - '355'
status:
code: 200
message: OK
@@ -495,22 +488,13 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296
+ uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\
- :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\
- ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\
- :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\
- \ 07:50:23 UTC\",\"updated_at\":\"2020-09-03 07:50:23 UTC\",\"ipam\":\"DHCP\"\
- ,\"boot_mode\":\"DHCP\",\"id\":35,\"name\":\"Test subnet4\",\"description\"\
- :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\
- :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\
- :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\
- template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\
- :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\":null,\"created_at\":\"2021-11-15
+ 08:27:23 UTC\",\"updated_at\":\"2021-11-15 08:27:23 UTC\",\"id\":2,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"}}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -529,7 +513,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=92
Strict-Transport-Security:
@@ -547,7 +531,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '870'
+ - '440'
status:
code: 200
message: OK
@@ -563,14 +547,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296
+ uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-07-15 11:29:52 UTC\",\"updated_at\":\"2020-07-15 11:29:52 UTC\",\"\
- name\":\"x86_64\",\"id\":1}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2021-11-15
+ 08:27:24 UTC\",\"updated_at\":\"2021-11-15 08:27:24 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"nic_delay\":null,\"id\":1,\"name\":\"Test
+ subnet4\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"bmc_id\":null,\"bmc_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"externalipam\":null,\"dns\":null,\"template\":null,\"bmc\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -589,7 +573,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=91
Strict-Transport-Security:
@@ -607,7 +591,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '274'
+ - '927'
status:
code: 200
message: OK
@@ -623,16 +607,13 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296
+ uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\
- :null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\"\
- :\"reverse whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-09-03\
- \ 07:50:25 UTC\",\"updated_at\":\"2020-09-03 07:50:25 UTC\",\"id\":2,\"name\"\
- :\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:14:58 UTC\",\"updated_at\":\"2021-11-15 08:14:58 UTC\",\"name\":\"x86_64\",\"id\":1}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -651,7 +632,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=90
Strict-Transport-Security:
@@ -669,7 +650,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '416'
+ - '274'
status:
code: 200
message: OK
@@ -685,15 +666,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296
+ uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 12,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\":\
- \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\"\
- :\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\"\
- :\"2020-09-03 07:50:26 UTC\",\"updated_at\":\"2020-09-03 07:50:26 UTC\",\"\
- id\":12,\"name\":\"TestOS Mirror\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\":\"reverse
+ whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2021-11-15 08:27:25 UTC\",\"updated_at\":\"2021-11-15
+ 08:27:25 UTC\",\"id\":2,\"name\":\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -712,7 +692,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=89
Strict-Transport-Security:
@@ -730,7 +710,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '354'
+ - '416'
status:
code: 200
message: OK
@@ -746,15 +726,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296
+ uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 19,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\
- :null,\"os_family\":\"Redhat\",\"created_at\":\"2020-09-03 07:50:24 UTC\"\
- ,\"updated_at\":\"2020-09-03 07:50:24 UTC\",\"name\":\"Part table\",\"id\"\
- :127}]\n}\n"
+ string: "{\n \"total\": 13,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\":\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\":\"2021-11-15
+ 08:27:25 UTC\",\"updated_at\":\"2021-11-15 08:27:25 UTC\",\"id\":13,\"name\":\"TestOS
+ Mirror\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -773,7 +752,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=88
Strict-Transport-Security:
@@ -791,7 +770,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '325'
+ - '354'
status:
code: 200
message: OK
@@ -807,20 +786,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296
+ uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\
- \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\
- :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\
- name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\
- id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\
- :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\
- ,\"id\":3}]}]\n}\n"
+ string: "{\n \"total\": 20,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"os_family\":\"Redhat\",\"created_at\":\"2021-11-15
+ 08:27:24 UTC\",\"updated_at\":\"2021-11-15 08:27:24 UTC\",\"name\":\"Part
+ table\",\"id\":133}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -839,7 +812,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=87
Strict-Transport-Security:
@@ -857,7 +830,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '666'
+ - '325'
status:
code: 200
message: OK
@@ -873,20 +846,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296
+ uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-5.tanso.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\
- \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\
- :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\
- name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\
- id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\
- :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\
- ,\"id\":3}]}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-5.tanso.example.com\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"created_at\":\"2021-11-15 08:16:36 UTC\",\"updated_at\":\"2021-11-15 08:16:36
+ UTC\",\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Puppet
+ CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"Registration\",\"id\":13},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3}]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -905,7 +873,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=86
Strict-Transport-Security:
@@ -923,7 +891,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '666'
+ - '629'
status:
code: 200
message: OK
@@ -939,35 +907,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%22&per_page=4294967296
+ uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-5.tanso.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"subnet_id\":35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\
- :2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":17,\"domain_name\"\
- :\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\"\
- ,\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\"\
- :\"2\",\"parent_id\":2,\"parent_name\":\"New host group\",\"ptable_id\":127,\"\
- ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\"\
- ,\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"\
- compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\"\
- :1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"\
- created_at\":\"2020-09-03 07:57:00 UTC\",\"updated_at\":\"2020-09-03 07:57:00\
- \ UTC\",\"id\":4,\"name\":\"Nested New host group\",\"title\":\"New host group/Nested\
- \ New host group\",\"description\":\"Nested group\",\"puppet_proxy_id\":1,\"\
- puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\"\
- :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
- :null,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\"\
- :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-5.tanso.example.com\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"created_at\":\"2021-11-15 08:16:36 UTC\",\"updated_at\":\"2021-11-15 08:16:36
+ UTC\",\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Puppet
+ CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"Registration\",\"id\":13},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3}]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -986,7 +934,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=85
Strict-Transport-Security:
@@ -1004,16 +952,16 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1873'
+ - '629'
status:
code: 200
message: OK
- request:
body: '{"hostgroup": {"name": "New host group with nested parent", "description":
- "Nested group", "parent_id": 4, "operatingsystem_id": 2, "architecture_id":
- 1, "pxe_loader": "Grub2 UEFI", "medium_id": 12, "ptable_id": 127, "subnet_id":
- 35, "domain_id": 17, "puppet_proxy_id": 1, "puppet_ca_proxy_id": 1, "location_ids":
- [46, 47, 48], "organization_ids": [51, 52]}}'
+ "Nested group", "parent_id": 10, "operatingsystem_id": 2, "architecture_id":
+ 1, "pxe_loader": "Grub2 UEFI", "medium_id": 13, "ptable_id": 133, "subnet_id":
+ 1, "domain_id": 2, "puppet_proxy_id": 1, "puppet_ca_proxy_id": 1, "location_ids":
+ [9, 10, 11], "organization_ids": [12, 13]}}'
headers:
Accept:
- application/json;version=2
@@ -1022,7 +970,7 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '358'
+ - '356'
Content-Type:
- application/json
User-Agent:
@@ -1031,14 +979,14 @@ interactions:
uri: https://foreman.example.org/api/hostgroups
response:
body:
- string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
- 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"2/4","parent_id":4,"parent_name":"New
- host group/Nested New host group","ptable_id":127,"ptable_name":"Part table","medium_id":12,"medium_name":"TestOS
- Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:57:02 UTC","updated_at":"2020-09-03 07:57:02 UTC","id":5,"name":"New host
+ string: '{"subnet_id":1,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
+ 7.6","domain_id":2,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"8/10","parent_id":10,"parent_name":"New
+ host group/Nested New host group","ptable_id":133,"ptable_name":"Part table","medium_id":13,"medium_name":"TestOS
+ Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2021-11-15
+ 08:33:56 UTC","updated_at":"2021-11-15 08:33:56 UTC","id":11,"name":"New host
group with nested parent","title":"New host group/Nested New host group/New
- host group with nested parent","description":"Nested group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null},{"id":48,"name":"Bar","title":"Bar","description":null}],"organizations":[{"id":51,"name":"Test
- Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test
+ host group with nested parent","description":"Nested group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[{"id":9,"name":"Foo","title":"Foo","description":null},{"id":10,"name":"Baz","title":"Foo/Baz","description":null},{"id":11,"name":"Bar","title":"Bar","description":null}],"organizations":[{"id":12,"name":"Test
+ Org1","title":"Test Org1","description":"A test organization"},{"id":13,"name":"Test
Org2","title":"Test Org2","description":"A test organization"}]}'
headers:
Cache-Control:
@@ -1058,7 +1006,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=84
Strict-Transport-Security:
diff --git a/tests/test_playbooks/fixtures/hostgroup-11.yml b/tests/test_playbooks/fixtures/hostgroup-11.yml
index d674f05e..5814e454 100644
--- a/tests/test_playbooks/fixtures/hostgroup-11.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-11.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,33 +70,17 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%2FNew+host+group+with+nested+parent%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group/New\
- \ host group with nested parent\\\"\",\n \"sort\": {\n \"by\": null,\n\
- \ \"order\": null\n },\n \"results\": [{\"subnet_id\":35,\"subnet_name\"\
- :\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS\
- \ 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\
- :null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\"\
- :\"myprofile\",\"ancestry\":\"2/4\",\"parent_id\":4,\"parent_name\":\"New\
- \ host group/Nested New host group\",\"ptable_id\":127,\"ptable_name\":\"\
- Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\"\
- :\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\"\
- :null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\"\
- :\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-09-03\
- \ 07:57:02 UTC\",\"updated_at\":\"2020-09-03 07:57:02 UTC\",\"id\":5,\"name\"\
- :\"New host group with nested parent\",\"title\":\"New host group/Nested New\
- \ host group/New host group with nested parent\",\"description\":\"Nested\
- \ group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"puppet_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"puppet_ca_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\"\
- :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
- :null,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\"\
- :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group/New
+ host group with nested parent\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\":
+ null\n },\n \"results\": [{\"subnet_id\":1,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS
+ 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\":\"8/10\",\"parent_id\":10,\"parent_name\":\"New
+ host group/Nested New host group\",\"ptable_id\":133,\"ptable_name\":\"Part
+ table\",\"medium_id\":13,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2
+ UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:56 UTC\",\"updated_at\":\"2021-11-15 08:33:56 UTC\",\"id\":11,\"name\":\"New
+ host group with nested parent\",\"title\":\"New host group/Nested New host
+ group/New host group with nested parent\",\"description\":\"Nested group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -115,7 +99,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -133,7 +117,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1977'
+ - '1978'
status:
code: 200
message: OK
@@ -149,17 +133,17 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/hostgroups/5
+ uri: https://foreman.example.org/api/hostgroups/11
response:
body:
- string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
- 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"2/4","parent_id":4,"parent_name":"New
- host group/Nested New host group","ptable_id":127,"ptable_name":"Part table","medium_id":12,"medium_name":"TestOS
- Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:57:02 UTC","updated_at":"2020-09-03 07:57:02 UTC","id":5,"name":"New host
+ string: '{"subnet_id":1,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
+ 7.6","domain_id":2,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"8/10","parent_id":10,"parent_name":"New
+ host group/Nested New host group","ptable_id":133,"ptable_name":"Part table","medium_id":13,"medium_name":"TestOS
+ Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2021-11-15
+ 08:33:56 UTC","updated_at":"2021-11-15 08:33:56 UTC","id":11,"name":"New host
group with nested parent","title":"New host group/Nested New host group/New
- host group with nested parent","description":"Nested group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test
- Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test
+ host group with nested parent","description":"Nested group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[{"id":11,"name":"Bar","title":"Bar","description":null},{"id":9,"name":"Foo","title":"Foo","description":null},{"id":10,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":12,"name":"Test
+ Org1","title":"Test Org1","description":"A test organization"},{"id":13,"name":"Test
Org2","title":"Test Org2","description":"A test organization"}]}'
headers:
Cache-Control:
@@ -179,7 +163,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -213,16 +197,19 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296
+ uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\
- \ 07:56:40 UTC\",\"updated_at\":\"2020-09-03 07:56:40 UTC\",\"id\":51,\"name\"\
- :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\
- }]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"subnet_id\":1,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS
+ 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\":\"8\",\"parent_id\":8,\"parent_name\":\"New
+ host group\",\"ptable_id\":133,\"ptable_name\":\"Part table\",\"medium_id\":13,\"medium_name\":\"TestOS
+ Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:54 UTC\",\"updated_at\":\"2021-11-15 08:33:54 UTC\",\"id\":10,\"name\":\"Nested
+ New host group\",\"title\":\"New host group/Nested New host group\",\"description\":\"Nested
+ group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -241,7 +228,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=97
Strict-Transport-Security:
@@ -259,7 +246,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '389'
+ - '1872'
status:
code: 200
message: OK
@@ -275,16 +262,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296
+ uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\
- \ 07:56:41 UTC\",\"updated_at\":\"2020-09-03 07:56:41 UTC\",\"id\":52,\"name\"\
- :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\
- }]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:35 UTC\",\"updated_at\":\"2021-11-15 08:24:35 UTC\",\"id\":12,\"name\":\"Test
+ Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -303,7 +288,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=96
Strict-Transport-Security:
@@ -337,15 +322,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296
+ uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\
- by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\
- parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:16\
- \ UTC\",\"updated_at\":\"2020-09-03 07:50:16 UTC\",\"id\":46,\"name\":\"Foo\"\
- ,\"title\":\"Foo\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:35 UTC\",\"updated_at\":\"2021-11-15 08:24:35 UTC\",\"id\":13,\"name\":\"Test
+ Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -364,7 +348,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=95
Strict-Transport-Security:
@@ -382,7 +366,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '355'
+ - '389'
status:
code: 200
message: OK
@@ -398,15 +382,13 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296
+ uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :\"46\",\"parent_id\":46,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\
- \ 07:50:17 UTC\",\"updated_at\":\"2020-09-03 07:50:17 UTC\",\"id\":47,\"name\"\
- :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:32 UTC\",\"updated_at\":\"2021-11-15 08:24:32 UTC\",\"id\":9,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -425,7 +407,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=94
Strict-Transport-Security:
@@ -443,7 +425,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '362'
+ - '354'
status:
code: 200
message: OK
@@ -459,15 +441,13 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296
+ uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\
- by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\
- parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:18\
- \ UTC\",\"updated_at\":\"2020-09-03 07:50:18 UTC\",\"id\":48,\"name\":\"Bar\"\
- ,\"title\":\"Bar\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"9\",\"parent_id\":9,\"parent_name\":\"Foo\",\"created_at\":\"2021-11-15
+ 08:24:33 UTC\",\"updated_at\":\"2021-11-15 08:24:33 UTC\",\"id\":10,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -486,7 +466,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=93
Strict-Transport-Security:
@@ -504,7 +484,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '355'
+ - '360'
status:
code: 200
message: OK
@@ -520,16 +500,13 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296
+ uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\
- :null,\"created_at\":\"2020-09-03 07:50:22 UTC\",\"updated_at\":\"2020-09-03\
- \ 07:50:22 UTC\",\"id\":17,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- }}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:34 UTC\",\"updated_at\":\"2021-11-15 08:24:34 UTC\",\"id\":11,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -548,7 +525,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=92
Strict-Transport-Security:
@@ -566,7 +543,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '441'
+ - '355'
status:
code: 200
message: OK
@@ -582,22 +559,13 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296
+ uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\
- :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\
- ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\
- :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\
- \ 07:50:23 UTC\",\"updated_at\":\"2020-09-03 07:50:23 UTC\",\"ipam\":\"DHCP\"\
- ,\"boot_mode\":\"DHCP\",\"id\":35,\"name\":\"Test subnet4\",\"description\"\
- :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\
- :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\
- :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\
- template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\
- :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\":null,\"created_at\":\"2021-11-15
+ 08:27:23 UTC\",\"updated_at\":\"2021-11-15 08:27:23 UTC\",\"id\":2,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"}}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -616,7 +584,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=91
Strict-Transport-Security:
@@ -634,7 +602,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '870'
+ - '440'
status:
code: 200
message: OK
@@ -650,14 +618,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296
+ uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-07-15 11:29:52 UTC\",\"updated_at\":\"2020-07-15 11:29:52 UTC\",\"\
- name\":\"x86_64\",\"id\":1}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2021-11-15
+ 08:27:24 UTC\",\"updated_at\":\"2021-11-15 08:27:24 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"nic_delay\":null,\"id\":1,\"name\":\"Test
+ subnet4\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"bmc_id\":null,\"bmc_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"externalipam\":null,\"dns\":null,\"template\":null,\"bmc\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -676,7 +644,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=90
Strict-Transport-Security:
@@ -694,7 +662,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '274'
+ - '927'
status:
code: 200
message: OK
@@ -710,16 +678,13 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296
+ uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\
- :null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\"\
- :\"reverse whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-09-03\
- \ 07:50:25 UTC\",\"updated_at\":\"2020-09-03 07:50:25 UTC\",\"id\":2,\"name\"\
- :\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:14:58 UTC\",\"updated_at\":\"2021-11-15 08:14:58 UTC\",\"name\":\"x86_64\",\"id\":1}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -738,7 +703,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=89
Strict-Transport-Security:
@@ -756,7 +721,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '416'
+ - '274'
status:
code: 200
message: OK
@@ -772,15 +737,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296
+ uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 12,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\":\
- \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\"\
- :\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\"\
- :\"2020-09-03 07:50:26 UTC\",\"updated_at\":\"2020-09-03 07:50:26 UTC\",\"\
- id\":12,\"name\":\"TestOS Mirror\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\":\"reverse
+ whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2021-11-15 08:27:25 UTC\",\"updated_at\":\"2021-11-15
+ 08:27:25 UTC\",\"id\":2,\"name\":\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -799,7 +763,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=88
Strict-Transport-Security:
@@ -817,7 +781,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '354'
+ - '416'
status:
code: 200
message: OK
@@ -833,15 +797,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296
+ uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 19,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\
- :null,\"os_family\":\"Redhat\",\"created_at\":\"2020-09-03 07:50:24 UTC\"\
- ,\"updated_at\":\"2020-09-03 07:50:24 UTC\",\"name\":\"Part table\",\"id\"\
- :127}]\n}\n"
+ string: "{\n \"total\": 13,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\":\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\":\"2021-11-15
+ 08:27:25 UTC\",\"updated_at\":\"2021-11-15 08:27:25 UTC\",\"id\":13,\"name\":\"TestOS
+ Mirror\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -860,7 +823,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=87
Strict-Transport-Security:
@@ -878,7 +841,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '325'
+ - '354'
status:
code: 200
message: OK
@@ -894,20 +857,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296
+ uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\
- \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\
- :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\
- name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\
- id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\
- :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\
- ,\"id\":3}]}]\n}\n"
+ string: "{\n \"total\": 20,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"os_family\":\"Redhat\",\"created_at\":\"2021-11-15
+ 08:27:24 UTC\",\"updated_at\":\"2021-11-15 08:27:24 UTC\",\"name\":\"Part
+ table\",\"id\":133}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -926,7 +883,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=86
Strict-Transport-Security:
@@ -944,7 +901,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '666'
+ - '325'
status:
code: 200
message: OK
@@ -960,20 +917,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296
+ uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-5.tanso.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\
- \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\
- :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\
- name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\
- id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\
- :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\
- ,\"id\":3}]}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-5.tanso.example.com\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"created_at\":\"2021-11-15 08:16:36 UTC\",\"updated_at\":\"2021-11-15 08:16:36
+ UTC\",\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Puppet
+ CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"Registration\",\"id\":13},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3}]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -992,7 +944,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=85
Strict-Transport-Security:
@@ -1010,7 +962,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '666'
+ - '629'
status:
code: 200
message: OK
@@ -1026,35 +978,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%22&per_page=4294967296
+ uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-5.tanso.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"subnet_id\":35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\
- :2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":17,\"domain_name\"\
- :\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\"\
- ,\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\"\
- :\"2\",\"parent_id\":2,\"parent_name\":\"New host group\",\"ptable_id\":127,\"\
- ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\"\
- ,\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"\
- compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\"\
- :1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"\
- created_at\":\"2020-09-03 07:57:00 UTC\",\"updated_at\":\"2020-09-03 07:57:00\
- \ UTC\",\"id\":4,\"name\":\"Nested New host group\",\"title\":\"New host group/Nested\
- \ New host group\",\"description\":\"Nested group\",\"puppet_proxy_id\":1,\"\
- puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\"\
- :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
- :null,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\"\
- :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-5.tanso.example.com\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"created_at\":\"2021-11-15 08:16:36 UTC\",\"updated_at\":\"2021-11-15 08:16:36
+ UTC\",\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Puppet
+ CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"Registration\",\"id\":13},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3}]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1073,7 +1005,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=84
Strict-Transport-Security:
@@ -1091,7 +1023,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1873'
+ - '629'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/hostgroup-12.yml b/tests/test_playbooks/fixtures/hostgroup-12.yml
index 5c5be4d3..fac76a59 100644
--- a/tests/test_playbooks/fixtures/hostgroup-12.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-12.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,10 +70,10 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group+2%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 4,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\
- \ 2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\
- \ \"results\": []\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group
+ 2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ []\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -92,7 +92,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -126,16 +126,17 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296
+ uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\
- \ 07:56:40 UTC\",\"updated_at\":\"2020-09-03 07:56:40 UTC\",\"id\":51,\"name\"\
- :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\
- }]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":1,\"subnet_name\":\"Test
+ subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":133,\"ptable_name\":\"Part
+ table\",\"medium_id\":13,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2
+ UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:48 UTC\",\"updated_at\":\"2021-11-15 08:33:48 UTC\",\"id\":8,\"name\":\"New
+ host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -154,7 +155,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -172,7 +173,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '389'
+ - '1814'
status:
code: 200
message: OK
@@ -188,16 +189,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296
+ uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\
- \ 07:56:41 UTC\",\"updated_at\":\"2020-09-03 07:56:41 UTC\",\"id\":52,\"name\"\
- :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\
- }]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:35 UTC\",\"updated_at\":\"2021-11-15 08:24:35 UTC\",\"id\":12,\"name\":\"Test
+ Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -216,7 +215,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=97
Strict-Transport-Security:
@@ -250,15 +249,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296
+ uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\
- by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\
- parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:16\
- \ UTC\",\"updated_at\":\"2020-09-03 07:50:16 UTC\",\"id\":46,\"name\":\"Foo\"\
- ,\"title\":\"Foo\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:35 UTC\",\"updated_at\":\"2021-11-15 08:24:35 UTC\",\"id\":13,\"name\":\"Test
+ Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -277,7 +275,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=96
Strict-Transport-Security:
@@ -295,7 +293,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '355'
+ - '389'
status:
code: 200
message: OK
@@ -311,15 +309,13 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296
+ uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :\"46\",\"parent_id\":46,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\
- \ 07:50:17 UTC\",\"updated_at\":\"2020-09-03 07:50:17 UTC\",\"id\":47,\"name\"\
- :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:32 UTC\",\"updated_at\":\"2021-11-15 08:24:32 UTC\",\"id\":9,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -338,7 +334,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=95
Strict-Transport-Security:
@@ -356,7 +352,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '362'
+ - '354'
status:
code: 200
message: OK
@@ -372,15 +368,13 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296
+ uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\
- by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\
- parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:18\
- \ UTC\",\"updated_at\":\"2020-09-03 07:50:18 UTC\",\"id\":48,\"name\":\"Bar\"\
- ,\"title\":\"Bar\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"9\",\"parent_id\":9,\"parent_name\":\"Foo\",\"created_at\":\"2021-11-15
+ 08:24:33 UTC\",\"updated_at\":\"2021-11-15 08:24:33 UTC\",\"id\":10,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -399,7 +393,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=94
Strict-Transport-Security:
@@ -417,7 +411,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '355'
+ - '360'
status:
code: 200
message: OK
@@ -433,14 +427,13 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296
+ uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-07-15 11:29:52 UTC\",\"updated_at\":\"2020-07-15 11:29:52 UTC\",\"\
- name\":\"x86_64\",\"id\":1}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:34 UTC\",\"updated_at\":\"2021-11-15 08:24:34 UTC\",\"id\":11,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -459,7 +452,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=93
Strict-Transport-Security:
@@ -477,7 +470,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '274'
+ - '355'
status:
code: 200
message: OK
@@ -493,16 +486,13 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296
+ uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\
- :null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\"\
- :\"reverse whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-09-03\
- \ 07:50:25 UTC\",\"updated_at\":\"2020-09-03 07:50:25 UTC\",\"id\":2,\"name\"\
- :\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:14:58 UTC\",\"updated_at\":\"2021-11-15 08:14:58 UTC\",\"name\":\"x86_64\",\"id\":1}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -521,7 +511,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=92
Strict-Transport-Security:
@@ -539,7 +529,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '416'
+ - '274'
status:
code: 200
message: OK
@@ -555,15 +545,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296
+ uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 12,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\":\
- \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\"\
- :\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\"\
- :\"2020-09-03 07:50:26 UTC\",\"updated_at\":\"2020-09-03 07:50:26 UTC\",\"\
- id\":12,\"name\":\"TestOS Mirror\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\":\"reverse
+ whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2021-11-15 08:27:25 UTC\",\"updated_at\":\"2021-11-15
+ 08:27:25 UTC\",\"id\":2,\"name\":\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -582,7 +571,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=91
Strict-Transport-Security:
@@ -600,7 +589,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '354'
+ - '416'
status:
code: 200
message: OK
@@ -616,15 +605,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296
+ uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 19,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\
- :null,\"os_family\":\"Redhat\",\"created_at\":\"2020-09-03 07:50:24 UTC\"\
- ,\"updated_at\":\"2020-09-03 07:50:24 UTC\",\"name\":\"Part table\",\"id\"\
- :127}]\n}\n"
+ string: "{\n \"total\": 13,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\":\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\":\"2021-11-15
+ 08:27:25 UTC\",\"updated_at\":\"2021-11-15 08:27:25 UTC\",\"id\":13,\"name\":\"TestOS
+ Mirror\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -643,7 +631,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=90
Strict-Transport-Security:
@@ -661,7 +649,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '325'
+ - '354'
status:
code: 200
message: OK
@@ -677,34 +665,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296
+ uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\
- :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\
- :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\
- :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\
- :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\
- ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\
- :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\
- :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\
- architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\
- realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\
- :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\
- :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\
- :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\
- :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
- :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\
- :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 20,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"os_family\":\"Redhat\",\"created_at\":\"2021-11-15
+ 08:27:24 UTC\",\"updated_at\":\"2021-11-15 08:27:24 UTC\",\"name\":\"Part
+ table\",\"id\":133}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -723,7 +691,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=89
Strict-Transport-Security:
@@ -741,14 +709,14 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1816'
+ - '325'
status:
code: 200
message: OK
- request:
- body: '{"hostgroup": {"name": "Nested New host group 2", "parent_id": 2, "operatingsystem_id":
- 2, "architecture_id": 1, "pxe_loader": "PXELinux BIOS", "medium_id": 12, "ptable_id":
- 127, "location_ids": [46, 47, 48], "organization_ids": [51, 52]}}'
+ body: '{"hostgroup": {"name": "Nested New host group 2", "parent_id": 8, "operatingsystem_id":
+ 2, "architecture_id": 1, "pxe_loader": "PXELinux BIOS", "medium_id": 13, "ptable_id":
+ 133, "location_ids": [9, 10, 11], "organization_ids": [12, 13]}}'
headers:
Accept:
- application/json;version=2
@@ -757,7 +725,7 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '239'
+ - '238'
Content-Type:
- application/json
User-Agent:
@@ -767,12 +735,12 @@ interactions:
response:
body:
string: '{"subnet_id":null,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
- 7.6","domain_id":null,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"2","parent_id":2,"parent_name":"New
- host group","ptable_id":127,"ptable_name":"Part table","medium_id":12,"medium_name":"TestOS
- Mirror","pxe_loader":"PXELinux BIOS","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:57:04 UTC","updated_at":"2020-09-03 07:57:04 UTC","id":6,"name":"Nested
- New host group 2","title":"New host group/Nested New host group 2","description":null,"puppet_proxy_id":null,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":null,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":17,"inherited_puppet_proxy_id":1,"inherited_puppet_ca_proxy_id":1,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":35,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null},{"id":48,"name":"Bar","title":"Bar","description":null}],"organizations":[{"id":51,"name":"Test
- Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test
+ 7.6","domain_id":null,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"8","parent_id":8,"parent_name":"New
+ host group","ptable_id":133,"ptable_name":"Part table","medium_id":13,"medium_name":"TestOS
+ Mirror","pxe_loader":"PXELinux BIOS","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2021-11-15
+ 08:33:57 UTC","updated_at":"2021-11-15 08:33:57 UTC","id":12,"name":"Nested
+ New host group 2","title":"New host group/Nested New host group 2","description":null,"puppet_proxy_id":null,"puppet_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_ca_proxy_id":null,"puppet_ca_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":2,"inherited_puppet_proxy_id":1,"inherited_puppet_ca_proxy_id":1,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":1,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[{"id":9,"name":"Foo","title":"Foo","description":null},{"id":10,"name":"Baz","title":"Foo/Baz","description":null},{"id":11,"name":"Bar","title":"Bar","description":null}],"organizations":[{"id":12,"name":"Test
+ Org1","title":"Test Org1","description":"A test organization"},{"id":13,"name":"Test
Org2","title":"Test Org2","description":"A test organization"}]}'
headers:
Cache-Control:
@@ -792,7 +760,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=88
Strict-Transport-Security:
diff --git a/tests/test_playbooks/fixtures/hostgroup-13.yml b/tests/test_playbooks/fixtures/hostgroup-13.yml
index 4ad84b21..cf7dd62f 100644
--- a/tests/test_playbooks/fixtures/hostgroup-13.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-13.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,32 +70,15 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group+2%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\
- \ 2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\
- \ \"results\": [{\"subnet_id\":null,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\
- :2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":null,\"domain_name\"\
- :\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\"\
- ,\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\"\
- :\"2\",\"parent_id\":2,\"parent_name\":\"New host group\",\"ptable_id\":127,\"\
- ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\"\
- ,\"pxe_loader\":\"PXELinux BIOS\",\"subnet6_id\":null,\"subnet6_name\":null,\"\
- compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\"\
- :1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"\
- created_at\":\"2020-09-03 07:57:04 UTC\",\"updated_at\":\"2020-09-03 07:57:04\
- \ UTC\",\"id\":6,\"name\":\"Nested New host group 2\",\"title\":\"New host\
- \ group/Nested New host group 2\",\"description\":null,\"puppet_proxy_id\"\
- :null,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :null,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"\
- puppet_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"puppet_ca_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\"\
- :17,\"inherited_puppet_proxy_id\":1,\"inherited_puppet_ca_proxy_id\":1,\"\
- inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\":null,\"\
- inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":35,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group
+ 2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"subnet_id\":null,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS
+ 7.6\",\"domain_id\":null,\"domain_name\":\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\":\"8\",\"parent_id\":8,\"parent_name\":\"New
+ host group\",\"ptable_id\":133,\"ptable_name\":\"Part table\",\"medium_id\":13,\"medium_name\":\"TestOS
+ Mirror\",\"pxe_loader\":\"PXELinux BIOS\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:57 UTC\",\"updated_at\":\"2021-11-15 08:33:57 UTC\",\"id\":12,\"name\":\"Nested
+ New host group 2\",\"title\":\"New host group/Nested New host group 2\",\"description\":null,\"puppet_proxy_id\":null,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":null,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\":2,\"inherited_puppet_proxy_id\":1,\"inherited_puppet_ca_proxy_id\":1,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":1,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -114,7 +97,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -132,7 +115,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1872'
+ - '1871'
status:
code: 200
message: OK
@@ -148,16 +131,16 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/hostgroups/6
+ uri: https://foreman.example.org/api/hostgroups/12
response:
body:
string: '{"subnet_id":null,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
- 7.6","domain_id":null,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"2","parent_id":2,"parent_name":"New
- host group","ptable_id":127,"ptable_name":"Part table","medium_id":12,"medium_name":"TestOS
- Mirror","pxe_loader":"PXELinux BIOS","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:57:04 UTC","updated_at":"2020-09-03 07:57:04 UTC","id":6,"name":"Nested
- New host group 2","title":"New host group/Nested New host group 2","description":null,"puppet_proxy_id":null,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":null,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":17,"inherited_puppet_proxy_id":1,"inherited_puppet_ca_proxy_id":1,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":35,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test
- Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test
+ 7.6","domain_id":null,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"8","parent_id":8,"parent_name":"New
+ host group","ptable_id":133,"ptable_name":"Part table","medium_id":13,"medium_name":"TestOS
+ Mirror","pxe_loader":"PXELinux BIOS","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2021-11-15
+ 08:33:57 UTC","updated_at":"2021-11-15 08:33:57 UTC","id":12,"name":"Nested
+ New host group 2","title":"New host group/Nested New host group 2","description":null,"puppet_proxy_id":null,"puppet_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_ca_proxy_id":null,"puppet_ca_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":2,"inherited_puppet_proxy_id":1,"inherited_puppet_ca_proxy_id":1,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":1,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[{"id":11,"name":"Bar","title":"Bar","description":null},{"id":9,"name":"Foo","title":"Foo","description":null},{"id":10,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":12,"name":"Test
+ Org1","title":"Test Org1","description":"A test organization"},{"id":13,"name":"Test
Org2","title":"Test Org2","description":"A test organization"}]}'
headers:
Cache-Control:
@@ -177,7 +160,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -195,7 +178,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '2145'
+ - '2143'
status:
code: 200
message: OK
@@ -211,16 +194,17 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296
+ uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\
- \ 07:56:40 UTC\",\"updated_at\":\"2020-09-03 07:56:40 UTC\",\"id\":51,\"name\"\
- :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\
- }]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":1,\"subnet_name\":\"Test
+ subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":133,\"ptable_name\":\"Part
+ table\",\"medium_id\":13,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2
+ UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:48 UTC\",\"updated_at\":\"2021-11-15 08:33:48 UTC\",\"id\":8,\"name\":\"New
+ host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -239,7 +223,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=97
Strict-Transport-Security:
@@ -257,7 +241,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '389'
+ - '1814'
status:
code: 200
message: OK
@@ -273,16 +257,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296
+ uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\
- \ 07:56:41 UTC\",\"updated_at\":\"2020-09-03 07:56:41 UTC\",\"id\":52,\"name\"\
- :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\
- }]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:35 UTC\",\"updated_at\":\"2021-11-15 08:24:35 UTC\",\"id\":12,\"name\":\"Test
+ Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -301,7 +283,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=96
Strict-Transport-Security:
@@ -335,15 +317,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296
+ uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\
- by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\
- parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:16\
- \ UTC\",\"updated_at\":\"2020-09-03 07:50:16 UTC\",\"id\":46,\"name\":\"Foo\"\
- ,\"title\":\"Foo\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:35 UTC\",\"updated_at\":\"2021-11-15 08:24:35 UTC\",\"id\":13,\"name\":\"Test
+ Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -362,7 +343,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=95
Strict-Transport-Security:
@@ -380,7 +361,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '355'
+ - '389'
status:
code: 200
message: OK
@@ -396,15 +377,13 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296
+ uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :\"46\",\"parent_id\":46,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\
- \ 07:50:17 UTC\",\"updated_at\":\"2020-09-03 07:50:17 UTC\",\"id\":47,\"name\"\
- :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:32 UTC\",\"updated_at\":\"2021-11-15 08:24:32 UTC\",\"id\":9,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -423,7 +402,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=94
Strict-Transport-Security:
@@ -441,7 +420,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '362'
+ - '354'
status:
code: 200
message: OK
@@ -457,15 +436,13 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296
+ uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\
- by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\
- parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:18\
- \ UTC\",\"updated_at\":\"2020-09-03 07:50:18 UTC\",\"id\":48,\"name\":\"Bar\"\
- ,\"title\":\"Bar\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"9\",\"parent_id\":9,\"parent_name\":\"Foo\",\"created_at\":\"2021-11-15
+ 08:24:33 UTC\",\"updated_at\":\"2021-11-15 08:24:33 UTC\",\"id\":10,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -484,7 +461,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=93
Strict-Transport-Security:
@@ -502,7 +479,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '355'
+ - '360'
status:
code: 200
message: OK
@@ -518,14 +495,13 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296
+ uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-07-15 11:29:52 UTC\",\"updated_at\":\"2020-07-15 11:29:52 UTC\",\"\
- name\":\"x86_64\",\"id\":1}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:34 UTC\",\"updated_at\":\"2021-11-15 08:24:34 UTC\",\"id\":11,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -544,7 +520,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=92
Strict-Transport-Security:
@@ -562,7 +538,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '274'
+ - '355'
status:
code: 200
message: OK
@@ -578,16 +554,13 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296
+ uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\
- :null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\"\
- :\"reverse whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-09-03\
- \ 07:50:25 UTC\",\"updated_at\":\"2020-09-03 07:50:25 UTC\",\"id\":2,\"name\"\
- :\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:14:58 UTC\",\"updated_at\":\"2021-11-15 08:14:58 UTC\",\"name\":\"x86_64\",\"id\":1}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -606,7 +579,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=91
Strict-Transport-Security:
@@ -624,7 +597,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '416'
+ - '274'
status:
code: 200
message: OK
@@ -640,15 +613,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296
+ uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 12,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\":\
- \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\"\
- :\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\"\
- :\"2020-09-03 07:50:26 UTC\",\"updated_at\":\"2020-09-03 07:50:26 UTC\",\"\
- id\":12,\"name\":\"TestOS Mirror\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\":\"reverse
+ whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2021-11-15 08:27:25 UTC\",\"updated_at\":\"2021-11-15
+ 08:27:25 UTC\",\"id\":2,\"name\":\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -667,7 +639,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=90
Strict-Transport-Security:
@@ -685,7 +657,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '354'
+ - '416'
status:
code: 200
message: OK
@@ -701,15 +673,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296
+ uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 19,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\
- :null,\"os_family\":\"Redhat\",\"created_at\":\"2020-09-03 07:50:24 UTC\"\
- ,\"updated_at\":\"2020-09-03 07:50:24 UTC\",\"name\":\"Part table\",\"id\"\
- :127}]\n}\n"
+ string: "{\n \"total\": 13,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\":\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\":\"2021-11-15
+ 08:27:25 UTC\",\"updated_at\":\"2021-11-15 08:27:25 UTC\",\"id\":13,\"name\":\"TestOS
+ Mirror\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -728,7 +699,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=89
Strict-Transport-Security:
@@ -746,7 +717,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '325'
+ - '354'
status:
code: 200
message: OK
@@ -762,34 +733,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296
+ uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\
- :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\
- :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\
- :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\
- :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\
- ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\
- :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\
- :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\
- architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\
- realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\
- :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\
- :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\
- :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\
- :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
- :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\
- :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 20,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"os_family\":\"Redhat\",\"created_at\":\"2021-11-15
+ 08:27:24 UTC\",\"updated_at\":\"2021-11-15 08:27:24 UTC\",\"name\":\"Part
+ table\",\"id\":133}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -808,7 +759,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=88
Strict-Transport-Security:
@@ -826,7 +777,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1816'
+ - '325'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/hostgroup-14.yml b/tests/test_playbooks/fixtures/hostgroup-14.yml
index fdcd7b23..81562a46 100644
--- a/tests/test_playbooks/fixtures/hostgroup-14.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-14.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,31 +70,14 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\
- :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\
- :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\
- :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\
- :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\
- ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\
- :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\
- :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\
- architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\
- realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\
- :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\
- :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\
- :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\
- :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
- :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\
- :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":1,\"subnet_name\":\"Test
+ subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":133,\"ptable_name\":\"Part
+ table\",\"medium_id\":13,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2
+ UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:48 UTC\",\"updated_at\":\"2021-11-15 08:33:48 UTC\",\"id\":8,\"name\":\"New
+ host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -113,7 +96,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -131,7 +114,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1816'
+ - '1814'
status:
code: 200
message: OK
@@ -147,19 +130,19 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/hostgroups/2
+ uri: https://foreman.example.org/api/hostgroups/8
response:
body:
- string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
- 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part
- table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":2,"name":"New host
- group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03
- 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":53,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2020-09-03
- 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":54,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test
- Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test
+ string: '{"subnet_id":1,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
+ 7.6","domain_id":2,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":133,"ptable_name":"Part
+ table","medium_id":13,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2021-11-15
+ 08:33:48 UTC","updated_at":"2021-11-15 08:33:48 UTC","id":8,"name":"New host
+ group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2021-11-15
+ 08:33:48 UTC","updated_at":"2021-11-15 08:33:48 UTC","id":15,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2021-11-15
+ 08:33:48 UTC","updated_at":"2021-11-15 08:33:48 UTC","id":16,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2021-11-15
+ 08:31:39 UTC","updated_at":"2021-11-15 08:31:39 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2021-11-15
+ 08:31:40 UTC","updated_at":"2021-11-15 08:31:40 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":11,"name":"Bar","title":"Bar","description":null},{"id":9,"name":"Foo","title":"Foo","description":null},{"id":10,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":12,"name":"Test
+ Org1","title":"Test Org1","description":"A test organization"},{"id":13,"name":"Test
Org2","title":"Test Org2","description":"A test organization"}]}'
headers:
Cache-Control:
@@ -179,7 +162,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -197,7 +180,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '2699'
+ - '2696'
status:
code: 200
message: OK
@@ -219,19 +202,19 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: PUT
- uri: https://foreman.example.org/api/hostgroups/2
+ uri: https://foreman.example.org/api/hostgroups/8
response:
body:
- string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
- 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part
- table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":2,"name":"New host
- group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03
- 07:54:33 UTC","updated_at":"2020-09-03 07:57:06 UTC","id":53,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":60,"created_at":"2020-09-03
- 07:57:06 UTC","updated_at":"2020-09-03 07:57:06 UTC","id":57,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test
- Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test
+ string: '{"subnet_id":1,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
+ 7.6","domain_id":2,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":133,"ptable_name":"Part
+ table","medium_id":13,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2021-11-15
+ 08:33:48 UTC","updated_at":"2021-11-15 08:33:48 UTC","id":8,"name":"New host
+ group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2021-11-15
+ 08:33:48 UTC","updated_at":"2021-11-15 08:33:59 UTC","id":15,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":60,"created_at":"2021-11-15
+ 08:33:59 UTC","updated_at":"2021-11-15 08:33:59 UTC","id":19,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2021-11-15
+ 08:31:39 UTC","updated_at":"2021-11-15 08:31:39 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2021-11-15
+ 08:31:40 UTC","updated_at":"2021-11-15 08:31:40 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":11,"name":"Bar","title":"Bar","description":null},{"id":9,"name":"Foo","title":"Foo","description":null},{"id":10,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":12,"name":"Test
+ Org1","title":"Test Org1","description":"A test organization"},{"id":13,"name":"Test
Org2","title":"Test Org2","description":"A test organization"}]}'
headers:
Cache-Control:
@@ -251,7 +234,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=97
Strict-Transport-Security:
@@ -269,7 +252,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '2703'
+ - '2700'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/hostgroup-15.yml b/tests/test_playbooks/fixtures/hostgroup-15.yml
index 6635cc86..5aae014a 100644
--- a/tests/test_playbooks/fixtures/hostgroup-15.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-15.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,31 +70,14 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\
- :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\
- :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\
- :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\
- :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\
- ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\
- :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\
- :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\
- architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\
- realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\
- :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\
- :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\
- :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\
- :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
- :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\
- :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":1,\"subnet_name\":\"Test
+ subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":133,\"ptable_name\":\"Part
+ table\",\"medium_id\":13,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2
+ UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:48 UTC\",\"updated_at\":\"2021-11-15 08:33:48 UTC\",\"id\":8,\"name\":\"New
+ host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -113,7 +96,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -131,7 +114,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1816'
+ - '1814'
status:
code: 200
message: OK
@@ -147,19 +130,19 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/hostgroups/2
+ uri: https://foreman.example.org/api/hostgroups/8
response:
body:
- string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
- 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part
- table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":2,"name":"New host
- group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03
- 07:54:33 UTC","updated_at":"2020-09-03 07:57:06 UTC","id":53,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":60,"created_at":"2020-09-03
- 07:57:06 UTC","updated_at":"2020-09-03 07:57:06 UTC","id":57,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test
- Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test
+ string: '{"subnet_id":1,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
+ 7.6","domain_id":2,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":133,"ptable_name":"Part
+ table","medium_id":13,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2021-11-15
+ 08:33:48 UTC","updated_at":"2021-11-15 08:33:48 UTC","id":8,"name":"New host
+ group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2021-11-15
+ 08:33:48 UTC","updated_at":"2021-11-15 08:33:59 UTC","id":15,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":60,"created_at":"2021-11-15
+ 08:33:59 UTC","updated_at":"2021-11-15 08:33:59 UTC","id":19,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2021-11-15
+ 08:31:39 UTC","updated_at":"2021-11-15 08:31:39 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2021-11-15
+ 08:31:40 UTC","updated_at":"2021-11-15 08:31:40 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":11,"name":"Bar","title":"Bar","description":null},{"id":9,"name":"Foo","title":"Foo","description":null},{"id":10,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":12,"name":"Test
+ Org1","title":"Test Org1","description":"A test organization"},{"id":13,"name":"Test
Org2","title":"Test Org2","description":"A test organization"}]}'
headers:
Cache-Control:
@@ -179,7 +162,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -197,7 +180,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '2703'
+ - '2700'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/hostgroup-16.yml b/tests/test_playbooks/fixtures/hostgroup-16.yml
index a0e804a2..8b984a15 100644
--- a/tests/test_playbooks/fixtures/hostgroup-16.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-16.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,10 +70,9 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22Super+New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Super New host group\\\"\",\n \"\
- sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n\
- }\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Super New host group\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -92,7 +91,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -133,8 +132,8 @@ interactions:
uri: https://foreman.example.org/api/hostgroups
response:
body:
- string: '{"subnet_id":null,"subnet_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"domain_id":null,"domain_name":null,"environment_id":null,"environment_name":null,"compute_profile_id":null,"compute_profile_name":null,"ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"pxe_loader":null,"subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":null,"architecture_id":null,"architecture_name":null,"realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:57:07 UTC","updated_at":"2020-09-03 07:57:07 UTC","id":7,"name":"Super
+ string: '{"subnet_id":null,"subnet_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"domain_id":null,"domain_name":null,"environment_id":null,"environment_name":null,"compute_profile_id":null,"compute_profile_name":null,"ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"pxe_loader":null,"subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":null,"architecture_id":null,"architecture_name":null,"realm_id":null,"realm_name":null,"created_at":"2021-11-15
+ 08:34:00 UTC","updated_at":"2021-11-15 08:34:00 UTC","id":13,"name":"Super
New host group","title":"Super New host group","description":null,"puppet_proxy_id":null,"puppet_proxy_name":null,"puppet_ca_proxy_id":null,"puppet_ca_proxy_name":null,"puppet_proxy":null,"puppet_ca_proxy":null,"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[],"organizations":[]}'
headers:
Cache-Control:
@@ -154,7 +153,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
diff --git a/tests/test_playbooks/fixtures/hostgroup-17.yml b/tests/test_playbooks/fixtures/hostgroup-17.yml
index 8f7dd3b9..9106f313 100644
--- a/tests/test_playbooks/fixtures/hostgroup-17.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-17.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,27 +70,11 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22Super+New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 6,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Super New host group\\\"\",\n \"\
- sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"\
- subnet_id\":null,\"subnet_name\":null,\"operatingsystem_id\":null,\"operatingsystem_name\"\
- :null,\"domain_id\":null,\"domain_name\":null,\"environment_id\":null,\"environment_name\"\
- :null,\"compute_profile_id\":null,\"compute_profile_name\":null,\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":null,\"ptable_name\"\
- :null,\"medium_id\":null,\"medium_name\":null,\"pxe_loader\":null,\"subnet6_id\"\
- :null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\"\
- :null,\"architecture_id\":null,\"architecture_name\":null,\"realm_id\":null,\"\
- realm_name\":null,\"created_at\":\"2020-09-03 07:57:07 UTC\",\"updated_at\"\
- :\"2020-09-03 07:57:07 UTC\",\"id\":7,\"name\":\"Super New host group\",\"\
- title\":\"Super New host group\",\"description\":null,\"puppet_proxy_id\"\
- :null,\"puppet_proxy_name\":null,\"puppet_ca_proxy_id\":null,\"puppet_ca_proxy_name\"\
- :null,\"puppet_proxy\":null,\"puppet_ca_proxy\":null,\"inherited_compute_profile_id\"\
- :null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\"\
- :null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\"\
- :null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\"\
- :null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\"\
- :null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\"\
- :null}]\n}\n"
+ string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Super New host group\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":null,\"subnet_name\":null,\"operatingsystem_id\":null,\"operatingsystem_name\":null,\"domain_id\":null,\"domain_name\":null,\"environment_id\":null,\"environment_name\":null,\"compute_profile_id\":null,\"compute_profile_name\":null,\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":null,\"ptable_name\":null,\"medium_id\":null,\"medium_name\":null,\"pxe_loader\":null,\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":null,\"architecture_id\":null,\"architecture_name\":null,\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:34:00 UTC\",\"updated_at\":\"2021-11-15 08:34:00 UTC\",\"id\":13,\"name\":\"Super
+ New host group\",\"title\":\"Super New host group\",\"description\":null,\"puppet_proxy_id\":null,\"puppet_proxy_name\":null,\"puppet_ca_proxy_id\":null,\"puppet_ca_proxy_name\":null,\"puppet_proxy\":null,\"puppet_ca_proxy\":null,\"inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -109,7 +93,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -127,7 +111,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1475'
+ - '1476'
status:
code: 200
message: OK
@@ -143,11 +127,11 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/hostgroups/7
+ uri: https://foreman.example.org/api/hostgroups/13
response:
body:
- string: '{"subnet_id":null,"subnet_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"domain_id":null,"domain_name":null,"environment_id":null,"environment_name":null,"compute_profile_id":null,"compute_profile_name":null,"ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"pxe_loader":null,"subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":null,"architecture_id":null,"architecture_name":null,"realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:57:07 UTC","updated_at":"2020-09-03 07:57:07 UTC","id":7,"name":"Super
+ string: '{"subnet_id":null,"subnet_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"domain_id":null,"domain_name":null,"environment_id":null,"environment_name":null,"compute_profile_id":null,"compute_profile_name":null,"ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"pxe_loader":null,"subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":null,"architecture_id":null,"architecture_name":null,"realm_id":null,"realm_name":null,"created_at":"2021-11-15
+ 08:34:00 UTC","updated_at":"2021-11-15 08:34:00 UTC","id":13,"name":"Super
New host group","title":"Super New host group","description":null,"puppet_proxy_id":null,"puppet_proxy_name":null,"puppet_ca_proxy_id":null,"puppet_ca_proxy_name":null,"puppet_proxy":null,"puppet_ca_proxy":null,"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[],"organizations":[]}'
headers:
Cache-Control:
@@ -167,7 +151,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -185,7 +169,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1426'
+ - '1427'
status:
code: 200
message: OK
@@ -205,11 +189,11 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: PUT
- uri: https://foreman.example.org/api/hostgroups/7
+ uri: https://foreman.example.org/api/hostgroups/13
response:
body:
- string: '{"subnet_id":null,"subnet_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"domain_id":null,"domain_name":null,"environment_id":null,"environment_name":null,"compute_profile_id":null,"compute_profile_name":null,"ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"pxe_loader":null,"subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":null,"architecture_id":null,"architecture_name":null,"realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:57:07 UTC","updated_at":"2020-09-03 07:57:08 UTC","id":7,"name":"Super
+ string: '{"subnet_id":null,"subnet_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"domain_id":null,"domain_name":null,"environment_id":null,"environment_name":null,"compute_profile_id":null,"compute_profile_name":null,"ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"pxe_loader":null,"subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":null,"architecture_id":null,"architecture_name":null,"realm_id":null,"realm_name":null,"created_at":"2021-11-15
+ 08:34:00 UTC","updated_at":"2021-11-15 08:34:00 UTC","id":13,"name":"Super
New host group 2","title":"Super New host group 2","description":null,"puppet_proxy_id":null,"puppet_proxy_name":null,"puppet_ca_proxy_id":null,"puppet_ca_proxy_name":null,"puppet_proxy":null,"puppet_ca_proxy":null,"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[],"organizations":[]}'
headers:
Cache-Control:
@@ -229,7 +213,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=97
Strict-Transport-Security:
@@ -247,7 +231,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1430'
+ - '1431'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/hostgroup-18.yml b/tests/test_playbooks/fixtures/hostgroup-18.yml
index 9b218dfd..f9fab02d 100644
--- a/tests/test_playbooks/fixtures/hostgroup-18.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-18.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,27 +70,11 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22Super+New+host+group+2%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 6,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Super New host group 2\\\"\",\n \
- \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"subnet_id\":null,\"subnet_name\":null,\"operatingsystem_id\":null,\"\
- operatingsystem_name\":null,\"domain_id\":null,\"domain_name\":null,\"environment_id\"\
- :null,\"environment_name\":null,\"compute_profile_id\":null,\"compute_profile_name\"\
- :null,\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\"\
- :null,\"ptable_name\":null,\"medium_id\":null,\"medium_name\":null,\"pxe_loader\"\
- :null,\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"\
- compute_resource_name\":null,\"architecture_id\":null,\"architecture_name\"\
- :null,\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-09-03 07:57:07\
- \ UTC\",\"updated_at\":\"2020-09-03 07:57:08 UTC\",\"id\":7,\"name\":\"Super\
- \ New host group 2\",\"title\":\"Super New host group 2\",\"description\"\
- :null,\"puppet_proxy_id\":null,\"puppet_proxy_name\":null,\"puppet_ca_proxy_id\"\
- :null,\"puppet_ca_proxy_name\":null,\"puppet_proxy\":null,\"puppet_ca_proxy\"\
- :null,\"inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"\
- inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
- :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\
- :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Super New host group 2\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":null,\"subnet_name\":null,\"operatingsystem_id\":null,\"operatingsystem_name\":null,\"domain_id\":null,\"domain_name\":null,\"environment_id\":null,\"environment_name\":null,\"compute_profile_id\":null,\"compute_profile_name\":null,\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":null,\"ptable_name\":null,\"medium_id\":null,\"medium_name\":null,\"pxe_loader\":null,\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":null,\"architecture_id\":null,\"architecture_name\":null,\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:34:00 UTC\",\"updated_at\":\"2021-11-15 08:34:00 UTC\",\"id\":13,\"name\":\"Super
+ New host group 2\",\"title\":\"Super New host group 2\",\"description\":null,\"puppet_proxy_id\":null,\"puppet_proxy_name\":null,\"puppet_ca_proxy_id\":null,\"puppet_ca_proxy_name\":null,\"puppet_proxy\":null,\"puppet_ca_proxy\":null,\"inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -109,7 +93,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -127,7 +111,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1481'
+ - '1482'
status:
code: 200
message: OK
@@ -145,10 +129,10 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: DELETE
- uri: https://foreman.example.org/api/hostgroups/7
+ uri: https://foreman.example.org/api/hostgroups/13
response:
body:
- string: '{"id":7,"name":"Super New host group 2","created_at":"2020-09-03T07:57:07.695Z","updated_at":"2020-09-03T07:57:08.415Z","environment_id":null,"operatingsystem_id":null,"architecture_id":null,"medium_id":null,"ptable_id":null,"root_pass":null,"puppet_ca_proxy_id":null,"use_image":null,"image_file":"","ancestry":null,"vm_defaults":null,"subnet_id":null,"domain_id":null,"puppet_proxy_id":null,"title":"Super
+ string: '{"id":13,"name":"Super New host group 2","created_at":"2021-11-15T08:34:00.036Z","updated_at":"2021-11-15T08:34:00.520Z","environment_id":null,"operatingsystem_id":null,"architecture_id":null,"medium_id":null,"ptable_id":null,"root_pass":null,"puppet_ca_proxy_id":null,"use_image":null,"image_file":"","ancestry":null,"vm_defaults":null,"subnet_id":null,"domain_id":null,"puppet_proxy_id":null,"title":"Super
New host group 2","realm_id":null,"compute_profile_id":null,"grub_pass":"","lookup_value_matcher":"hostgroup=Super
New host group 2","subnet6_id":null,"pxe_loader":null,"description":null,"compute_resource_id":null}'
headers:
@@ -169,7 +153,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -187,7 +171,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '623'
+ - '624'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/hostgroup-19.yml b/tests/test_playbooks/fixtures/hostgroup-19.yml
index e5f06a11..b8bb0c68 100644
--- a/tests/test_playbooks/fixtures/hostgroup-19.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-19.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,10 +70,10 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group+1%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\
- \ 1\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\
- \ \"results\": []\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group
+ 1\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ []\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -92,7 +92,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -129,31 +129,14 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\
- :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\
- :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\
- :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\
- :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\
- ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\
- :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\
- :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\
- architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\
- realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\
- :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\
- :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\
- :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\
- :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
- :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\
- :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":1,\"subnet_name\":\"Test
+ subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":133,\"ptable_name\":\"Part
+ table\",\"medium_id\":13,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2
+ UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:48 UTC\",\"updated_at\":\"2021-11-15 08:33:48 UTC\",\"id\":8,\"name\":\"New
+ host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -172,7 +155,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -190,12 +173,12 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1816'
+ - '1814'
status:
code: 200
message: OK
- request:
- body: '{"hostgroup": {"name": "Nested New host group 1", "parent_id": 2}}'
+ body: '{"hostgroup": {"name": "Nested New host group 1", "parent_id": 8}}'
headers:
Accept:
- application/json;version=2
@@ -214,11 +197,11 @@ interactions:
response:
body:
string: '{"subnet_id":null,"subnet_name":"Test subnet4","operatingsystem_id":null,"operatingsystem_name":"TestOS
- 7.6","domain_id":null,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"2","parent_id":2,"parent_name":"New
+ 7.6","domain_id":null,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"8","parent_id":8,"parent_name":"New
host group","ptable_id":null,"ptable_name":"Part table","medium_id":null,"medium_name":"TestOS
- Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":null,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:57:09 UTC","updated_at":"2020-09-03 07:57:09 UTC","id":8,"name":"Nested
- New host group 1","title":"New host group/Nested New host group 1","description":null,"puppet_proxy_id":null,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":null,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":17,"inherited_puppet_proxy_id":1,"inherited_puppet_ca_proxy_id":1,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":2,"inherited_architecture_id":1,"inherited_medium_id":12,"inherited_ptable_id":127,"inherited_subnet_id":35,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":"Grub2
+ Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":null,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2021-11-15
+ 08:34:01 UTC","updated_at":"2021-11-15 08:34:01 UTC","id":14,"name":"Nested
+ New host group 1","title":"New host group/Nested New host group 1","description":null,"puppet_proxy_id":null,"puppet_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_ca_proxy_id":null,"puppet_ca_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":2,"inherited_puppet_proxy_id":1,"inherited_puppet_ca_proxy_id":1,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":2,"inherited_architecture_id":1,"inherited_medium_id":13,"inherited_ptable_id":133,"inherited_subnet_id":1,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":"Grub2
UEFI","parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[],"organizations":[]}'
headers:
Cache-Control:
@@ -238,7 +221,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=97
Strict-Transport-Security:
diff --git a/tests/test_playbooks/fixtures/hostgroup-2.yml b/tests/test_playbooks/fixtures/hostgroup-2.yml
index 89d595e3..75dd3b05 100644
--- a/tests/test_playbooks/fixtures/hostgroup-2.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-2.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,32 +70,16 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group+with+puppet+classes%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group with puppet classes\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"subnet_id\":35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\
- :2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":17,\"domain_name\"\
- :\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\"\
- ,\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":127,\"ptable_name\"\
- :\"Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\"\
- :\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\"\
- :1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\"\
- :\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-09-03\
- \ 07:54:34 UTC\",\"updated_at\":\"2020-09-03 07:54:34 UTC\",\"id\":3,\"name\"\
- :\"New host group with puppet classes\",\"title\":\"New host group with puppet\
- \ classes\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\"\
- :\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\"\
- :\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"inherited_compute_profile_id\"\
- :null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\"\
- :null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\"\
- :null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\"\
- :null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\"\
- :null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\"\
- :null}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group with puppet classes\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"subnet_id\":1,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS
+ 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":133,\"ptable_name\":\"Part
+ table\",\"medium_id\":13,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2
+ UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:49 UTC\",\"updated_at\":\"2021-11-15 08:33:49 UTC\",\"id\":9,\"name\":\"New
+ host group with puppet classes\",\"title\":\"New host group with puppet classes\",\"description\":\"New
+ host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -114,7 +98,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -132,7 +116,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1876'
+ - '1874'
status:
code: 200
message: OK
@@ -148,20 +132,20 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/hostgroups/3
+ uri: https://foreman.example.org/api/hostgroups/9
response:
body:
- string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
- 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part
- table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:54:34 UTC","updated_at":"2020-09-03 07:54:34 UTC","id":3,"name":"New host
+ string: '{"subnet_id":1,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
+ 7.6","domain_id":2,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":133,"ptable_name":"Part
+ table","medium_id":13,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2021-11-15
+ 08:33:49 UTC","updated_at":"2021-11-15 08:33:49 UTC","id":9,"name":"New host
group with puppet classes","title":"New host group with puppet classes","description":"New
- host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03
- 07:54:35 UTC","updated_at":"2020-09-03 07:54:35 UTC","id":55,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2020-09-03
- 07:54:35 UTC","updated_at":"2020-09-03 07:54:35 UTC","id":56,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[{"id":33,"name":"prometheus::redis_exporter","module_name":"prometheus"}],"config_groups":[{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[{"id":33,"name":"prometheus::redis_exporter","module_name":"prometheus"}],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test
- Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test
+ host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2021-11-15
+ 08:33:49 UTC","updated_at":"2021-11-15 08:33:49 UTC","id":17,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2021-11-15
+ 08:33:49 UTC","updated_at":"2021-11-15 08:33:49 UTC","id":18,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[{"id":39,"name":"prometheus::redis_exporter","module_name":"prometheus"}],"config_groups":[{"created_at":"2021-11-15
+ 08:31:39 UTC","updated_at":"2021-11-15 08:31:39 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2021-11-15
+ 08:31:40 UTC","updated_at":"2021-11-15 08:31:40 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[{"id":39,"name":"prometheus::redis_exporter","module_name":"prometheus"}],"locations":[{"id":11,"name":"Bar","title":"Bar","description":null},{"id":9,"name":"Foo","title":"Foo","description":null},{"id":10,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":12,"name":"Test
+ Org1","title":"Test Org1","description":"A test organization"},{"id":13,"name":"Test
Org2","title":"Test Org2","description":"A test organization"}]}'
headers:
Cache-Control:
@@ -181,7 +165,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -199,7 +183,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '2883'
+ - '2880'
status:
code: 200
message: OK
@@ -218,13 +202,11 @@ interactions:
uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\
- \ 07:56:40 UTC\",\"updated_at\":\"2020-09-03 07:56:40 UTC\",\"id\":51,\"name\"\
- :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\
- }]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:35 UTC\",\"updated_at\":\"2021-11-15 08:24:35 UTC\",\"id\":12,\"name\":\"Test
+ Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -243,7 +225,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=97
Strict-Transport-Security:
@@ -280,13 +262,11 @@ interactions:
uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\
- \ 07:56:41 UTC\",\"updated_at\":\"2020-09-03 07:56:41 UTC\",\"id\":52,\"name\"\
- :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\
- }]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:35 UTC\",\"updated_at\":\"2021-11-15 08:24:35 UTC\",\"id\":13,\"name\":\"Test
+ Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -305,7 +285,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=96
Strict-Transport-Security:
@@ -342,12 +322,10 @@ interactions:
uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\
- by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\
- parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:16\
- \ UTC\",\"updated_at\":\"2020-09-03 07:50:16 UTC\",\"id\":46,\"name\":\"Foo\"\
- ,\"title\":\"Foo\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:32 UTC\",\"updated_at\":\"2021-11-15 08:24:32 UTC\",\"id\":9,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -366,7 +344,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=95
Strict-Transport-Security:
@@ -384,7 +362,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '355'
+ - '354'
status:
code: 200
message: OK
@@ -403,12 +381,10 @@ interactions:
uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :\"46\",\"parent_id\":46,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\
- \ 07:50:17 UTC\",\"updated_at\":\"2020-09-03 07:50:17 UTC\",\"id\":47,\"name\"\
- :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"9\",\"parent_id\":9,\"parent_name\":\"Foo\",\"created_at\":\"2021-11-15
+ 08:24:33 UTC\",\"updated_at\":\"2021-11-15 08:24:33 UTC\",\"id\":10,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -427,7 +403,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=94
Strict-Transport-Security:
@@ -445,7 +421,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '362'
+ - '360'
status:
code: 200
message: OK
@@ -464,12 +440,10 @@ interactions:
uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\
- by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\
- parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:18\
- \ UTC\",\"updated_at\":\"2020-09-03 07:50:18 UTC\",\"id\":48,\"name\":\"Bar\"\
- ,\"title\":\"Bar\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:34 UTC\",\"updated_at\":\"2021-11-15 08:24:34 UTC\",\"id\":11,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -488,7 +462,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=93
Strict-Transport-Security:
@@ -525,11 +499,10 @@ interactions:
uri: https://foreman.example.org/api/compute_profiles?search=name%3D%22myprofile%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"myprofile\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-09-03 07:54:30 UTC\",\"updated_at\":\"2020-09-03 07:54:30 UTC\",\"\
- id\":4,\"name\":\"myprofile\"}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"myprofile\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:31:39 UTC\",\"updated_at\":\"2021-11-15 08:31:39 UTC\",\"id\":4,\"name\":\"myprofile\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -548,7 +521,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=92
Strict-Transport-Security:
@@ -585,13 +558,10 @@ interactions:
uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\
- :null,\"created_at\":\"2020-09-03 07:50:22 UTC\",\"updated_at\":\"2020-09-03\
- \ 07:50:22 UTC\",\"id\":17,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- }}]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\":null,\"created_at\":\"2021-11-15
+ 08:27:23 UTC\",\"updated_at\":\"2021-11-15 08:27:23 UTC\",\"id\":2,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"}}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -610,7 +580,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=91
Strict-Transport-Security:
@@ -628,7 +598,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '441'
+ - '440'
status:
code: 200
message: OK
@@ -647,19 +617,11 @@ interactions:
uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\
- :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\
- ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\
- :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\
- \ 07:50:23 UTC\",\"updated_at\":\"2020-09-03 07:50:23 UTC\",\"ipam\":\"DHCP\"\
- ,\"boot_mode\":\"DHCP\",\"id\":35,\"name\":\"Test subnet4\",\"description\"\
- :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\
- :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\
- :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\
- template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\
- :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2021-11-15
+ 08:27:24 UTC\",\"updated_at\":\"2021-11-15 08:27:24 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"nic_delay\":null,\"id\":1,\"name\":\"Test
+ subnet4\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"bmc_id\":null,\"bmc_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"externalipam\":null,\"dns\":null,\"template\":null,\"bmc\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -678,7 +640,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=90
Strict-Transport-Security:
@@ -696,7 +658,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '870'
+ - '927'
status:
code: 200
message: OK
@@ -715,11 +677,10 @@ interactions:
uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-07-15 11:29:52 UTC\",\"updated_at\":\"2020-07-15 11:29:52 UTC\",\"\
- name\":\"x86_64\",\"id\":1}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:14:58 UTC\",\"updated_at\":\"2021-11-15 08:14:58 UTC\",\"name\":\"x86_64\",\"id\":1}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -738,7 +699,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=89
Strict-Transport-Security:
@@ -775,13 +736,11 @@ interactions:
uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\
- :null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\"\
- :\"reverse whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-09-03\
- \ 07:50:25 UTC\",\"updated_at\":\"2020-09-03 07:50:25 UTC\",\"id\":2,\"name\"\
- :\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\":\"reverse
+ whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2021-11-15 08:27:25 UTC\",\"updated_at\":\"2021-11-15
+ 08:27:25 UTC\",\"id\":2,\"name\":\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -800,7 +759,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=88
Strict-Transport-Security:
@@ -837,12 +796,11 @@ interactions:
uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 12,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\":\
- \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\"\
- :\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\"\
- :\"2020-09-03 07:50:26 UTC\",\"updated_at\":\"2020-09-03 07:50:26 UTC\",\"\
- id\":12,\"name\":\"TestOS Mirror\"}]\n}\n"
+ string: "{\n \"total\": 13,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\":\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\":\"2021-11-15
+ 08:27:25 UTC\",\"updated_at\":\"2021-11-15 08:27:25 UTC\",\"id\":13,\"name\":\"TestOS
+ Mirror\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -861,7 +819,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=87
Strict-Transport-Security:
@@ -898,12 +856,11 @@ interactions:
uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 19,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\
- :null,\"os_family\":\"Redhat\",\"created_at\":\"2020-09-03 07:50:24 UTC\"\
- ,\"updated_at\":\"2020-09-03 07:50:24 UTC\",\"name\":\"Part table\",\"id\"\
- :127}]\n}\n"
+ string: "{\n \"total\": 20,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"os_family\":\"Redhat\",\"created_at\":\"2021-11-15
+ 08:27:24 UTC\",\"updated_at\":\"2021-11-15 08:27:24 UTC\",\"name\":\"Part
+ table\",\"id\":133}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -922,7 +879,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=86
Strict-Transport-Security:
@@ -959,11 +916,10 @@ interactions:
uri: https://foreman.example.org/api/environments?search=name%3D%22production%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"production\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-07-15 11:32:08 UTC\",\"updated_at\":\"2020-07-15 11:32:08 UTC\",\"\
- name\":\"production\",\"id\":1}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"production\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:16:43 UTC\",\"updated_at\":\"2021-11-15 08:16:43 UTC\",\"name\":\"production\",\"id\":1}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -982,7 +938,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=85
Strict-Transport-Security:
@@ -1019,11 +975,10 @@ interactions:
uri: https://foreman.example.org/api/config_groups?search=name%3D%22cfg_group1%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"cfg_group1\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-09-03 07:54:31 UTC\",\"updated_at\":\"2020-09-03 07:54:31 UTC\",\"\
- id\":1,\"name\":\"cfg_group1\",\"puppetclasses\":[]}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"cfg_group1\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:31:39 UTC\",\"updated_at\":\"2021-11-15 08:31:39 UTC\",\"id\":1,\"name\":\"cfg_group1\",\"puppetclasses\":[]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1042,7 +997,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=84
Strict-Transport-Security:
@@ -1079,11 +1034,10 @@ interactions:
uri: https://foreman.example.org/api/config_groups?search=name%3D%22cfg_group2%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"cfg_group2\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-09-03 07:54:31 UTC\",\"updated_at\":\"2020-09-03 07:54:31 UTC\",\"\
- id\":2,\"name\":\"cfg_group2\",\"puppetclasses\":[]}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"cfg_group2\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:31:40 UTC\",\"updated_at\":\"2021-11-15 08:31:40 UTC\",\"id\":2,\"name\":\"cfg_group2\",\"puppetclasses\":[]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1102,7 +1056,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=83
Strict-Transport-Security:
@@ -1136,20 +1090,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296
+ uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-5.tanso.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\
- \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\
- :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\
- name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\
- id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\
- :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\
- ,\"id\":3}]}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-5.tanso.example.com\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"created_at\":\"2021-11-15 08:16:36 UTC\",\"updated_at\":\"2021-11-15 08:16:36
+ UTC\",\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Puppet
+ CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"Registration\",\"id\":13},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3}]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1168,7 +1117,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=82
Strict-Transport-Security:
@@ -1186,7 +1135,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '666'
+ - '629'
status:
code: 200
message: OK
@@ -1202,20 +1151,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296
+ uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-5.tanso.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\
- \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\
- :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\
- name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\
- id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\
- :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\
- ,\"id\":3}]}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-5.tanso.example.com\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"created_at\":\"2021-11-15 08:16:36 UTC\",\"updated_at\":\"2021-11-15 08:16:36
+ UTC\",\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Puppet
+ CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"Registration\",\"id\":13},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3}]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1234,7 +1178,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=81
Strict-Transport-Security:
@@ -1252,7 +1196,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '666'
+ - '629'
status:
code: 200
message: OK
@@ -1271,12 +1215,10 @@ interactions:
uri: https://foreman.example.org/api/environments/1/puppetclasses?search=name%3D%22prometheus%3A%3Aredis_exporter%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 50,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"prometheus::redis_exporter\\\"\",\n\
- \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : {\"prometheus\":[{\"id\":33,\"name\":\"prometheus::redis_exporter\",\"created_at\"\
- :\"2020-09-03T07:55:19.882Z\",\"updated_at\":\"2020-09-03T07:55:19.882Z\"\
- }]}\n}\n"
+ string: "{\n \"total\": 59,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"prometheus::redis_exporter\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ {\"prometheus\":[{\"id\":39,\"name\":\"prometheus::redis_exporter\",\"created_at\":\"2021-11-15T08:22:48.079Z\",\"updated_at\":\"2021-11-15T08:22:48.079Z\"}]}\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1295,7 +1237,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=80
Strict-Transport-Security:
diff --git a/tests/test_playbooks/fixtures/hostgroup-20.yml b/tests/test_playbooks/fixtures/hostgroup-20.yml
index 6e55542c..0c863629 100644
--- a/tests/test_playbooks/fixtures/hostgroup-20.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-20.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,32 +70,16 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group+1%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 6,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\
- \ 1\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\
- \ \"results\": [{\"subnet_id\":null,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\
- :null,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":null,\"domain_name\"\
- :\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\"\
- ,\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\"\
- :\"2\",\"parent_id\":2,\"parent_name\":\"New host group\",\"ptable_id\":null,\"\
- ptable_name\":\"Part table\",\"medium_id\":null,\"medium_name\":\"TestOS Mirror\"\
- ,\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"\
- compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\"\
- :null,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"\
- created_at\":\"2020-09-03 07:57:09 UTC\",\"updated_at\":\"2020-09-03 07:57:09\
- \ UTC\",\"id\":8,\"name\":\"Nested New host group 1\",\"title\":\"New host\
- \ group/Nested New host group 1\",\"description\":null,\"puppet_proxy_id\"\
- :null,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :null,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"\
- puppet_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"puppet_ca_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\"\
- :17,\"inherited_puppet_proxy_id\":1,\"inherited_puppet_ca_proxy_id\":1,\"\
- inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\":2,\"inherited_architecture_id\"\
- :1,\"inherited_medium_id\":12,\"inherited_ptable_id\":127,\"inherited_subnet_id\"\
- :35,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\"\
- :\"Grub2 UEFI\"}]\n}\n"
+ string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group
+ 1\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"subnet_id\":null,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":null,\"operatingsystem_name\":\"TestOS
+ 7.6\",\"domain_id\":null,\"domain_name\":\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\":\"8\",\"parent_id\":8,\"parent_name\":\"New
+ host group\",\"ptable_id\":null,\"ptable_name\":\"Part table\",\"medium_id\":null,\"medium_name\":\"TestOS
+ Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":null,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:34:01 UTC\",\"updated_at\":\"2021-11-15 08:34:01 UTC\",\"id\":14,\"name\":\"Nested
+ New host group 1\",\"title\":\"New host group/Nested New host group 1\",\"description\":null,\"puppet_proxy_id\":null,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":null,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\":2,\"inherited_puppet_proxy_id\":1,\"inherited_puppet_ca_proxy_id\":1,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\":2,\"inherited_architecture_id\":1,\"inherited_medium_id\":13,\"inherited_ptable_id\":133,\"inherited_subnet_id\":1,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":\"Grub2
+ UEFI\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -114,7 +98,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -132,7 +116,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1877'
+ - '1876'
status:
code: 200
message: OK
@@ -148,15 +132,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/hostgroups/8
+ uri: https://foreman.example.org/api/hostgroups/14
response:
body:
string: '{"subnet_id":null,"subnet_name":"Test subnet4","operatingsystem_id":null,"operatingsystem_name":"TestOS
- 7.6","domain_id":null,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"2","parent_id":2,"parent_name":"New
+ 7.6","domain_id":null,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"8","parent_id":8,"parent_name":"New
host group","ptable_id":null,"ptable_name":"Part table","medium_id":null,"medium_name":"TestOS
- Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":null,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:57:09 UTC","updated_at":"2020-09-03 07:57:09 UTC","id":8,"name":"Nested
- New host group 1","title":"New host group/Nested New host group 1","description":null,"puppet_proxy_id":null,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":null,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":17,"inherited_puppet_proxy_id":1,"inherited_puppet_ca_proxy_id":1,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":2,"inherited_architecture_id":1,"inherited_medium_id":12,"inherited_ptable_id":127,"inherited_subnet_id":35,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":"Grub2
+ Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":null,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2021-11-15
+ 08:34:01 UTC","updated_at":"2021-11-15 08:34:01 UTC","id":14,"name":"Nested
+ New host group 1","title":"New host group/Nested New host group 1","description":null,"puppet_proxy_id":null,"puppet_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_ca_proxy_id":null,"puppet_ca_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":2,"inherited_puppet_proxy_id":1,"inherited_puppet_ca_proxy_id":1,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":2,"inherited_architecture_id":1,"inherited_medium_id":13,"inherited_ptable_id":133,"inherited_subnet_id":1,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":"Grub2
UEFI","parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[],"organizations":[]}'
headers:
Cache-Control:
@@ -176,7 +160,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -194,7 +178,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1810'
+ - '1809'
status:
code: 200
message: OK
@@ -213,31 +197,14 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 6,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\
- :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\
- :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\
- :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\
- :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\
- ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\
- :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\
- :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\
- architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\
- realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\
- :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\
- :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\
- :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\
- :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
- :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\
- :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":1,\"subnet_name\":\"Test
+ subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":133,\"ptable_name\":\"Part
+ table\",\"medium_id\":13,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2
+ UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:48 UTC\",\"updated_at\":\"2021-11-15 08:33:48 UTC\",\"id\":8,\"name\":\"New
+ host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -256,7 +223,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=97
Strict-Transport-Security:
@@ -274,7 +241,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1816'
+ - '1814'
status:
code: 200
message: OK
@@ -294,15 +261,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: PUT
- uri: https://foreman.example.org/api/hostgroups/8
+ uri: https://foreman.example.org/api/hostgroups/14
response:
body:
string: '{"subnet_id":null,"subnet_name":"Test subnet4","operatingsystem_id":null,"operatingsystem_name":"TestOS
- 7.6","domain_id":null,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"2","parent_id":2,"parent_name":"New
+ 7.6","domain_id":null,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"8","parent_id":8,"parent_name":"New
host group","ptable_id":null,"ptable_name":"Part table","medium_id":null,"medium_name":"TestOS
- Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":null,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:57:09 UTC","updated_at":"2020-09-03 07:57:10 UTC","id":8,"name":"Nested
- New host group 10","title":"New host group/Nested New host group 10","description":null,"puppet_proxy_id":null,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":null,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":17,"inherited_puppet_proxy_id":1,"inherited_puppet_ca_proxy_id":1,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":2,"inherited_architecture_id":1,"inherited_medium_id":12,"inherited_ptable_id":127,"inherited_subnet_id":35,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":"Grub2
+ Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":null,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2021-11-15
+ 08:34:01 UTC","updated_at":"2021-11-15 08:34:02 UTC","id":14,"name":"Nested
+ New host group 10","title":"New host group/Nested New host group 10","description":null,"puppet_proxy_id":null,"puppet_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_ca_proxy_id":null,"puppet_ca_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":2,"inherited_puppet_proxy_id":1,"inherited_puppet_ca_proxy_id":1,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":2,"inherited_architecture_id":1,"inherited_medium_id":13,"inherited_ptable_id":133,"inherited_subnet_id":1,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":"Grub2
UEFI","parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[],"organizations":[]}'
headers:
Cache-Control:
@@ -322,7 +289,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=96
Strict-Transport-Security:
@@ -340,7 +307,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1812'
+ - '1811'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/hostgroup-21.yml b/tests/test_playbooks/fixtures/hostgroup-21.yml
index 900c91b7..3b4140b6 100644
--- a/tests/test_playbooks/fixtures/hostgroup-21.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-21.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,32 +70,16 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group+10%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 6,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\
- \ 10\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\
- \ \"results\": [{\"subnet_id\":null,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\
- :null,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":null,\"domain_name\"\
- :\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\"\
- ,\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\"\
- :\"2\",\"parent_id\":2,\"parent_name\":\"New host group\",\"ptable_id\":null,\"\
- ptable_name\":\"Part table\",\"medium_id\":null,\"medium_name\":\"TestOS Mirror\"\
- ,\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"\
- compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\"\
- :null,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"\
- created_at\":\"2020-09-03 07:57:09 UTC\",\"updated_at\":\"2020-09-03 07:57:10\
- \ UTC\",\"id\":8,\"name\":\"Nested New host group 10\",\"title\":\"New host\
- \ group/Nested New host group 10\",\"description\":null,\"puppet_proxy_id\"\
- :null,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :null,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"\
- puppet_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"puppet_ca_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\"\
- :17,\"inherited_puppet_proxy_id\":1,\"inherited_puppet_ca_proxy_id\":1,\"\
- inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\":2,\"inherited_architecture_id\"\
- :1,\"inherited_medium_id\":12,\"inherited_ptable_id\":127,\"inherited_subnet_id\"\
- :35,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\"\
- :\"Grub2 UEFI\"}]\n}\n"
+ string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group
+ 10\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"subnet_id\":null,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":null,\"operatingsystem_name\":\"TestOS
+ 7.6\",\"domain_id\":null,\"domain_name\":\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\":\"8\",\"parent_id\":8,\"parent_name\":\"New
+ host group\",\"ptable_id\":null,\"ptable_name\":\"Part table\",\"medium_id\":null,\"medium_name\":\"TestOS
+ Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":null,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:34:01 UTC\",\"updated_at\":\"2021-11-15 08:34:02 UTC\",\"id\":14,\"name\":\"Nested
+ New host group 10\",\"title\":\"New host group/Nested New host group 10\",\"description\":null,\"puppet_proxy_id\":null,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":null,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\":2,\"inherited_puppet_proxy_id\":1,\"inherited_puppet_ca_proxy_id\":1,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\":2,\"inherited_architecture_id\":1,\"inherited_medium_id\":13,\"inherited_ptable_id\":133,\"inherited_subnet_id\":1,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":\"Grub2
+ UEFI\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -114,7 +98,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -132,7 +116,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1880'
+ - '1879'
status:
code: 200
message: OK
@@ -148,15 +132,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/hostgroups/8
+ uri: https://foreman.example.org/api/hostgroups/14
response:
body:
string: '{"subnet_id":null,"subnet_name":"Test subnet4","operatingsystem_id":null,"operatingsystem_name":"TestOS
- 7.6","domain_id":null,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"2","parent_id":2,"parent_name":"New
+ 7.6","domain_id":null,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"8","parent_id":8,"parent_name":"New
host group","ptable_id":null,"ptable_name":"Part table","medium_id":null,"medium_name":"TestOS
- Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":null,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:57:09 UTC","updated_at":"2020-09-03 07:57:10 UTC","id":8,"name":"Nested
- New host group 10","title":"New host group/Nested New host group 10","description":null,"puppet_proxy_id":null,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":null,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":17,"inherited_puppet_proxy_id":1,"inherited_puppet_ca_proxy_id":1,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":2,"inherited_architecture_id":1,"inherited_medium_id":12,"inherited_ptable_id":127,"inherited_subnet_id":35,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":"Grub2
+ Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":null,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2021-11-15
+ 08:34:01 UTC","updated_at":"2021-11-15 08:34:02 UTC","id":14,"name":"Nested
+ New host group 10","title":"New host group/Nested New host group 10","description":null,"puppet_proxy_id":null,"puppet_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_ca_proxy_id":null,"puppet_ca_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":2,"inherited_puppet_proxy_id":1,"inherited_puppet_ca_proxy_id":1,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":2,"inherited_architecture_id":1,"inherited_medium_id":13,"inherited_ptable_id":133,"inherited_subnet_id":1,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":"Grub2
UEFI","parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[],"organizations":[]}'
headers:
Cache-Control:
@@ -176,7 +160,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -194,7 +178,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1812'
+ - '1811'
status:
code: 200
message: OK
@@ -213,31 +197,14 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 6,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\
- :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\
- :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\
- :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\
- :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\
- ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\
- :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\
- :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\
- architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\
- realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\
- :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\
- :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\
- :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\
- :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
- :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\
- :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":1,\"subnet_name\":\"Test
+ subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":133,\"ptable_name\":\"Part
+ table\",\"medium_id\":13,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2
+ UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:48 UTC\",\"updated_at\":\"2021-11-15 08:33:48 UTC\",\"id\":8,\"name\":\"New
+ host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -256,7 +223,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=97
Strict-Transport-Security:
@@ -274,7 +241,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1816'
+ - '1814'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/hostgroup-22.yml b/tests/test_playbooks/fixtures/hostgroup-22.yml
index de6badab..07e8537b 100644
--- a/tests/test_playbooks/fixtures/hostgroup-22.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-22.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,32 +70,16 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group+10%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 6,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\
- \ 10\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\
- \ \"results\": [{\"subnet_id\":null,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\
- :null,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":null,\"domain_name\"\
- :\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\"\
- ,\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\"\
- :\"2\",\"parent_id\":2,\"parent_name\":\"New host group\",\"ptable_id\":null,\"\
- ptable_name\":\"Part table\",\"medium_id\":null,\"medium_name\":\"TestOS Mirror\"\
- ,\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"\
- compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\"\
- :null,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"\
- created_at\":\"2020-09-03 07:57:09 UTC\",\"updated_at\":\"2020-09-03 07:57:10\
- \ UTC\",\"id\":8,\"name\":\"Nested New host group 10\",\"title\":\"New host\
- \ group/Nested New host group 10\",\"description\":null,\"puppet_proxy_id\"\
- :null,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :null,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"\
- puppet_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"puppet_ca_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\"\
- :17,\"inherited_puppet_proxy_id\":1,\"inherited_puppet_ca_proxy_id\":1,\"\
- inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\":2,\"inherited_architecture_id\"\
- :1,\"inherited_medium_id\":12,\"inherited_ptable_id\":127,\"inherited_subnet_id\"\
- :35,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\"\
- :\"Grub2 UEFI\"}]\n}\n"
+ string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group
+ 10\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"subnet_id\":null,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":null,\"operatingsystem_name\":\"TestOS
+ 7.6\",\"domain_id\":null,\"domain_name\":\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\":\"8\",\"parent_id\":8,\"parent_name\":\"New
+ host group\",\"ptable_id\":null,\"ptable_name\":\"Part table\",\"medium_id\":null,\"medium_name\":\"TestOS
+ Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":null,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:34:01 UTC\",\"updated_at\":\"2021-11-15 08:34:02 UTC\",\"id\":14,\"name\":\"Nested
+ New host group 10\",\"title\":\"New host group/Nested New host group 10\",\"description\":null,\"puppet_proxy_id\":null,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":null,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\":2,\"inherited_puppet_proxy_id\":1,\"inherited_puppet_ca_proxy_id\":1,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\":2,\"inherited_architecture_id\":1,\"inherited_medium_id\":13,\"inherited_ptable_id\":133,\"inherited_subnet_id\":1,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":\"Grub2
+ UEFI\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -114,7 +98,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -132,7 +116,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1880'
+ - '1879'
status:
code: 200
message: OK
@@ -151,31 +135,14 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 6,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\
- :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\
- :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\
- :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\
- :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\
- ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\
- :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\
- :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\
- architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\
- realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\
- :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\
- :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\
- :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\
- :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
- :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\
- :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":1,\"subnet_name\":\"Test
+ subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":133,\"ptable_name\":\"Part
+ table\",\"medium_id\":13,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2
+ UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:48 UTC\",\"updated_at\":\"2021-11-15 08:33:48 UTC\",\"id\":8,\"name\":\"New
+ host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -194,7 +161,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -212,7 +179,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1816'
+ - '1814'
status:
code: 200
message: OK
@@ -230,10 +197,10 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: DELETE
- uri: https://foreman.example.org/api/hostgroups/8
+ uri: https://foreman.example.org/api/hostgroups/14
response:
body:
- string: '{"id":8,"name":"Nested New host group 10","created_at":"2020-09-03T07:57:09.884Z","updated_at":"2020-09-03T07:57:10.750Z","environment_id":null,"operatingsystem_id":null,"architecture_id":null,"medium_id":null,"ptable_id":null,"root_pass":null,"puppet_ca_proxy_id":null,"use_image":null,"image_file":"","ancestry":"2","vm_defaults":null,"subnet_id":null,"domain_id":null,"puppet_proxy_id":null,"title":"New
+ string: '{"id":14,"name":"Nested New host group 10","created_at":"2021-11-15T08:34:01.494Z","updated_at":"2021-11-15T08:34:02.100Z","environment_id":null,"operatingsystem_id":null,"architecture_id":null,"medium_id":null,"ptable_id":null,"root_pass":null,"puppet_ca_proxy_id":null,"use_image":null,"image_file":"","ancestry":"8","vm_defaults":null,"subnet_id":null,"domain_id":null,"puppet_proxy_id":null,"title":"New
host group/Nested New host group 10","realm_id":null,"compute_profile_id":null,"grub_pass":"","lookup_value_matcher":"hostgroup=New
host group/Nested New host group 10","subnet6_id":null,"pxe_loader":"Grub2
UEFI","description":null,"compute_resource_id":null}'
@@ -255,7 +222,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=97
Strict-Transport-Security:
@@ -273,7 +240,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '666'
+ - '667'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/hostgroup-23.yml b/tests/test_playbooks/fixtures/hostgroup-23.yml
index d716e44b..6205e864 100644
--- a/tests/test_playbooks/fixtures/hostgroup-23.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-23.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,32 +70,15 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group+2%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\
- \ 2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\
- \ \"results\": [{\"subnet_id\":null,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\
- :2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":null,\"domain_name\"\
- :\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\"\
- ,\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\"\
- :\"2\",\"parent_id\":2,\"parent_name\":\"New host group\",\"ptable_id\":127,\"\
- ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\"\
- ,\"pxe_loader\":\"PXELinux BIOS\",\"subnet6_id\":null,\"subnet6_name\":null,\"\
- compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\"\
- :1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"\
- created_at\":\"2020-09-03 07:57:04 UTC\",\"updated_at\":\"2020-09-03 07:57:04\
- \ UTC\",\"id\":6,\"name\":\"Nested New host group 2\",\"title\":\"New host\
- \ group/Nested New host group 2\",\"description\":null,\"puppet_proxy_id\"\
- :null,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :null,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"\
- puppet_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"puppet_ca_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\"\
- :17,\"inherited_puppet_proxy_id\":1,\"inherited_puppet_ca_proxy_id\":1,\"\
- inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\":null,\"\
- inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":35,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group
+ 2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"subnet_id\":null,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS
+ 7.6\",\"domain_id\":null,\"domain_name\":\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\":\"8\",\"parent_id\":8,\"parent_name\":\"New
+ host group\",\"ptable_id\":133,\"ptable_name\":\"Part table\",\"medium_id\":13,\"medium_name\":\"TestOS
+ Mirror\",\"pxe_loader\":\"PXELinux BIOS\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:57 UTC\",\"updated_at\":\"2021-11-15 08:33:57 UTC\",\"id\":12,\"name\":\"Nested
+ New host group 2\",\"title\":\"New host group/Nested New host group 2\",\"description\":null,\"puppet_proxy_id\":null,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":null,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\":2,\"inherited_puppet_proxy_id\":1,\"inherited_puppet_ca_proxy_id\":1,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":1,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -114,7 +97,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -132,7 +115,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1872'
+ - '1871'
status:
code: 200
message: OK
@@ -151,31 +134,14 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\
- :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\
- :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\
- :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\
- :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\
- ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\
- :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\
- :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\
- architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\
- realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\
- :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\
- :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\
- :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\
- :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
- :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\
- :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":1,\"subnet_name\":\"Test
+ subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":133,\"ptable_name\":\"Part
+ table\",\"medium_id\":13,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2
+ UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:48 UTC\",\"updated_at\":\"2021-11-15 08:33:48 UTC\",\"id\":8,\"name\":\"New
+ host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -194,7 +160,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -212,7 +178,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1816'
+ - '1814'
status:
code: 200
message: OK
@@ -230,10 +196,10 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: DELETE
- uri: https://foreman.example.org/api/hostgroups/6
+ uri: https://foreman.example.org/api/hostgroups/12
response:
body:
- string: '{"id":6,"name":"Nested New host group 2","created_at":"2020-09-03T07:57:04.408Z","updated_at":"2020-09-03T07:57:04.408Z","environment_id":null,"operatingsystem_id":2,"architecture_id":1,"medium_id":12,"ptable_id":127,"root_pass":null,"puppet_ca_proxy_id":null,"use_image":null,"image_file":"","ancestry":"2","vm_defaults":null,"subnet_id":null,"domain_id":null,"puppet_proxy_id":null,"title":"New
+ string: '{"id":12,"name":"Nested New host group 2","created_at":"2021-11-15T08:33:57.633Z","updated_at":"2021-11-15T08:33:57.633Z","environment_id":null,"operatingsystem_id":2,"architecture_id":1,"medium_id":13,"ptable_id":133,"root_pass":null,"puppet_ca_proxy_id":null,"use_image":null,"image_file":"","ancestry":"8","vm_defaults":null,"subnet_id":null,"domain_id":null,"puppet_proxy_id":null,"title":"New
host group/Nested New host group 2","realm_id":null,"compute_profile_id":null,"grub_pass":"","lookup_value_matcher":"hostgroup=New
host group/Nested New host group 2","subnet6_id":null,"pxe_loader":"PXELinux
BIOS","description":null,"compute_resource_id":null}'
@@ -255,7 +221,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=97
Strict-Transport-Security:
@@ -273,7 +239,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '657'
+ - '658'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/hostgroup-24.yml b/tests/test_playbooks/fixtures/hostgroup-24.yml
index cc35a833..06e4ebd1 100644
--- a/tests/test_playbooks/fixtures/hostgroup-24.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-24.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,10 +70,10 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group+2%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 4,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\
- \ 2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n\
- \ \"results\": []\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group
+ 2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ []\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -92,7 +92,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -129,31 +129,14 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\
- :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\
- :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\
- :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\
- :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\
- ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\
- :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\
- :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\
- architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\
- realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\
- :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\
- :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\
- :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\
- :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
- :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\
- :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":1,\"subnet_name\":\"Test
+ subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":133,\"ptable_name\":\"Part
+ table\",\"medium_id\":13,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2
+ UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:48 UTC\",\"updated_at\":\"2021-11-15 08:33:48 UTC\",\"id\":8,\"name\":\"New
+ host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -172,7 +155,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -190,7 +173,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1816'
+ - '1814'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/hostgroup-25.yml b/tests/test_playbooks/fixtures/hostgroup-25.yml
index 7484eebb..77961e45 100644
--- a/tests/test_playbooks/fixtures/hostgroup-25.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-25.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,33 +70,17 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%2FNew+host+group+with+nested+parent%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group/New\
- \ host group with nested parent\\\"\",\n \"sort\": {\n \"by\": null,\n\
- \ \"order\": null\n },\n \"results\": [{\"subnet_id\":35,\"subnet_name\"\
- :\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS\
- \ 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\
- :null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\"\
- :\"myprofile\",\"ancestry\":\"2/4\",\"parent_id\":4,\"parent_name\":\"New\
- \ host group/Nested New host group\",\"ptable_id\":127,\"ptable_name\":\"\
- Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\"\
- :\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\"\
- :null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\"\
- :\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-09-03\
- \ 07:57:02 UTC\",\"updated_at\":\"2020-09-03 07:57:02 UTC\",\"id\":5,\"name\"\
- :\"New host group with nested parent\",\"title\":\"New host group/Nested New\
- \ host group/New host group with nested parent\",\"description\":\"Nested\
- \ group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"puppet_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"puppet_ca_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\"\
- :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
- :null,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\"\
- :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group/New
+ host group with nested parent\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\":
+ null\n },\n \"results\": [{\"subnet_id\":1,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS
+ 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\":\"8/10\",\"parent_id\":10,\"parent_name\":\"New
+ host group/Nested New host group\",\"ptable_id\":133,\"ptable_name\":\"Part
+ table\",\"medium_id\":13,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2
+ UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:56 UTC\",\"updated_at\":\"2021-11-15 08:33:56 UTC\",\"id\":11,\"name\":\"New
+ host group with nested parent\",\"title\":\"New host group/Nested New host
+ group/New host group with nested parent\",\"description\":\"Nested group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -115,7 +99,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -133,7 +117,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1977'
+ - '1978'
status:
code: 200
message: OK
@@ -152,32 +136,16 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"subnet_id\":35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\
- :2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":17,\"domain_name\"\
- :\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\"\
- ,\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\"\
- :\"2\",\"parent_id\":2,\"parent_name\":\"New host group\",\"ptable_id\":127,\"\
- ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\"\
- ,\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"\
- compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\"\
- :1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"\
- created_at\":\"2020-09-03 07:57:00 UTC\",\"updated_at\":\"2020-09-03 07:57:00\
- \ UTC\",\"id\":4,\"name\":\"Nested New host group\",\"title\":\"New host group/Nested\
- \ New host group\",\"description\":\"Nested group\",\"puppet_proxy_id\":1,\"\
- puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\"\
- :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
- :null,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\"\
- :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"subnet_id\":1,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS
+ 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\":\"8\",\"parent_id\":8,\"parent_name\":\"New
+ host group\",\"ptable_id\":133,\"ptable_name\":\"Part table\",\"medium_id\":13,\"medium_name\":\"TestOS
+ Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:54 UTC\",\"updated_at\":\"2021-11-15 08:33:54 UTC\",\"id\":10,\"name\":\"Nested
+ New host group\",\"title\":\"New host group/Nested New host group\",\"description\":\"Nested
+ group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -196,7 +164,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -214,7 +182,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1873'
+ - '1872'
status:
code: 200
message: OK
@@ -232,10 +200,10 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: DELETE
- uri: https://foreman.example.org/api/hostgroups/5
+ uri: https://foreman.example.org/api/hostgroups/11
response:
body:
- string: '{"id":5,"name":"New host group with nested parent","created_at":"2020-09-03T07:57:02.267Z","updated_at":"2020-09-03T07:57:02.267Z","environment_id":null,"operatingsystem_id":2,"architecture_id":1,"medium_id":12,"ptable_id":127,"root_pass":null,"puppet_ca_proxy_id":1,"use_image":null,"image_file":"","ancestry":"2/4","vm_defaults":null,"subnet_id":35,"domain_id":17,"puppet_proxy_id":1,"title":"New
+ string: '{"id":11,"name":"New host group with nested parent","created_at":"2021-11-15T08:33:56.190Z","updated_at":"2021-11-15T08:33:56.190Z","environment_id":null,"operatingsystem_id":2,"architecture_id":1,"medium_id":13,"ptable_id":133,"root_pass":null,"puppet_ca_proxy_id":1,"use_image":null,"image_file":"","ancestry":"8/10","vm_defaults":null,"subnet_id":1,"domain_id":2,"puppet_proxy_id":1,"title":"New
host group/Nested New host group/New host group with nested parent","realm_id":null,"compute_profile_id":null,"grub_pass":"","lookup_value_matcher":"hostgroup=New
host group/Nested New host group/New host group with nested parent","subnet6_id":null,"pxe_loader":"Grub2
UEFI","description":"Nested group","compute_resource_id":null}'
@@ -257,7 +225,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=97
Strict-Transport-Security:
diff --git a/tests/test_playbooks/fixtures/hostgroup-26.yml b/tests/test_playbooks/fixtures/hostgroup-26.yml
index 3994fe3b..21f50f7d 100644
--- a/tests/test_playbooks/fixtures/hostgroup-26.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-26.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,10 +70,10 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%2FNew+host+group+with+nested+parent%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group/New\
- \ host group with nested parent\\\"\",\n \"sort\": {\n \"by\": null,\n\
- \ \"order\": null\n },\n \"results\": []\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group/New
+ host group with nested parent\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\":
+ null\n },\n \"results\": []\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -92,7 +92,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -129,32 +129,16 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"subnet_id\":35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\
- :2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":17,\"domain_name\"\
- :\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\"\
- ,\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\"\
- :\"2\",\"parent_id\":2,\"parent_name\":\"New host group\",\"ptable_id\":127,\"\
- ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\"\
- ,\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"\
- compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\"\
- :1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"\
- created_at\":\"2020-09-03 07:57:00 UTC\",\"updated_at\":\"2020-09-03 07:57:00\
- \ UTC\",\"id\":4,\"name\":\"Nested New host group\",\"title\":\"New host group/Nested\
- \ New host group\",\"description\":\"Nested group\",\"puppet_proxy_id\":1,\"\
- puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\"\
- :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
- :null,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\"\
- :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"subnet_id\":1,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS
+ 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\":\"8\",\"parent_id\":8,\"parent_name\":\"New
+ host group\",\"ptable_id\":133,\"ptable_name\":\"Part table\",\"medium_id\":13,\"medium_name\":\"TestOS
+ Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:54 UTC\",\"updated_at\":\"2021-11-15 08:33:54 UTC\",\"id\":10,\"name\":\"Nested
+ New host group\",\"title\":\"New host group/Nested New host group\",\"description\":\"Nested
+ group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -173,7 +157,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -191,7 +175,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1873'
+ - '1872'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/hostgroup-27.yml b/tests/test_playbooks/fixtures/hostgroup-27.yml
index 65443da8..9f58ab48 100644
--- a/tests/test_playbooks/fixtures/hostgroup-27.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-27.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,32 +70,16 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"subnet_id\":35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\
- :2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":17,\"domain_name\"\
- :\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\"\
- ,\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\"\
- :\"2\",\"parent_id\":2,\"parent_name\":\"New host group\",\"ptable_id\":127,\"\
- ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\"\
- ,\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"\
- compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\"\
- :1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"\
- created_at\":\"2020-09-03 07:57:00 UTC\",\"updated_at\":\"2020-09-03 07:57:00\
- \ UTC\",\"id\":4,\"name\":\"Nested New host group\",\"title\":\"New host group/Nested\
- \ New host group\",\"description\":\"Nested group\",\"puppet_proxy_id\":1,\"\
- puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\"\
- :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
- :null,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\"\
- :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"subnet_id\":1,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS
+ 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\":\"8\",\"parent_id\":8,\"parent_name\":\"New
+ host group\",\"ptable_id\":133,\"ptable_name\":\"Part table\",\"medium_id\":13,\"medium_name\":\"TestOS
+ Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:54 UTC\",\"updated_at\":\"2021-11-15 08:33:54 UTC\",\"id\":10,\"name\":\"Nested
+ New host group\",\"title\":\"New host group/Nested New host group\",\"description\":\"Nested
+ group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -114,7 +98,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -132,7 +116,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1873'
+ - '1872'
status:
code: 200
message: OK
@@ -151,31 +135,14 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\
- :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\
- :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\
- :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\
- :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\
- ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\
- :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\
- :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\
- architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\
- realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\
- :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\
- :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\
- :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\
- :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
- :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\
- :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":1,\"subnet_name\":\"Test
+ subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":133,\"ptable_name\":\"Part
+ table\",\"medium_id\":13,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2
+ UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:48 UTC\",\"updated_at\":\"2021-11-15 08:33:48 UTC\",\"id\":8,\"name\":\"New
+ host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -194,7 +161,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -212,7 +179,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1816'
+ - '1814'
status:
code: 200
message: OK
@@ -230,10 +197,10 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: DELETE
- uri: https://foreman.example.org/api/hostgroups/4
+ uri: https://foreman.example.org/api/hostgroups/10
response:
body:
- string: '{"id":4,"name":"Nested New host group","created_at":"2020-09-03T07:57:00.015Z","updated_at":"2020-09-03T07:57:00.015Z","environment_id":null,"operatingsystem_id":2,"architecture_id":1,"medium_id":12,"ptable_id":127,"root_pass":null,"puppet_ca_proxy_id":1,"use_image":null,"image_file":"","ancestry":"2","vm_defaults":null,"subnet_id":35,"domain_id":17,"puppet_proxy_id":1,"title":"New
+ string: '{"id":10,"name":"Nested New host group","created_at":"2021-11-15T08:33:54.696Z","updated_at":"2021-11-15T08:33:54.696Z","environment_id":null,"operatingsystem_id":2,"architecture_id":1,"medium_id":13,"ptable_id":133,"root_pass":null,"puppet_ca_proxy_id":1,"use_image":null,"image_file":"","ancestry":"8","vm_defaults":null,"subnet_id":1,"domain_id":2,"puppet_proxy_id":1,"title":"New
host group/Nested New host group","realm_id":null,"compute_profile_id":null,"grub_pass":"","lookup_value_matcher":"hostgroup=New
host group/Nested New host group","subnet6_id":null,"pxe_loader":"Grub2 UEFI","description":"Nested
group","compute_resource_id":null}'
@@ -255,7 +222,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=97
Strict-Transport-Security:
@@ -273,7 +240,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '648'
+ - '647'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/hostgroup-28.yml b/tests/test_playbooks/fixtures/hostgroup-28.yml
index fc360082..937f402e 100644
--- a/tests/test_playbooks/fixtures/hostgroup-28.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-28.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,10 +70,10 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : []\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ []\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -92,7 +92,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -129,31 +129,14 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\
- :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\
- :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\
- :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\
- :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\
- ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\
- :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\
- :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\
- architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\
- realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\
- :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\
- :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\
- :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\
- :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
- :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\
- :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":1,\"subnet_name\":\"Test
+ subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":133,\"ptable_name\":\"Part
+ table\",\"medium_id\":13,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2
+ UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:48 UTC\",\"updated_at\":\"2021-11-15 08:33:48 UTC\",\"id\":8,\"name\":\"New
+ host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -172,7 +155,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -190,7 +173,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1816'
+ - '1814'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/hostgroup-29.yml b/tests/test_playbooks/fixtures/hostgroup-29.yml
index d7d4c05d..d067ef61 100644
--- a/tests/test_playbooks/fixtures/hostgroup-29.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-29.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,31 +70,14 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\
- :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\
- :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\
- :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\
- :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\
- ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\
- :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\
- :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\
- architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\
- realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\
- :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\
- :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\
- :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\
- :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
- :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\
- :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":1,\"subnet_name\":\"Test
+ subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":133,\"ptable_name\":\"Part
+ table\",\"medium_id\":13,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2
+ UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:48 UTC\",\"updated_at\":\"2021-11-15 08:33:48 UTC\",\"id\":8,\"name\":\"New
+ host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -113,7 +96,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -131,7 +114,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1816'
+ - '1814'
status:
code: 200
message: OK
@@ -147,19 +130,19 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/hostgroups/2
+ uri: https://foreman.example.org/api/hostgroups/8
response:
body:
- string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
- 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part
- table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":2,"name":"New host
- group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03
- 07:54:33 UTC","updated_at":"2020-09-03 07:57:06 UTC","id":53,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":60,"created_at":"2020-09-03
- 07:57:06 UTC","updated_at":"2020-09-03 07:57:06 UTC","id":57,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test
- Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test
+ string: '{"subnet_id":1,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
+ 7.6","domain_id":2,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":133,"ptable_name":"Part
+ table","medium_id":13,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2021-11-15
+ 08:33:48 UTC","updated_at":"2021-11-15 08:33:48 UTC","id":8,"name":"New host
+ group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2021-11-15
+ 08:33:48 UTC","updated_at":"2021-11-15 08:33:59 UTC","id":15,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":60,"created_at":"2021-11-15
+ 08:33:59 UTC","updated_at":"2021-11-15 08:33:59 UTC","id":19,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2021-11-15
+ 08:31:39 UTC","updated_at":"2021-11-15 08:31:39 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2021-11-15
+ 08:31:40 UTC","updated_at":"2021-11-15 08:31:40 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":11,"name":"Bar","title":"Bar","description":null},{"id":9,"name":"Foo","title":"Foo","description":null},{"id":10,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":12,"name":"Test
+ Org1","title":"Test Org1","description":"A test organization"},{"id":13,"name":"Test
Org2","title":"Test Org2","description":"A test organization"}]}'
headers:
Cache-Control:
@@ -179,7 +162,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -197,7 +180,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '2703'
+ - '2700'
status:
code: 200
message: OK
@@ -217,19 +200,19 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: PUT
- uri: https://foreman.example.org/api/hostgroups/2
+ uri: https://foreman.example.org/api/hostgroups/8
response:
body:
- string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
- 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part
- table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:54:33 UTC","updated_at":"2020-09-03 07:57:17 UTC","id":2,"name":"New host
- group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03
- 07:54:33 UTC","updated_at":"2020-09-03 07:57:06 UTC","id":53,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":60,"created_at":"2020-09-03
- 07:57:06 UTC","updated_at":"2020-09-03 07:57:06 UTC","id":57,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test
- Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test
+ string: '{"subnet_id":1,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
+ 7.6","domain_id":2,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":133,"ptable_name":"Part
+ table","medium_id":13,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2021-11-15
+ 08:33:48 UTC","updated_at":"2021-11-15 08:34:06 UTC","id":8,"name":"New host
+ group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2021-11-15
+ 08:33:48 UTC","updated_at":"2021-11-15 08:33:59 UTC","id":15,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":60,"created_at":"2021-11-15
+ 08:33:59 UTC","updated_at":"2021-11-15 08:33:59 UTC","id":19,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2021-11-15
+ 08:31:39 UTC","updated_at":"2021-11-15 08:31:39 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2021-11-15
+ 08:31:40 UTC","updated_at":"2021-11-15 08:31:40 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":11,"name":"Bar","title":"Bar","description":null},{"id":9,"name":"Foo","title":"Foo","description":null},{"id":10,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":12,"name":"Test
+ Org1","title":"Test Org1","description":"A test organization"},{"id":13,"name":"Test
Org2","title":"Test Org2","description":"A test organization"}]}'
headers:
Cache-Control:
@@ -249,7 +232,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=97
Strict-Transport-Security:
@@ -267,7 +250,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '2703'
+ - '2700'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/hostgroup-3.yml b/tests/test_playbooks/fixtures/hostgroup-3.yml
index b41a1617..86424a42 100644
--- a/tests/test_playbooks/fixtures/hostgroup-3.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-3.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,32 +70,16 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group+with+puppet+classes%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group with puppet classes\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"subnet_id\":35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\
- :2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":17,\"domain_name\"\
- :\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\"\
- ,\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":127,\"ptable_name\"\
- :\"Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\"\
- :\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\"\
- :1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\"\
- :\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-09-03\
- \ 07:54:34 UTC\",\"updated_at\":\"2020-09-03 07:54:34 UTC\",\"id\":3,\"name\"\
- :\"New host group with puppet classes\",\"title\":\"New host group with puppet\
- \ classes\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\"\
- :\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\"\
- :\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"inherited_compute_profile_id\"\
- :null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\"\
- :null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\"\
- :null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\"\
- :null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\"\
- :null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\"\
- :null}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group with puppet classes\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"subnet_id\":1,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS
+ 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":133,\"ptable_name\":\"Part
+ table\",\"medium_id\":13,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2
+ UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:49 UTC\",\"updated_at\":\"2021-11-15 08:33:49 UTC\",\"id\":9,\"name\":\"New
+ host group with puppet classes\",\"title\":\"New host group with puppet classes\",\"description\":\"New
+ host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -114,7 +98,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -132,7 +116,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1876'
+ - '1874'
status:
code: 200
message: OK
@@ -148,20 +132,20 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/hostgroups/3
+ uri: https://foreman.example.org/api/hostgroups/9
response:
body:
- string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
- 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part
- table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:54:34 UTC","updated_at":"2020-09-03 07:54:34 UTC","id":3,"name":"New host
+ string: '{"subnet_id":1,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
+ 7.6","domain_id":2,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":133,"ptable_name":"Part
+ table","medium_id":13,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2021-11-15
+ 08:33:49 UTC","updated_at":"2021-11-15 08:33:49 UTC","id":9,"name":"New host
group with puppet classes","title":"New host group with puppet classes","description":"New
- host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03
- 07:54:35 UTC","updated_at":"2020-09-03 07:54:35 UTC","id":55,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2020-09-03
- 07:54:35 UTC","updated_at":"2020-09-03 07:54:35 UTC","id":56,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[{"id":33,"name":"prometheus::redis_exporter","module_name":"prometheus"}],"config_groups":[{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[{"id":33,"name":"prometheus::redis_exporter","module_name":"prometheus"}],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test
- Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test
+ host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2021-11-15
+ 08:33:49 UTC","updated_at":"2021-11-15 08:33:49 UTC","id":17,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2021-11-15
+ 08:33:49 UTC","updated_at":"2021-11-15 08:33:49 UTC","id":18,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[{"id":39,"name":"prometheus::redis_exporter","module_name":"prometheus"}],"config_groups":[{"created_at":"2021-11-15
+ 08:31:39 UTC","updated_at":"2021-11-15 08:31:39 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2021-11-15
+ 08:31:40 UTC","updated_at":"2021-11-15 08:31:40 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[{"id":39,"name":"prometheus::redis_exporter","module_name":"prometheus"}],"locations":[{"id":11,"name":"Bar","title":"Bar","description":null},{"id":9,"name":"Foo","title":"Foo","description":null},{"id":10,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":12,"name":"Test
+ Org1","title":"Test Org1","description":"A test organization"},{"id":13,"name":"Test
Org2","title":"Test Org2","description":"A test organization"}]}'
headers:
Cache-Control:
@@ -181,7 +165,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -199,7 +183,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '2883'
+ - '2880'
status:
code: 200
message: OK
@@ -218,13 +202,11 @@ interactions:
uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\
- \ 07:56:40 UTC\",\"updated_at\":\"2020-09-03 07:56:40 UTC\",\"id\":51,\"name\"\
- :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\
- }]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:35 UTC\",\"updated_at\":\"2021-11-15 08:24:35 UTC\",\"id\":12,\"name\":\"Test
+ Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -243,7 +225,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=97
Strict-Transport-Security:
@@ -280,13 +262,11 @@ interactions:
uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\
- \ 07:56:41 UTC\",\"updated_at\":\"2020-09-03 07:56:41 UTC\",\"id\":52,\"name\"\
- :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\
- }]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:35 UTC\",\"updated_at\":\"2021-11-15 08:24:35 UTC\",\"id\":13,\"name\":\"Test
+ Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -305,7 +285,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=96
Strict-Transport-Security:
@@ -342,12 +322,10 @@ interactions:
uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\
- by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\
- parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:16\
- \ UTC\",\"updated_at\":\"2020-09-03 07:50:16 UTC\",\"id\":46,\"name\":\"Foo\"\
- ,\"title\":\"Foo\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:32 UTC\",\"updated_at\":\"2021-11-15 08:24:32 UTC\",\"id\":9,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -366,7 +344,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=95
Strict-Transport-Security:
@@ -384,7 +362,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '355'
+ - '354'
status:
code: 200
message: OK
@@ -403,12 +381,10 @@ interactions:
uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :\"46\",\"parent_id\":46,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\
- \ 07:50:17 UTC\",\"updated_at\":\"2020-09-03 07:50:17 UTC\",\"id\":47,\"name\"\
- :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"9\",\"parent_id\":9,\"parent_name\":\"Foo\",\"created_at\":\"2021-11-15
+ 08:24:33 UTC\",\"updated_at\":\"2021-11-15 08:24:33 UTC\",\"id\":10,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -427,7 +403,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=94
Strict-Transport-Security:
@@ -445,7 +421,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '362'
+ - '360'
status:
code: 200
message: OK
@@ -464,12 +440,10 @@ interactions:
uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\
- by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\
- parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:18\
- \ UTC\",\"updated_at\":\"2020-09-03 07:50:18 UTC\",\"id\":48,\"name\":\"Bar\"\
- ,\"title\":\"Bar\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:34 UTC\",\"updated_at\":\"2021-11-15 08:24:34 UTC\",\"id\":11,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -488,7 +462,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=93
Strict-Transport-Security:
@@ -525,11 +499,10 @@ interactions:
uri: https://foreman.example.org/api/compute_profiles?search=name%3D%22myprofile%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"myprofile\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-09-03 07:54:30 UTC\",\"updated_at\":\"2020-09-03 07:54:30 UTC\",\"\
- id\":4,\"name\":\"myprofile\"}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"myprofile\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:31:39 UTC\",\"updated_at\":\"2021-11-15 08:31:39 UTC\",\"id\":4,\"name\":\"myprofile\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -548,7 +521,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=92
Strict-Transport-Security:
@@ -585,13 +558,10 @@ interactions:
uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\
- :null,\"created_at\":\"2020-09-03 07:50:22 UTC\",\"updated_at\":\"2020-09-03\
- \ 07:50:22 UTC\",\"id\":17,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- }}]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\":null,\"created_at\":\"2021-11-15
+ 08:27:23 UTC\",\"updated_at\":\"2021-11-15 08:27:23 UTC\",\"id\":2,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"}}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -610,7 +580,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=91
Strict-Transport-Security:
@@ -628,7 +598,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '441'
+ - '440'
status:
code: 200
message: OK
@@ -647,19 +617,11 @@ interactions:
uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\
- :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\
- ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\
- :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\
- \ 07:50:23 UTC\",\"updated_at\":\"2020-09-03 07:50:23 UTC\",\"ipam\":\"DHCP\"\
- ,\"boot_mode\":\"DHCP\",\"id\":35,\"name\":\"Test subnet4\",\"description\"\
- :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\
- :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\
- :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\
- template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\
- :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2021-11-15
+ 08:27:24 UTC\",\"updated_at\":\"2021-11-15 08:27:24 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"nic_delay\":null,\"id\":1,\"name\":\"Test
+ subnet4\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"bmc_id\":null,\"bmc_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"externalipam\":null,\"dns\":null,\"template\":null,\"bmc\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -678,7 +640,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=90
Strict-Transport-Security:
@@ -696,7 +658,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '870'
+ - '927'
status:
code: 200
message: OK
@@ -715,11 +677,10 @@ interactions:
uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-07-15 11:29:52 UTC\",\"updated_at\":\"2020-07-15 11:29:52 UTC\",\"\
- name\":\"x86_64\",\"id\":1}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:14:58 UTC\",\"updated_at\":\"2021-11-15 08:14:58 UTC\",\"name\":\"x86_64\",\"id\":1}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -738,7 +699,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=89
Strict-Transport-Security:
@@ -775,13 +736,11 @@ interactions:
uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\
- :null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\"\
- :\"reverse whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-09-03\
- \ 07:50:25 UTC\",\"updated_at\":\"2020-09-03 07:50:25 UTC\",\"id\":2,\"name\"\
- :\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\":\"reverse
+ whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2021-11-15 08:27:25 UTC\",\"updated_at\":\"2021-11-15
+ 08:27:25 UTC\",\"id\":2,\"name\":\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -800,7 +759,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=88
Strict-Transport-Security:
@@ -837,12 +796,11 @@ interactions:
uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 12,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\":\
- \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\"\
- :\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\"\
- :\"2020-09-03 07:50:26 UTC\",\"updated_at\":\"2020-09-03 07:50:26 UTC\",\"\
- id\":12,\"name\":\"TestOS Mirror\"}]\n}\n"
+ string: "{\n \"total\": 13,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\":\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\":\"2021-11-15
+ 08:27:25 UTC\",\"updated_at\":\"2021-11-15 08:27:25 UTC\",\"id\":13,\"name\":\"TestOS
+ Mirror\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -861,7 +819,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=87
Strict-Transport-Security:
@@ -898,12 +856,11 @@ interactions:
uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 19,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\
- :null,\"os_family\":\"Redhat\",\"created_at\":\"2020-09-03 07:50:24 UTC\"\
- ,\"updated_at\":\"2020-09-03 07:50:24 UTC\",\"name\":\"Part table\",\"id\"\
- :127}]\n}\n"
+ string: "{\n \"total\": 20,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"os_family\":\"Redhat\",\"created_at\":\"2021-11-15
+ 08:27:24 UTC\",\"updated_at\":\"2021-11-15 08:27:24 UTC\",\"name\":\"Part
+ table\",\"id\":133}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -922,7 +879,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=86
Strict-Transport-Security:
@@ -959,11 +916,10 @@ interactions:
uri: https://foreman.example.org/api/environments?search=name%3D%22production%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"production\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-07-15 11:32:08 UTC\",\"updated_at\":\"2020-07-15 11:32:08 UTC\",\"\
- name\":\"production\",\"id\":1}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"production\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:16:43 UTC\",\"updated_at\":\"2021-11-15 08:16:43 UTC\",\"name\":\"production\",\"id\":1}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -982,7 +938,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=85
Strict-Transport-Security:
@@ -1019,11 +975,10 @@ interactions:
uri: https://foreman.example.org/api/config_groups?search=name%3D%22cfg_group1%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"cfg_group1\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-09-03 07:54:31 UTC\",\"updated_at\":\"2020-09-03 07:54:31 UTC\",\"\
- id\":1,\"name\":\"cfg_group1\",\"puppetclasses\":[]}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"cfg_group1\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:31:39 UTC\",\"updated_at\":\"2021-11-15 08:31:39 UTC\",\"id\":1,\"name\":\"cfg_group1\",\"puppetclasses\":[]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1042,7 +997,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=84
Strict-Transport-Security:
@@ -1079,11 +1034,10 @@ interactions:
uri: https://foreman.example.org/api/config_groups?search=name%3D%22cfg_group2%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"cfg_group2\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-09-03 07:54:31 UTC\",\"updated_at\":\"2020-09-03 07:54:31 UTC\",\"\
- id\":2,\"name\":\"cfg_group2\",\"puppetclasses\":[]}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"cfg_group2\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:31:40 UTC\",\"updated_at\":\"2021-11-15 08:31:40 UTC\",\"id\":2,\"name\":\"cfg_group2\",\"puppetclasses\":[]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1102,7 +1056,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=83
Strict-Transport-Security:
@@ -1136,20 +1090,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296
+ uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-5.tanso.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\
- \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\
- :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\
- name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\
- id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\
- :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\
- ,\"id\":3}]}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-5.tanso.example.com\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"created_at\":\"2021-11-15 08:16:36 UTC\",\"updated_at\":\"2021-11-15 08:16:36
+ UTC\",\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Puppet
+ CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"Registration\",\"id\":13},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3}]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1168,7 +1117,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=82
Strict-Transport-Security:
@@ -1186,7 +1135,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '666'
+ - '629'
status:
code: 200
message: OK
@@ -1202,20 +1151,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296
+ uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-5.tanso.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\
- \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\
- :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\
- name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\
- id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\
- :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\
- ,\"id\":3}]}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-5.tanso.example.com\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"created_at\":\"2021-11-15 08:16:36 UTC\",\"updated_at\":\"2021-11-15 08:16:36
+ UTC\",\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Puppet
+ CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"Registration\",\"id\":13},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3}]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1234,7 +1178,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=81
Strict-Transport-Security:
@@ -1252,7 +1196,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '666'
+ - '629'
status:
code: 200
message: OK
@@ -1271,12 +1215,10 @@ interactions:
uri: https://foreman.example.org/api/environments/1/puppetclasses?search=name%3D%22prometheus%3A%3Aredis_exporter%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 50,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"prometheus::redis_exporter\\\"\",\n\
- \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : {\"prometheus\":[{\"id\":33,\"name\":\"prometheus::redis_exporter\",\"created_at\"\
- :\"2020-09-03T07:55:19.882Z\",\"updated_at\":\"2020-09-03T07:55:19.882Z\"\
- }]}\n}\n"
+ string: "{\n \"total\": 59,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"prometheus::redis_exporter\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ {\"prometheus\":[{\"id\":39,\"name\":\"prometheus::redis_exporter\",\"created_at\":\"2021-11-15T08:22:48.079Z\",\"updated_at\":\"2021-11-15T08:22:48.079Z\"}]}\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1295,7 +1237,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=80
Strict-Transport-Security:
@@ -1332,12 +1274,10 @@ interactions:
uri: https://foreman.example.org/api/environments/1/puppetclasses?search=name%3D%22prometheus%3A%3Astatsd_exporter%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 50,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"prometheus::statsd_exporter\\\"\"\
- ,\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : {\"prometheus\":[{\"id\":38,\"name\":\"prometheus::statsd_exporter\",\"\
- created_at\":\"2020-09-03T07:55:19.962Z\",\"updated_at\":\"2020-09-03T07:55:19.962Z\"\
- }]}\n}\n"
+ string: "{\n \"total\": 59,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"prometheus::statsd_exporter\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ {\"prometheus\":[{\"id\":46,\"name\":\"prometheus::statsd_exporter\",\"created_at\":\"2021-11-15T08:22:49.908Z\",\"updated_at\":\"2021-11-15T08:22:49.908Z\"}]}\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1356,7 +1296,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=79
Strict-Transport-Security:
@@ -1379,7 +1319,7 @@ interactions:
code: 200
message: OK
- request:
- body: '{"puppetclass_id": 38}'
+ body: '{"puppetclass_id": 46}'
headers:
Accept:
- application/json;version=2
@@ -1394,10 +1334,10 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: POST
- uri: https://foreman.example.org/api/hostgroups/3/puppetclass_ids
+ uri: https://foreman.example.org/api/hostgroups/9/puppetclass_ids
response:
body:
- string: '{"hostgroup_id":3,"puppetclass_id":38}'
+ string: '{"hostgroup_id":9,"puppetclass_id":46}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1416,7 +1356,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=78
Strict-Transport-Security:
diff --git a/tests/test_playbooks/fixtures/hostgroup-30.yml b/tests/test_playbooks/fixtures/hostgroup-30.yml
index 4795ed7d..fd2790e1 100644
--- a/tests/test_playbooks/fixtures/hostgroup-30.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-30.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,31 +70,14 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\
- :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\
- :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\
- :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\
- :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\
- ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\
- :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\
- :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\
- architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\
- realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\
- :\"2020-09-03 07:57:17 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\
- :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\
- :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\
- :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
- :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\
- :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":1,\"subnet_name\":\"Test
+ subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":133,\"ptable_name\":\"Part
+ table\",\"medium_id\":13,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2
+ UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:48 UTC\",\"updated_at\":\"2021-11-15 08:34:06 UTC\",\"id\":8,\"name\":\"New
+ host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -113,7 +96,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -131,7 +114,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1816'
+ - '1814'
status:
code: 200
message: OK
@@ -147,19 +130,19 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/hostgroups/2
+ uri: https://foreman.example.org/api/hostgroups/8
response:
body:
- string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
- 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part
- table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:54:33 UTC","updated_at":"2020-09-03 07:57:17 UTC","id":2,"name":"New host
- group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03
- 07:54:33 UTC","updated_at":"2020-09-03 07:57:06 UTC","id":53,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":60,"created_at":"2020-09-03
- 07:57:06 UTC","updated_at":"2020-09-03 07:57:06 UTC","id":57,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test
- Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test
+ string: '{"subnet_id":1,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
+ 7.6","domain_id":2,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":133,"ptable_name":"Part
+ table","medium_id":13,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2021-11-15
+ 08:33:48 UTC","updated_at":"2021-11-15 08:34:06 UTC","id":8,"name":"New host
+ group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2021-11-15
+ 08:33:48 UTC","updated_at":"2021-11-15 08:33:59 UTC","id":15,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":60,"created_at":"2021-11-15
+ 08:33:59 UTC","updated_at":"2021-11-15 08:33:59 UTC","id":19,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2021-11-15
+ 08:31:39 UTC","updated_at":"2021-11-15 08:31:39 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2021-11-15
+ 08:31:40 UTC","updated_at":"2021-11-15 08:31:40 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":11,"name":"Bar","title":"Bar","description":null},{"id":9,"name":"Foo","title":"Foo","description":null},{"id":10,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":12,"name":"Test
+ Org1","title":"Test Org1","description":"A test organization"},{"id":13,"name":"Test
Org2","title":"Test Org2","description":"A test organization"}]}'
headers:
Cache-Control:
@@ -179,7 +162,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -197,7 +180,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '2703'
+ - '2700'
status:
code: 200
message: OK
@@ -217,19 +200,19 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: PUT
- uri: https://foreman.example.org/api/hostgroups/2
+ uri: https://foreman.example.org/api/hostgroups/8
response:
body:
- string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
- 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part
- table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:54:33 UTC","updated_at":"2020-09-03 07:57:17 UTC","id":2,"name":"New host
- group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03
- 07:54:33 UTC","updated_at":"2020-09-03 07:57:06 UTC","id":53,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":60,"created_at":"2020-09-03
- 07:57:06 UTC","updated_at":"2020-09-03 07:57:06 UTC","id":57,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test
- Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test
+ string: '{"subnet_id":1,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
+ 7.6","domain_id":2,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":133,"ptable_name":"Part
+ table","medium_id":13,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2021-11-15
+ 08:33:48 UTC","updated_at":"2021-11-15 08:34:07 UTC","id":8,"name":"New host
+ group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2021-11-15
+ 08:33:48 UTC","updated_at":"2021-11-15 08:33:59 UTC","id":15,"name":"subnet_param1","parameter_type":"string","value":"new_value1"},{"priority":60,"created_at":"2021-11-15
+ 08:33:59 UTC","updated_at":"2021-11-15 08:33:59 UTC","id":19,"name":"subnet_param3","parameter_type":"string","value":"value3"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2021-11-15
+ 08:31:39 UTC","updated_at":"2021-11-15 08:31:39 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2021-11-15
+ 08:31:40 UTC","updated_at":"2021-11-15 08:31:40 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":11,"name":"Bar","title":"Bar","description":null},{"id":9,"name":"Foo","title":"Foo","description":null},{"id":10,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":12,"name":"Test
+ Org1","title":"Test Org1","description":"A test organization"},{"id":13,"name":"Test
Org2","title":"Test Org2","description":"A test organization"}]}'
headers:
Cache-Control:
@@ -249,7 +232,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=97
Strict-Transport-Security:
@@ -267,7 +250,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '2703'
+ - '2700'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/hostgroup-31.yml b/tests/test_playbooks/fixtures/hostgroup-31.yml
index fa8e3b03..8ddb23a2 100644
--- a/tests/test_playbooks/fixtures/hostgroup-31.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-31.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,31 +70,14 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\
- :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\
- :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\
- :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\
- :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\
- ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\
- :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\
- :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\
- architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\
- realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\
- :\"2020-09-03 07:57:17 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\
- :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\
- :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\
- :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
- :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\
- :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":1,\"subnet_name\":\"Test
+ subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":133,\"ptable_name\":\"Part
+ table\",\"medium_id\":13,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2
+ UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:48 UTC\",\"updated_at\":\"2021-11-15 08:34:07 UTC\",\"id\":8,\"name\":\"New
+ host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -113,7 +96,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -131,7 +114,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1816'
+ - '1814'
status:
code: 200
message: OK
@@ -149,11 +132,11 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: DELETE
- uri: https://foreman.example.org/api/hostgroups/2
+ uri: https://foreman.example.org/api/hostgroups/8
response:
body:
- string: '{"id":2,"name":"New host group","created_at":"2020-09-03T07:54:33.668Z","updated_at":"2020-09-03T07:57:17.981Z","environment_id":1,"operatingsystem_id":2,"architecture_id":1,"medium_id":12,"ptable_id":127,"root_pass":"$5$VUM2lJkbVp9IAcxV$mGNKfm9hmyFN50RGXbuKxmJysPC46PMRmpDxaf6n1J2","puppet_ca_proxy_id":1,"use_image":null,"image_file":"","ancestry":null,"vm_defaults":null,"subnet_id":35,"domain_id":17,"puppet_proxy_id":1,"title":"New
- host group","realm_id":null,"compute_profile_id":4,"grub_pass":"$6$xRzmGw3m2YqKGr9I$PXUuRpfazmLLw7sbGWWy2katpcfDPAKBOMouuomAKjZssSf8a2cRCBWhGv5aapMj.oIrdscgf9.Qs3CRnu3Gl/","lookup_value_matcher":"hostgroup=New
+ string: '{"id":8,"name":"New host group","created_at":"2021-11-15T08:33:48.652Z","updated_at":"2021-11-15T08:34:07.070Z","environment_id":1,"operatingsystem_id":2,"architecture_id":1,"medium_id":13,"ptable_id":133,"root_pass":"$5$FUxTTN5N9sL2nesR$XXXV3MzA1/BUHX82Pt5JWaPfHRXzIc1jMEJ9jBP33D/","puppet_ca_proxy_id":1,"use_image":null,"image_file":"","ancestry":null,"vm_defaults":null,"subnet_id":1,"domain_id":2,"puppet_proxy_id":1,"title":"New
+ host group","realm_id":null,"compute_profile_id":4,"grub_pass":"$6$gbmtzN5Lo4uRLJgb$3/gkU3wWqXEZMNJqjWBWvgL9xA63SvchU/8JS2Hrg6Z2mYqvyo5DxvD6mHNK1YRb677vyXSldrmfY9/7QN2yu1","lookup_value_matcher":"hostgroup=New
host group","subnet6_id":null,"pxe_loader":"Grub2 UEFI","description":"New
host group","compute_resource_id":1}'
headers:
@@ -174,7 +157,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -192,7 +175,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '758'
+ - '756'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/hostgroup-32.yml b/tests/test_playbooks/fixtures/hostgroup-32.yml
index baaedb81..cb5c2748 100644
--- a/tests/test_playbooks/fixtures/hostgroup-32.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-32.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,9 +70,9 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n"
+ string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -91,7 +91,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
diff --git a/tests/test_playbooks/fixtures/hostgroup-33.yml b/tests/test_playbooks/fixtures/hostgroup-33.yml
new file mode 100644
index 00000000..82640b64
--- /dev/null
+++ b/tests/test_playbooks/fixtures/hostgroup-33.yml
@@ -0,0 +1,175 @@
+interactions:
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/status
+ response:
+ body:
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=100
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '62'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FWhatever+Child%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group/Whatever Child\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ []\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=99
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '196'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=98
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '181'
+ status:
+ code: 200
+ message: OK
+version: 1
diff --git a/tests/test_playbooks/fixtures/hostgroup-4.yml b/tests/test_playbooks/fixtures/hostgroup-4.yml
index 4fc95077..830c369b 100644
--- a/tests/test_playbooks/fixtures/hostgroup-4.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-4.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,32 +70,16 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group+with+puppet+classes%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group with puppet classes\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"subnet_id\":35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\
- :2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":17,\"domain_name\"\
- :\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\"\
- ,\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":127,\"ptable_name\"\
- :\"Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\"\
- :\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\"\
- :1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\"\
- :\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-09-03\
- \ 07:54:34 UTC\",\"updated_at\":\"2020-09-03 07:54:34 UTC\",\"id\":3,\"name\"\
- :\"New host group with puppet classes\",\"title\":\"New host group with puppet\
- \ classes\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\"\
- :\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\"\
- :\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"inherited_compute_profile_id\"\
- :null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\"\
- :null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\"\
- :null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\"\
- :null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\"\
- :null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\"\
- :null}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group with puppet classes\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"subnet_id\":1,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS
+ 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":133,\"ptable_name\":\"Part
+ table\",\"medium_id\":13,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2
+ UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:49 UTC\",\"updated_at\":\"2021-11-15 08:33:49 UTC\",\"id\":9,\"name\":\"New
+ host group with puppet classes\",\"title\":\"New host group with puppet classes\",\"description\":\"New
+ host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -114,7 +98,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -132,7 +116,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1876'
+ - '1874'
status:
code: 200
message: OK
@@ -148,20 +132,20 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/hostgroups/3
+ uri: https://foreman.example.org/api/hostgroups/9
response:
body:
- string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
- 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part
- table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:54:34 UTC","updated_at":"2020-09-03 07:54:34 UTC","id":3,"name":"New host
+ string: '{"subnet_id":1,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
+ 7.6","domain_id":2,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":133,"ptable_name":"Part
+ table","medium_id":13,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2021-11-15
+ 08:33:49 UTC","updated_at":"2021-11-15 08:33:49 UTC","id":9,"name":"New host
group with puppet classes","title":"New host group with puppet classes","description":"New
- host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03
- 07:54:35 UTC","updated_at":"2020-09-03 07:54:35 UTC","id":55,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2020-09-03
- 07:54:35 UTC","updated_at":"2020-09-03 07:54:35 UTC","id":56,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[{"id":33,"name":"prometheus::redis_exporter","module_name":"prometheus"},{"id":38,"name":"prometheus::statsd_exporter","module_name":"prometheus"}],"config_groups":[{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[{"id":33,"name":"prometheus::redis_exporter","module_name":"prometheus"},{"id":38,"name":"prometheus::statsd_exporter","module_name":"prometheus"}],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test
- Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test
+ host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2021-11-15
+ 08:33:49 UTC","updated_at":"2021-11-15 08:33:49 UTC","id":17,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2021-11-15
+ 08:33:49 UTC","updated_at":"2021-11-15 08:33:49 UTC","id":18,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[{"id":39,"name":"prometheus::redis_exporter","module_name":"prometheus"},{"id":46,"name":"prometheus::statsd_exporter","module_name":"prometheus"}],"config_groups":[{"created_at":"2021-11-15
+ 08:31:39 UTC","updated_at":"2021-11-15 08:31:39 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2021-11-15
+ 08:31:40 UTC","updated_at":"2021-11-15 08:31:40 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[{"id":39,"name":"prometheus::redis_exporter","module_name":"prometheus"},{"id":46,"name":"prometheus::statsd_exporter","module_name":"prometheus"}],"locations":[{"id":11,"name":"Bar","title":"Bar","description":null},{"id":9,"name":"Foo","title":"Foo","description":null},{"id":10,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":12,"name":"Test
+ Org1","title":"Test Org1","description":"A test organization"},{"id":13,"name":"Test
Org2","title":"Test Org2","description":"A test organization"}]}'
headers:
Cache-Control:
@@ -181,7 +165,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -199,7 +183,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '3031'
+ - '3028'
status:
code: 200
message: OK
@@ -218,13 +202,11 @@ interactions:
uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\
- \ 07:56:40 UTC\",\"updated_at\":\"2020-09-03 07:56:40 UTC\",\"id\":51,\"name\"\
- :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\
- }]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:35 UTC\",\"updated_at\":\"2021-11-15 08:24:35 UTC\",\"id\":12,\"name\":\"Test
+ Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -243,7 +225,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=97
Strict-Transport-Security:
@@ -280,13 +262,11 @@ interactions:
uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\
- \ 07:56:41 UTC\",\"updated_at\":\"2020-09-03 07:56:41 UTC\",\"id\":52,\"name\"\
- :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\
- }]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:35 UTC\",\"updated_at\":\"2021-11-15 08:24:35 UTC\",\"id\":13,\"name\":\"Test
+ Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -305,7 +285,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=96
Strict-Transport-Security:
@@ -342,12 +322,10 @@ interactions:
uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\
- by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\
- parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:16\
- \ UTC\",\"updated_at\":\"2020-09-03 07:50:16 UTC\",\"id\":46,\"name\":\"Foo\"\
- ,\"title\":\"Foo\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:32 UTC\",\"updated_at\":\"2021-11-15 08:24:32 UTC\",\"id\":9,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -366,7 +344,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=95
Strict-Transport-Security:
@@ -384,7 +362,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '355'
+ - '354'
status:
code: 200
message: OK
@@ -403,12 +381,10 @@ interactions:
uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :\"46\",\"parent_id\":46,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\
- \ 07:50:17 UTC\",\"updated_at\":\"2020-09-03 07:50:17 UTC\",\"id\":47,\"name\"\
- :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"9\",\"parent_id\":9,\"parent_name\":\"Foo\",\"created_at\":\"2021-11-15
+ 08:24:33 UTC\",\"updated_at\":\"2021-11-15 08:24:33 UTC\",\"id\":10,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -427,7 +403,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=94
Strict-Transport-Security:
@@ -445,7 +421,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '362'
+ - '360'
status:
code: 200
message: OK
@@ -464,12 +440,10 @@ interactions:
uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\
- by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\
- parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:18\
- \ UTC\",\"updated_at\":\"2020-09-03 07:50:18 UTC\",\"id\":48,\"name\":\"Bar\"\
- ,\"title\":\"Bar\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:34 UTC\",\"updated_at\":\"2021-11-15 08:24:34 UTC\",\"id\":11,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -488,7 +462,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=93
Strict-Transport-Security:
@@ -525,11 +499,10 @@ interactions:
uri: https://foreman.example.org/api/compute_profiles?search=name%3D%22myprofile%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"myprofile\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-09-03 07:54:30 UTC\",\"updated_at\":\"2020-09-03 07:54:30 UTC\",\"\
- id\":4,\"name\":\"myprofile\"}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"myprofile\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:31:39 UTC\",\"updated_at\":\"2021-11-15 08:31:39 UTC\",\"id\":4,\"name\":\"myprofile\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -548,7 +521,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=92
Strict-Transport-Security:
@@ -585,13 +558,10 @@ interactions:
uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\
- :null,\"created_at\":\"2020-09-03 07:50:22 UTC\",\"updated_at\":\"2020-09-03\
- \ 07:50:22 UTC\",\"id\":17,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- }}]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\":null,\"created_at\":\"2021-11-15
+ 08:27:23 UTC\",\"updated_at\":\"2021-11-15 08:27:23 UTC\",\"id\":2,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"}}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -610,7 +580,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=91
Strict-Transport-Security:
@@ -628,7 +598,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '441'
+ - '440'
status:
code: 200
message: OK
@@ -647,19 +617,11 @@ interactions:
uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\
- :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\
- ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\
- :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\
- \ 07:50:23 UTC\",\"updated_at\":\"2020-09-03 07:50:23 UTC\",\"ipam\":\"DHCP\"\
- ,\"boot_mode\":\"DHCP\",\"id\":35,\"name\":\"Test subnet4\",\"description\"\
- :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\
- :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\
- :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\
- template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\
- :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2021-11-15
+ 08:27:24 UTC\",\"updated_at\":\"2021-11-15 08:27:24 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"nic_delay\":null,\"id\":1,\"name\":\"Test
+ subnet4\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"bmc_id\":null,\"bmc_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"externalipam\":null,\"dns\":null,\"template\":null,\"bmc\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -678,7 +640,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=90
Strict-Transport-Security:
@@ -696,7 +658,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '870'
+ - '927'
status:
code: 200
message: OK
@@ -715,11 +677,10 @@ interactions:
uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-07-15 11:29:52 UTC\",\"updated_at\":\"2020-07-15 11:29:52 UTC\",\"\
- name\":\"x86_64\",\"id\":1}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:14:58 UTC\",\"updated_at\":\"2021-11-15 08:14:58 UTC\",\"name\":\"x86_64\",\"id\":1}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -738,7 +699,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=89
Strict-Transport-Security:
@@ -775,13 +736,11 @@ interactions:
uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\
- :null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\"\
- :\"reverse whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-09-03\
- \ 07:50:25 UTC\",\"updated_at\":\"2020-09-03 07:50:25 UTC\",\"id\":2,\"name\"\
- :\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\":\"reverse
+ whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2021-11-15 08:27:25 UTC\",\"updated_at\":\"2021-11-15
+ 08:27:25 UTC\",\"id\":2,\"name\":\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -800,7 +759,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=88
Strict-Transport-Security:
@@ -837,12 +796,11 @@ interactions:
uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 12,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\":\
- \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\"\
- :\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\"\
- :\"2020-09-03 07:50:26 UTC\",\"updated_at\":\"2020-09-03 07:50:26 UTC\",\"\
- id\":12,\"name\":\"TestOS Mirror\"}]\n}\n"
+ string: "{\n \"total\": 13,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\":\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\":\"2021-11-15
+ 08:27:25 UTC\",\"updated_at\":\"2021-11-15 08:27:25 UTC\",\"id\":13,\"name\":\"TestOS
+ Mirror\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -861,7 +819,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=87
Strict-Transport-Security:
@@ -898,12 +856,11 @@ interactions:
uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 19,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\
- :null,\"os_family\":\"Redhat\",\"created_at\":\"2020-09-03 07:50:24 UTC\"\
- ,\"updated_at\":\"2020-09-03 07:50:24 UTC\",\"name\":\"Part table\",\"id\"\
- :127}]\n}\n"
+ string: "{\n \"total\": 20,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"os_family\":\"Redhat\",\"created_at\":\"2021-11-15
+ 08:27:24 UTC\",\"updated_at\":\"2021-11-15 08:27:24 UTC\",\"name\":\"Part
+ table\",\"id\":133}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -922,7 +879,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=86
Strict-Transport-Security:
@@ -959,11 +916,10 @@ interactions:
uri: https://foreman.example.org/api/environments?search=name%3D%22production%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"production\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-07-15 11:32:08 UTC\",\"updated_at\":\"2020-07-15 11:32:08 UTC\",\"\
- name\":\"production\",\"id\":1}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"production\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:16:43 UTC\",\"updated_at\":\"2021-11-15 08:16:43 UTC\",\"name\":\"production\",\"id\":1}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -982,7 +938,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=85
Strict-Transport-Security:
@@ -1019,11 +975,10 @@ interactions:
uri: https://foreman.example.org/api/config_groups?search=name%3D%22cfg_group1%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"cfg_group1\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-09-03 07:54:31 UTC\",\"updated_at\":\"2020-09-03 07:54:31 UTC\",\"\
- id\":1,\"name\":\"cfg_group1\",\"puppetclasses\":[]}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"cfg_group1\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:31:39 UTC\",\"updated_at\":\"2021-11-15 08:31:39 UTC\",\"id\":1,\"name\":\"cfg_group1\",\"puppetclasses\":[]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1042,7 +997,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=84
Strict-Transport-Security:
@@ -1079,11 +1034,10 @@ interactions:
uri: https://foreman.example.org/api/config_groups?search=name%3D%22cfg_group2%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"cfg_group2\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-09-03 07:54:31 UTC\",\"updated_at\":\"2020-09-03 07:54:31 UTC\",\"\
- id\":2,\"name\":\"cfg_group2\",\"puppetclasses\":[]}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"cfg_group2\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:31:40 UTC\",\"updated_at\":\"2021-11-15 08:31:40 UTC\",\"id\":2,\"name\":\"cfg_group2\",\"puppetclasses\":[]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1102,7 +1056,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=83
Strict-Transport-Security:
@@ -1136,20 +1090,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296
+ uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-5.tanso.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\
- \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\
- :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\
- name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\
- id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\
- :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\
- ,\"id\":3}]}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-5.tanso.example.com\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"created_at\":\"2021-11-15 08:16:36 UTC\",\"updated_at\":\"2021-11-15 08:16:36
+ UTC\",\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Puppet
+ CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"Registration\",\"id\":13},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3}]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1168,7 +1117,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=82
Strict-Transport-Security:
@@ -1186,7 +1135,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '666'
+ - '629'
status:
code: 200
message: OK
@@ -1202,20 +1151,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296
+ uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-5.tanso.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\
- \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\
- :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\
- name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\
- id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\
- :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\
- ,\"id\":3}]}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-5.tanso.example.com\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"created_at\":\"2021-11-15 08:16:36 UTC\",\"updated_at\":\"2021-11-15 08:16:36
+ UTC\",\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Puppet
+ CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"Registration\",\"id\":13},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3}]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1234,7 +1178,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=81
Strict-Transport-Security:
@@ -1252,7 +1196,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '666'
+ - '629'
status:
code: 200
message: OK
@@ -1271,12 +1215,10 @@ interactions:
uri: https://foreman.example.org/api/environments/1/puppetclasses?search=name%3D%22prometheus%3A%3Astatsd_exporter%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 50,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"prometheus::statsd_exporter\\\"\"\
- ,\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : {\"prometheus\":[{\"id\":38,\"name\":\"prometheus::statsd_exporter\",\"\
- created_at\":\"2020-09-03T07:55:19.962Z\",\"updated_at\":\"2020-09-03T07:55:19.962Z\"\
- }]}\n}\n"
+ string: "{\n \"total\": 59,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"prometheus::statsd_exporter\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ {\"prometheus\":[{\"id\":46,\"name\":\"prometheus::statsd_exporter\",\"created_at\":\"2021-11-15T08:22:49.908Z\",\"updated_at\":\"2021-11-15T08:22:49.908Z\"}]}\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1295,7 +1237,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=80
Strict-Transport-Security:
@@ -1331,7 +1273,7 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: DELETE
- uri: https://foreman.example.org/api/hostgroups/3/puppetclass_ids/33
+ uri: https://foreman.example.org/api/hostgroups/9/puppetclass_ids/39
response:
body:
string: '[]'
@@ -1353,7 +1295,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=79
Strict-Transport-Security:
diff --git a/tests/test_playbooks/fixtures/hostgroup-5.yml b/tests/test_playbooks/fixtures/hostgroup-5.yml
index b755dc3e..5828fc19 100644
--- a/tests/test_playbooks/fixtures/hostgroup-5.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-5.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,32 +70,16 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group+with+puppet+classes%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group with puppet classes\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"subnet_id\":35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\
- :2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":17,\"domain_name\"\
- :\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\"\
- ,\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":127,\"ptable_name\"\
- :\"Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\"\
- :\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\"\
- :1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\"\
- :\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-09-03\
- \ 07:54:34 UTC\",\"updated_at\":\"2020-09-03 07:54:34 UTC\",\"id\":3,\"name\"\
- :\"New host group with puppet classes\",\"title\":\"New host group with puppet\
- \ classes\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\"\
- :\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\"\
- :\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"inherited_compute_profile_id\"\
- :null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\"\
- :null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\"\
- :null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\"\
- :null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\"\
- :null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\"\
- :null}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group with puppet classes\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"subnet_id\":1,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS
+ 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":133,\"ptable_name\":\"Part
+ table\",\"medium_id\":13,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2
+ UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:49 UTC\",\"updated_at\":\"2021-11-15 08:33:49 UTC\",\"id\":9,\"name\":\"New
+ host group with puppet classes\",\"title\":\"New host group with puppet classes\",\"description\":\"New
+ host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -114,7 +98,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -132,7 +116,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1876'
+ - '1874'
status:
code: 200
message: OK
@@ -148,20 +132,20 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/hostgroups/3
+ uri: https://foreman.example.org/api/hostgroups/9
response:
body:
- string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
- 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part
- table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:54:34 UTC","updated_at":"2020-09-03 07:54:34 UTC","id":3,"name":"New host
+ string: '{"subnet_id":1,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
+ 7.6","domain_id":2,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":133,"ptable_name":"Part
+ table","medium_id":13,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2021-11-15
+ 08:33:49 UTC","updated_at":"2021-11-15 08:33:49 UTC","id":9,"name":"New host
group with puppet classes","title":"New host group with puppet classes","description":"New
- host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03
- 07:54:35 UTC","updated_at":"2020-09-03 07:54:35 UTC","id":55,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2020-09-03
- 07:54:35 UTC","updated_at":"2020-09-03 07:54:35 UTC","id":56,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[{"id":38,"name":"prometheus::statsd_exporter","module_name":"prometheus"}],"config_groups":[{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[{"id":38,"name":"prometheus::statsd_exporter","module_name":"prometheus"}],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test
- Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test
+ host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2021-11-15
+ 08:33:49 UTC","updated_at":"2021-11-15 08:33:49 UTC","id":17,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2021-11-15
+ 08:33:49 UTC","updated_at":"2021-11-15 08:33:49 UTC","id":18,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[{"id":46,"name":"prometheus::statsd_exporter","module_name":"prometheus"}],"config_groups":[{"created_at":"2021-11-15
+ 08:31:39 UTC","updated_at":"2021-11-15 08:31:39 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2021-11-15
+ 08:31:40 UTC","updated_at":"2021-11-15 08:31:40 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[{"id":46,"name":"prometheus::statsd_exporter","module_name":"prometheus"}],"locations":[{"id":11,"name":"Bar","title":"Bar","description":null},{"id":9,"name":"Foo","title":"Foo","description":null},{"id":10,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":12,"name":"Test
+ Org1","title":"Test Org1","description":"A test organization"},{"id":13,"name":"Test
Org2","title":"Test Org2","description":"A test organization"}]}'
headers:
Cache-Control:
@@ -181,7 +165,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -199,7 +183,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '2885'
+ - '2882'
status:
code: 200
message: OK
@@ -218,13 +202,11 @@ interactions:
uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\
- \ 07:56:40 UTC\",\"updated_at\":\"2020-09-03 07:56:40 UTC\",\"id\":51,\"name\"\
- :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\
- }]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:35 UTC\",\"updated_at\":\"2021-11-15 08:24:35 UTC\",\"id\":12,\"name\":\"Test
+ Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -243,7 +225,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=97
Strict-Transport-Security:
@@ -280,13 +262,11 @@ interactions:
uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\
- \ 07:56:41 UTC\",\"updated_at\":\"2020-09-03 07:56:41 UTC\",\"id\":52,\"name\"\
- :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\
- }]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:35 UTC\",\"updated_at\":\"2021-11-15 08:24:35 UTC\",\"id\":13,\"name\":\"Test
+ Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -305,7 +285,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=96
Strict-Transport-Security:
@@ -342,12 +322,10 @@ interactions:
uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\
- by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\
- parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:16\
- \ UTC\",\"updated_at\":\"2020-09-03 07:50:16 UTC\",\"id\":46,\"name\":\"Foo\"\
- ,\"title\":\"Foo\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:32 UTC\",\"updated_at\":\"2021-11-15 08:24:32 UTC\",\"id\":9,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -366,7 +344,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=95
Strict-Transport-Security:
@@ -384,7 +362,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '355'
+ - '354'
status:
code: 200
message: OK
@@ -403,12 +381,10 @@ interactions:
uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :\"46\",\"parent_id\":46,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\
- \ 07:50:17 UTC\",\"updated_at\":\"2020-09-03 07:50:17 UTC\",\"id\":47,\"name\"\
- :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"9\",\"parent_id\":9,\"parent_name\":\"Foo\",\"created_at\":\"2021-11-15
+ 08:24:33 UTC\",\"updated_at\":\"2021-11-15 08:24:33 UTC\",\"id\":10,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -427,7 +403,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=94
Strict-Transport-Security:
@@ -445,7 +421,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '362'
+ - '360'
status:
code: 200
message: OK
@@ -464,12 +440,10 @@ interactions:
uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\
- by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\
- parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:18\
- \ UTC\",\"updated_at\":\"2020-09-03 07:50:18 UTC\",\"id\":48,\"name\":\"Bar\"\
- ,\"title\":\"Bar\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:34 UTC\",\"updated_at\":\"2021-11-15 08:24:34 UTC\",\"id\":11,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -488,7 +462,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=93
Strict-Transport-Security:
@@ -525,11 +499,10 @@ interactions:
uri: https://foreman.example.org/api/compute_profiles?search=name%3D%22myprofile%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"myprofile\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-09-03 07:54:30 UTC\",\"updated_at\":\"2020-09-03 07:54:30 UTC\",\"\
- id\":4,\"name\":\"myprofile\"}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"myprofile\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:31:39 UTC\",\"updated_at\":\"2021-11-15 08:31:39 UTC\",\"id\":4,\"name\":\"myprofile\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -548,7 +521,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=92
Strict-Transport-Security:
@@ -585,13 +558,10 @@ interactions:
uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\
- :null,\"created_at\":\"2020-09-03 07:50:22 UTC\",\"updated_at\":\"2020-09-03\
- \ 07:50:22 UTC\",\"id\":17,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- }}]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\":null,\"created_at\":\"2021-11-15
+ 08:27:23 UTC\",\"updated_at\":\"2021-11-15 08:27:23 UTC\",\"id\":2,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"}}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -610,7 +580,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=91
Strict-Transport-Security:
@@ -628,7 +598,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '441'
+ - '440'
status:
code: 200
message: OK
@@ -647,19 +617,11 @@ interactions:
uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\
- :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\
- ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\
- :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\
- \ 07:50:23 UTC\",\"updated_at\":\"2020-09-03 07:50:23 UTC\",\"ipam\":\"DHCP\"\
- ,\"boot_mode\":\"DHCP\",\"id\":35,\"name\":\"Test subnet4\",\"description\"\
- :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\
- :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\
- :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\
- template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\
- :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2021-11-15
+ 08:27:24 UTC\",\"updated_at\":\"2021-11-15 08:27:24 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"nic_delay\":null,\"id\":1,\"name\":\"Test
+ subnet4\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"bmc_id\":null,\"bmc_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"externalipam\":null,\"dns\":null,\"template\":null,\"bmc\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -678,7 +640,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=90
Strict-Transport-Security:
@@ -696,7 +658,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '870'
+ - '927'
status:
code: 200
message: OK
@@ -715,11 +677,10 @@ interactions:
uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-07-15 11:29:52 UTC\",\"updated_at\":\"2020-07-15 11:29:52 UTC\",\"\
- name\":\"x86_64\",\"id\":1}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:14:58 UTC\",\"updated_at\":\"2021-11-15 08:14:58 UTC\",\"name\":\"x86_64\",\"id\":1}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -738,7 +699,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=89
Strict-Transport-Security:
@@ -775,13 +736,11 @@ interactions:
uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\
- :null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\"\
- :\"reverse whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-09-03\
- \ 07:50:25 UTC\",\"updated_at\":\"2020-09-03 07:50:25 UTC\",\"id\":2,\"name\"\
- :\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\":\"reverse
+ whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2021-11-15 08:27:25 UTC\",\"updated_at\":\"2021-11-15
+ 08:27:25 UTC\",\"id\":2,\"name\":\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -800,7 +759,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=88
Strict-Transport-Security:
@@ -837,12 +796,11 @@ interactions:
uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 12,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\":\
- \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\"\
- :\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\"\
- :\"2020-09-03 07:50:26 UTC\",\"updated_at\":\"2020-09-03 07:50:26 UTC\",\"\
- id\":12,\"name\":\"TestOS Mirror\"}]\n}\n"
+ string: "{\n \"total\": 13,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\":\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\":\"2021-11-15
+ 08:27:25 UTC\",\"updated_at\":\"2021-11-15 08:27:25 UTC\",\"id\":13,\"name\":\"TestOS
+ Mirror\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -861,7 +819,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=87
Strict-Transport-Security:
@@ -898,12 +856,11 @@ interactions:
uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 19,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\
- :null,\"os_family\":\"Redhat\",\"created_at\":\"2020-09-03 07:50:24 UTC\"\
- ,\"updated_at\":\"2020-09-03 07:50:24 UTC\",\"name\":\"Part table\",\"id\"\
- :127}]\n}\n"
+ string: "{\n \"total\": 20,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"os_family\":\"Redhat\",\"created_at\":\"2021-11-15
+ 08:27:24 UTC\",\"updated_at\":\"2021-11-15 08:27:24 UTC\",\"name\":\"Part
+ table\",\"id\":133}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -922,7 +879,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=86
Strict-Transport-Security:
@@ -959,11 +916,10 @@ interactions:
uri: https://foreman.example.org/api/environments?search=name%3D%22production%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"production\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-07-15 11:32:08 UTC\",\"updated_at\":\"2020-07-15 11:32:08 UTC\",\"\
- name\":\"production\",\"id\":1}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"production\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:16:43 UTC\",\"updated_at\":\"2021-11-15 08:16:43 UTC\",\"name\":\"production\",\"id\":1}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -982,7 +938,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=85
Strict-Transport-Security:
@@ -1019,11 +975,10 @@ interactions:
uri: https://foreman.example.org/api/config_groups?search=name%3D%22cfg_group1%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"cfg_group1\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-09-03 07:54:31 UTC\",\"updated_at\":\"2020-09-03 07:54:31 UTC\",\"\
- id\":1,\"name\":\"cfg_group1\",\"puppetclasses\":[]}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"cfg_group1\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:31:39 UTC\",\"updated_at\":\"2021-11-15 08:31:39 UTC\",\"id\":1,\"name\":\"cfg_group1\",\"puppetclasses\":[]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1042,7 +997,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=84
Strict-Transport-Security:
@@ -1079,11 +1034,10 @@ interactions:
uri: https://foreman.example.org/api/config_groups?search=name%3D%22cfg_group2%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"cfg_group2\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-09-03 07:54:31 UTC\",\"updated_at\":\"2020-09-03 07:54:31 UTC\",\"\
- id\":2,\"name\":\"cfg_group2\",\"puppetclasses\":[]}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"cfg_group2\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:31:40 UTC\",\"updated_at\":\"2021-11-15 08:31:40 UTC\",\"id\":2,\"name\":\"cfg_group2\",\"puppetclasses\":[]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1102,7 +1056,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=83
Strict-Transport-Security:
@@ -1136,20 +1090,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296
+ uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-5.tanso.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\
- \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\
- :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\
- name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\
- id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\
- :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\
- ,\"id\":3}]}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-5.tanso.example.com\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"created_at\":\"2021-11-15 08:16:36 UTC\",\"updated_at\":\"2021-11-15 08:16:36
+ UTC\",\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Puppet
+ CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"Registration\",\"id\":13},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3}]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1168,7 +1117,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=82
Strict-Transport-Security:
@@ -1186,7 +1135,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '666'
+ - '629'
status:
code: 200
message: OK
@@ -1202,20 +1151,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296
+ uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-5.tanso.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\
- \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\
- :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\
- name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\
- id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\
- :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\
- ,\"id\":3}]}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-5.tanso.example.com\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"created_at\":\"2021-11-15 08:16:36 UTC\",\"updated_at\":\"2021-11-15 08:16:36
+ UTC\",\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Puppet
+ CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"Registration\",\"id\":13},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3}]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1234,7 +1178,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=81
Strict-Transport-Security:
@@ -1252,7 +1196,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '666'
+ - '629'
status:
code: 200
message: OK
@@ -1271,12 +1215,10 @@ interactions:
uri: https://foreman.example.org/api/environments/1/puppetclasses?search=name%3D%22prometheus%3A%3Astatsd_exporter%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 50,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"prometheus::statsd_exporter\\\"\"\
- ,\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : {\"prometheus\":[{\"id\":38,\"name\":\"prometheus::statsd_exporter\",\"\
- created_at\":\"2020-09-03T07:55:19.962Z\",\"updated_at\":\"2020-09-03T07:55:19.962Z\"\
- }]}\n}\n"
+ string: "{\n \"total\": 59,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"prometheus::statsd_exporter\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ {\"prometheus\":[{\"id\":46,\"name\":\"prometheus::statsd_exporter\",\"created_at\":\"2021-11-15T08:22:49.908Z\",\"updated_at\":\"2021-11-15T08:22:49.908Z\"}]}\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1295,7 +1237,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=80
Strict-Transport-Security:
diff --git a/tests/test_playbooks/fixtures/hostgroup-6.yml b/tests/test_playbooks/fixtures/hostgroup-6.yml
index bde314fc..6b5c4237 100644
--- a/tests/test_playbooks/fixtures/hostgroup-6.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-6.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,32 +70,16 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group+with+puppet+classes%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group with puppet classes\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"subnet_id\":35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\
- :2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":17,\"domain_name\"\
- :\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\"\
- ,\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":127,\"ptable_name\"\
- :\"Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\"\
- :\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\"\
- :1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\"\
- :\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2020-09-03\
- \ 07:54:34 UTC\",\"updated_at\":\"2020-09-03 07:54:34 UTC\",\"id\":3,\"name\"\
- :\"New host group with puppet classes\",\"title\":\"New host group with puppet\
- \ classes\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\"\
- :\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\"\
- :\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"inherited_compute_profile_id\"\
- :null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\"\
- :null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\"\
- :null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\"\
- :null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\"\
- :null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\"\
- :null}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group with puppet classes\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"subnet_id\":1,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS
+ 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":133,\"ptable_name\":\"Part
+ table\",\"medium_id\":13,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2
+ UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:49 UTC\",\"updated_at\":\"2021-11-15 08:33:49 UTC\",\"id\":9,\"name\":\"New
+ host group with puppet classes\",\"title\":\"New host group with puppet classes\",\"description\":\"New
+ host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -114,7 +98,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -132,7 +116,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1876'
+ - '1874'
status:
code: 200
message: OK
@@ -150,10 +134,10 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: DELETE
- uri: https://foreman.example.org/api/hostgroups/3
+ uri: https://foreman.example.org/api/hostgroups/9
response:
body:
- string: '{"id":3,"name":"New host group with puppet classes","created_at":"2020-09-03T07:54:34.970Z","updated_at":"2020-09-03T07:54:34.970Z","environment_id":1,"operatingsystem_id":2,"architecture_id":1,"medium_id":12,"ptable_id":127,"root_pass":null,"puppet_ca_proxy_id":1,"use_image":null,"image_file":"","ancestry":null,"vm_defaults":null,"subnet_id":35,"domain_id":17,"puppet_proxy_id":1,"title":"New
+ string: '{"id":9,"name":"New host group with puppet classes","created_at":"2021-11-15T08:33:49.441Z","updated_at":"2021-11-15T08:33:49.441Z","environment_id":1,"operatingsystem_id":2,"architecture_id":1,"medium_id":13,"ptable_id":133,"root_pass":null,"puppet_ca_proxy_id":1,"use_image":null,"image_file":"","ancestry":null,"vm_defaults":null,"subnet_id":1,"domain_id":2,"puppet_proxy_id":1,"title":"New
host group with puppet classes","realm_id":null,"compute_profile_id":4,"grub_pass":"","lookup_value_matcher":"hostgroup=New
host group with puppet classes","subnet6_id":null,"pxe_loader":"Grub2 UEFI","description":"New
host group","compute_resource_id":1}'
@@ -175,7 +159,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -193,7 +177,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '651'
+ - '649'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/hostgroup-7.yml b/tests/test_playbooks/fixtures/hostgroup-7.yml
index bd29adad..ce7b2a4f 100644
--- a/tests/test_playbooks/fixtures/hostgroup-7.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-7.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,31 +70,14 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\
- :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\
- :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\
- :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\
- :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\
- ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\
- :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\
- :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\
- architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\
- realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\
- :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\
- :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\
- :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\
- :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
- :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\
- :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":1,\"subnet_name\":\"Test
+ subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":133,\"ptable_name\":\"Part
+ table\",\"medium_id\":13,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2
+ UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:48 UTC\",\"updated_at\":\"2021-11-15 08:33:48 UTC\",\"id\":8,\"name\":\"New
+ host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -113,7 +96,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -131,7 +114,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1816'
+ - '1814'
status:
code: 200
message: OK
@@ -147,19 +130,19 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/hostgroups/2
+ uri: https://foreman.example.org/api/hostgroups/8
response:
body:
- string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
- 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":127,"ptable_name":"Part
- table","medium_id":12,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":2,"name":"New host
- group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2020-09-03
- 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":53,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2020-09-03
- 07:54:33 UTC","updated_at":"2020-09-03 07:54:33 UTC","id":54,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2020-09-03
- 07:54:31 UTC","updated_at":"2020-09-03 07:54:31 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test
- Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test
+ string: '{"subnet_id":1,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
+ 7.6","domain_id":2,"domain_name":"foo.example.com","environment_id":1,"environment_name":"production","compute_profile_id":4,"compute_profile_name":"myprofile","ancestry":null,"parent_id":null,"parent_name":null,"ptable_id":133,"ptable_name":"Part
+ table","medium_id":13,"medium_name":"TestOS Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":1,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2021-11-15
+ 08:33:48 UTC","updated_at":"2021-11-15 08:33:48 UTC","id":8,"name":"New host
+ group","title":"New host group","description":"New host group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"inherited_compute_profile_id":null,"inherited_environment_id":null,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":null,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[{"priority":60,"created_at":"2021-11-15
+ 08:33:48 UTC","updated_at":"2021-11-15 08:33:48 UTC","id":15,"name":"subnet_param1","parameter_type":"string","value":"value1"},{"priority":60,"created_at":"2021-11-15
+ 08:33:48 UTC","updated_at":"2021-11-15 08:33:48 UTC","id":16,"name":"subnet_param2","parameter_type":"string","value":"value2"}],"template_combinations":[],"puppetclasses":[],"config_groups":[{"created_at":"2021-11-15
+ 08:31:39 UTC","updated_at":"2021-11-15 08:31:39 UTC","id":1,"name":"cfg_group1","puppetclasses":[]},{"created_at":"2021-11-15
+ 08:31:40 UTC","updated_at":"2021-11-15 08:31:40 UTC","id":2,"name":"cfg_group2","puppetclasses":[]}],"all_puppetclasses":[],"locations":[{"id":11,"name":"Bar","title":"Bar","description":null},{"id":9,"name":"Foo","title":"Foo","description":null},{"id":10,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":12,"name":"Test
+ Org1","title":"Test Org1","description":"A test organization"},{"id":13,"name":"Test
Org2","title":"Test Org2","description":"A test organization"}]}'
headers:
Cache-Control:
@@ -179,7 +162,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -197,7 +180,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '2699'
+ - '2696'
status:
code: 200
message: OK
@@ -216,13 +199,11 @@ interactions:
uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\
- \ 07:56:40 UTC\",\"updated_at\":\"2020-09-03 07:56:40 UTC\",\"id\":51,\"name\"\
- :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\
- }]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:35 UTC\",\"updated_at\":\"2021-11-15 08:24:35 UTC\",\"id\":12,\"name\":\"Test
+ Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -241,7 +222,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=97
Strict-Transport-Security:
@@ -278,13 +259,11 @@ interactions:
uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\
- \ 07:56:41 UTC\",\"updated_at\":\"2020-09-03 07:56:41 UTC\",\"id\":52,\"name\"\
- :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\
- }]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:35 UTC\",\"updated_at\":\"2021-11-15 08:24:35 UTC\",\"id\":13,\"name\":\"Test
+ Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -303,7 +282,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=96
Strict-Transport-Security:
@@ -340,12 +319,10 @@ interactions:
uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\
- by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\
- parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:16\
- \ UTC\",\"updated_at\":\"2020-09-03 07:50:16 UTC\",\"id\":46,\"name\":\"Foo\"\
- ,\"title\":\"Foo\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:32 UTC\",\"updated_at\":\"2021-11-15 08:24:32 UTC\",\"id\":9,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -364,7 +341,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=95
Strict-Transport-Security:
@@ -382,7 +359,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '355'
+ - '354'
status:
code: 200
message: OK
@@ -401,12 +378,10 @@ interactions:
uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :\"46\",\"parent_id\":46,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\
- \ 07:50:17 UTC\",\"updated_at\":\"2020-09-03 07:50:17 UTC\",\"id\":47,\"name\"\
- :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"9\",\"parent_id\":9,\"parent_name\":\"Foo\",\"created_at\":\"2021-11-15
+ 08:24:33 UTC\",\"updated_at\":\"2021-11-15 08:24:33 UTC\",\"id\":10,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -425,7 +400,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=94
Strict-Transport-Security:
@@ -443,7 +418,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '362'
+ - '360'
status:
code: 200
message: OK
@@ -462,12 +437,10 @@ interactions:
uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\
- by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\
- parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:18\
- \ UTC\",\"updated_at\":\"2020-09-03 07:50:18 UTC\",\"id\":48,\"name\":\"Bar\"\
- ,\"title\":\"Bar\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:34 UTC\",\"updated_at\":\"2021-11-15 08:24:34 UTC\",\"id\":11,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -486,7 +459,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=93
Strict-Transport-Security:
@@ -523,11 +496,10 @@ interactions:
uri: https://foreman.example.org/api/compute_profiles?search=name%3D%22myprofile%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"myprofile\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-09-03 07:54:30 UTC\",\"updated_at\":\"2020-09-03 07:54:30 UTC\",\"\
- id\":4,\"name\":\"myprofile\"}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"myprofile\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:31:39 UTC\",\"updated_at\":\"2021-11-15 08:31:39 UTC\",\"id\":4,\"name\":\"myprofile\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -546,7 +518,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=92
Strict-Transport-Security:
@@ -583,13 +555,10 @@ interactions:
uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\
- :null,\"created_at\":\"2020-09-03 07:50:22 UTC\",\"updated_at\":\"2020-09-03\
- \ 07:50:22 UTC\",\"id\":17,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- }}]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\":null,\"created_at\":\"2021-11-15
+ 08:27:23 UTC\",\"updated_at\":\"2021-11-15 08:27:23 UTC\",\"id\":2,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"}}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -608,7 +577,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=91
Strict-Transport-Security:
@@ -626,7 +595,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '441'
+ - '440'
status:
code: 200
message: OK
@@ -645,19 +614,11 @@ interactions:
uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\
- :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\
- ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\
- :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\
- \ 07:50:23 UTC\",\"updated_at\":\"2020-09-03 07:50:23 UTC\",\"ipam\":\"DHCP\"\
- ,\"boot_mode\":\"DHCP\",\"id\":35,\"name\":\"Test subnet4\",\"description\"\
- :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\
- :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\
- :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\
- template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\
- :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2021-11-15
+ 08:27:24 UTC\",\"updated_at\":\"2021-11-15 08:27:24 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"nic_delay\":null,\"id\":1,\"name\":\"Test
+ subnet4\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"bmc_id\":null,\"bmc_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"externalipam\":null,\"dns\":null,\"template\":null,\"bmc\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -676,7 +637,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=90
Strict-Transport-Security:
@@ -694,7 +655,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '870'
+ - '927'
status:
code: 200
message: OK
@@ -713,11 +674,10 @@ interactions:
uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-07-15 11:29:52 UTC\",\"updated_at\":\"2020-07-15 11:29:52 UTC\",\"\
- name\":\"x86_64\",\"id\":1}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:14:58 UTC\",\"updated_at\":\"2021-11-15 08:14:58 UTC\",\"name\":\"x86_64\",\"id\":1}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -736,7 +696,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=89
Strict-Transport-Security:
@@ -773,13 +733,11 @@ interactions:
uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\
- :null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\"\
- :\"reverse whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-09-03\
- \ 07:50:25 UTC\",\"updated_at\":\"2020-09-03 07:50:25 UTC\",\"id\":2,\"name\"\
- :\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\":\"reverse
+ whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2021-11-15 08:27:25 UTC\",\"updated_at\":\"2021-11-15
+ 08:27:25 UTC\",\"id\":2,\"name\":\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -798,7 +756,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=88
Strict-Transport-Security:
@@ -835,12 +793,11 @@ interactions:
uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 12,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\":\
- \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\"\
- :\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\"\
- :\"2020-09-03 07:50:26 UTC\",\"updated_at\":\"2020-09-03 07:50:26 UTC\",\"\
- id\":12,\"name\":\"TestOS Mirror\"}]\n}\n"
+ string: "{\n \"total\": 13,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\":\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\":\"2021-11-15
+ 08:27:25 UTC\",\"updated_at\":\"2021-11-15 08:27:25 UTC\",\"id\":13,\"name\":\"TestOS
+ Mirror\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -859,7 +816,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=87
Strict-Transport-Security:
@@ -896,12 +853,11 @@ interactions:
uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 19,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\
- :null,\"os_family\":\"Redhat\",\"created_at\":\"2020-09-03 07:50:24 UTC\"\
- ,\"updated_at\":\"2020-09-03 07:50:24 UTC\",\"name\":\"Part table\",\"id\"\
- :127}]\n}\n"
+ string: "{\n \"total\": 20,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"os_family\":\"Redhat\",\"created_at\":\"2021-11-15
+ 08:27:24 UTC\",\"updated_at\":\"2021-11-15 08:27:24 UTC\",\"name\":\"Part
+ table\",\"id\":133}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -920,7 +876,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=86
Strict-Transport-Security:
@@ -957,11 +913,10 @@ interactions:
uri: https://foreman.example.org/api/environments?search=name%3D%22production%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"production\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-07-15 11:32:08 UTC\",\"updated_at\":\"2020-07-15 11:32:08 UTC\",\"\
- name\":\"production\",\"id\":1}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"production\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:16:43 UTC\",\"updated_at\":\"2021-11-15 08:16:43 UTC\",\"name\":\"production\",\"id\":1}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -980,7 +935,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=85
Strict-Transport-Security:
@@ -1017,11 +972,10 @@ interactions:
uri: https://foreman.example.org/api/config_groups?search=name%3D%22cfg_group1%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"cfg_group1\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-09-03 07:54:31 UTC\",\"updated_at\":\"2020-09-03 07:54:31 UTC\",\"\
- id\":1,\"name\":\"cfg_group1\",\"puppetclasses\":[]}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"cfg_group1\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:31:39 UTC\",\"updated_at\":\"2021-11-15 08:31:39 UTC\",\"id\":1,\"name\":\"cfg_group1\",\"puppetclasses\":[]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1040,7 +994,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=84
Strict-Transport-Security:
@@ -1077,11 +1031,10 @@ interactions:
uri: https://foreman.example.org/api/config_groups?search=name%3D%22cfg_group2%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"cfg_group2\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-09-03 07:54:31 UTC\",\"updated_at\":\"2020-09-03 07:54:31 UTC\",\"\
- id\":2,\"name\":\"cfg_group2\",\"puppetclasses\":[]}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"cfg_group2\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:31:40 UTC\",\"updated_at\":\"2021-11-15 08:31:40 UTC\",\"id\":2,\"name\":\"cfg_group2\",\"puppetclasses\":[]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1100,7 +1053,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=83
Strict-Transport-Security:
@@ -1134,20 +1087,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296
+ uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-5.tanso.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\
- \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\
- :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\
- name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\
- id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\
- :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\
- ,\"id\":3}]}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-5.tanso.example.com\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"created_at\":\"2021-11-15 08:16:36 UTC\",\"updated_at\":\"2021-11-15 08:16:36
+ UTC\",\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Puppet
+ CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"Registration\",\"id\":13},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3}]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1166,7 +1114,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=82
Strict-Transport-Security:
@@ -1184,7 +1132,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '666'
+ - '629'
status:
code: 200
message: OK
@@ -1200,20 +1148,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296
+ uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-5.tanso.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\
- \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\
- :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\
- name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\
- id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\
- :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\
- ,\"id\":3}]}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-5.tanso.example.com\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"created_at\":\"2021-11-15 08:16:36 UTC\",\"updated_at\":\"2021-11-15 08:16:36
+ UTC\",\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Puppet
+ CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"Registration\",\"id\":13},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3}]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1232,7 +1175,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=81
Strict-Transport-Security:
@@ -1250,7 +1193,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '666'
+ - '629'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/hostgroup-8.yml b/tests/test_playbooks/fixtures/hostgroup-8.yml
index 7bd7d880..4bf5575a 100644
--- a/tests/test_playbooks/fixtures/hostgroup-8.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-8.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,10 +70,10 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : []\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ []\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -92,7 +92,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -126,16 +126,17 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296
+ uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\
- \ 07:56:40 UTC\",\"updated_at\":\"2020-09-03 07:56:40 UTC\",\"id\":51,\"name\"\
- :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\
- }]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":1,\"subnet_name\":\"Test
+ subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":133,\"ptable_name\":\"Part
+ table\",\"medium_id\":13,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2
+ UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:48 UTC\",\"updated_at\":\"2021-11-15 08:33:48 UTC\",\"id\":8,\"name\":\"New
+ host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -154,7 +155,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -172,7 +173,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '389'
+ - '1814'
status:
code: 200
message: OK
@@ -188,16 +189,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296
+ uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\
- \ 07:56:41 UTC\",\"updated_at\":\"2020-09-03 07:56:41 UTC\",\"id\":52,\"name\"\
- :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\
- }]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:35 UTC\",\"updated_at\":\"2021-11-15 08:24:35 UTC\",\"id\":12,\"name\":\"Test
+ Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -216,7 +215,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=97
Strict-Transport-Security:
@@ -250,15 +249,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296
+ uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\
- by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\
- parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:16\
- \ UTC\",\"updated_at\":\"2020-09-03 07:50:16 UTC\",\"id\":46,\"name\":\"Foo\"\
- ,\"title\":\"Foo\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:35 UTC\",\"updated_at\":\"2021-11-15 08:24:35 UTC\",\"id\":13,\"name\":\"Test
+ Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -277,7 +275,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=96
Strict-Transport-Security:
@@ -295,7 +293,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '355'
+ - '389'
status:
code: 200
message: OK
@@ -311,15 +309,13 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296
+ uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :\"46\",\"parent_id\":46,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\
- \ 07:50:17 UTC\",\"updated_at\":\"2020-09-03 07:50:17 UTC\",\"id\":47,\"name\"\
- :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:32 UTC\",\"updated_at\":\"2021-11-15 08:24:32 UTC\",\"id\":9,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -338,7 +334,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=95
Strict-Transport-Security:
@@ -356,7 +352,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '362'
+ - '354'
status:
code: 200
message: OK
@@ -372,15 +368,13 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296
+ uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\
- by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\
- parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:18\
- \ UTC\",\"updated_at\":\"2020-09-03 07:50:18 UTC\",\"id\":48,\"name\":\"Bar\"\
- ,\"title\":\"Bar\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"9\",\"parent_id\":9,\"parent_name\":\"Foo\",\"created_at\":\"2021-11-15
+ 08:24:33 UTC\",\"updated_at\":\"2021-11-15 08:24:33 UTC\",\"id\":10,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -399,7 +393,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=94
Strict-Transport-Security:
@@ -417,7 +411,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '355'
+ - '360'
status:
code: 200
message: OK
@@ -433,16 +427,13 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296
+ uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\
- :null,\"created_at\":\"2020-09-03 07:50:22 UTC\",\"updated_at\":\"2020-09-03\
- \ 07:50:22 UTC\",\"id\":17,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- }}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:34 UTC\",\"updated_at\":\"2021-11-15 08:24:34 UTC\",\"id\":11,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -461,7 +452,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=93
Strict-Transport-Security:
@@ -479,7 +470,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '441'
+ - '355'
status:
code: 200
message: OK
@@ -495,22 +486,13 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296
+ uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\
- :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\
- ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\
- :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\
- \ 07:50:23 UTC\",\"updated_at\":\"2020-09-03 07:50:23 UTC\",\"ipam\":\"DHCP\"\
- ,\"boot_mode\":\"DHCP\",\"id\":35,\"name\":\"Test subnet4\",\"description\"\
- :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\
- :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\
- :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\
- template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\
- :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\":null,\"created_at\":\"2021-11-15
+ 08:27:23 UTC\",\"updated_at\":\"2021-11-15 08:27:23 UTC\",\"id\":2,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"}}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -529,7 +511,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=92
Strict-Transport-Security:
@@ -547,7 +529,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '870'
+ - '440'
status:
code: 200
message: OK
@@ -563,14 +545,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296
+ uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-07-15 11:29:52 UTC\",\"updated_at\":\"2020-07-15 11:29:52 UTC\",\"\
- name\":\"x86_64\",\"id\":1}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2021-11-15
+ 08:27:24 UTC\",\"updated_at\":\"2021-11-15 08:27:24 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"nic_delay\":null,\"id\":1,\"name\":\"Test
+ subnet4\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"bmc_id\":null,\"bmc_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"externalipam\":null,\"dns\":null,\"template\":null,\"bmc\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -589,7 +571,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=91
Strict-Transport-Security:
@@ -607,7 +589,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '274'
+ - '927'
status:
code: 200
message: OK
@@ -623,16 +605,13 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296
+ uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\
- :null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\"\
- :\"reverse whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-09-03\
- \ 07:50:25 UTC\",\"updated_at\":\"2020-09-03 07:50:25 UTC\",\"id\":2,\"name\"\
- :\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:14:58 UTC\",\"updated_at\":\"2021-11-15 08:14:58 UTC\",\"name\":\"x86_64\",\"id\":1}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -651,7 +630,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=90
Strict-Transport-Security:
@@ -669,7 +648,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '416'
+ - '274'
status:
code: 200
message: OK
@@ -685,15 +664,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296
+ uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 12,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\":\
- \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\"\
- :\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\"\
- :\"2020-09-03 07:50:26 UTC\",\"updated_at\":\"2020-09-03 07:50:26 UTC\",\"\
- id\":12,\"name\":\"TestOS Mirror\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\":\"reverse
+ whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2021-11-15 08:27:25 UTC\",\"updated_at\":\"2021-11-15
+ 08:27:25 UTC\",\"id\":2,\"name\":\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -712,7 +690,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=89
Strict-Transport-Security:
@@ -730,7 +708,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '354'
+ - '416'
status:
code: 200
message: OK
@@ -746,15 +724,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296
+ uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 19,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\
- :null,\"os_family\":\"Redhat\",\"created_at\":\"2020-09-03 07:50:24 UTC\"\
- ,\"updated_at\":\"2020-09-03 07:50:24 UTC\",\"name\":\"Part table\",\"id\"\
- :127}]\n}\n"
+ string: "{\n \"total\": 13,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\":\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\":\"2021-11-15
+ 08:27:25 UTC\",\"updated_at\":\"2021-11-15 08:27:25 UTC\",\"id\":13,\"name\":\"TestOS
+ Mirror\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -773,7 +750,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=88
Strict-Transport-Security:
@@ -791,7 +768,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '325'
+ - '354'
status:
code: 200
message: OK
@@ -807,20 +784,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296
+ uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\
- \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\
- :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\
- name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\
- id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\
- :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\
- ,\"id\":3}]}]\n}\n"
+ string: "{\n \"total\": 20,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"os_family\":\"Redhat\",\"created_at\":\"2021-11-15
+ 08:27:24 UTC\",\"updated_at\":\"2021-11-15 08:27:24 UTC\",\"name\":\"Part
+ table\",\"id\":133}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -839,7 +810,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=87
Strict-Transport-Security:
@@ -857,7 +828,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '666'
+ - '325'
status:
code: 200
message: OK
@@ -873,20 +844,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296
+ uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-5.tanso.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\
- \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\
- :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\
- name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\
- id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\
- :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\
- ,\"id\":3}]}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-5.tanso.example.com\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"created_at\":\"2021-11-15 08:16:36 UTC\",\"updated_at\":\"2021-11-15 08:16:36
+ UTC\",\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Puppet
+ CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"Registration\",\"id\":13},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3}]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -905,7 +871,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=86
Strict-Transport-Security:
@@ -923,7 +889,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '666'
+ - '629'
status:
code: 200
message: OK
@@ -939,34 +905,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296
+ uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-5.tanso.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\
- :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\
- :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\
- :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\
- :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\
- ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\
- :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\
- :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\
- architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\
- realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\
- :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\
- :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\
- :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\
- :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
- :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\
- :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-5.tanso.example.com\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"created_at\":\"2021-11-15 08:16:36 UTC\",\"updated_at\":\"2021-11-15 08:16:36
+ UTC\",\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Puppet
+ CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"Registration\",\"id\":13},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3}]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -985,7 +932,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=85
Strict-Transport-Security:
@@ -1003,16 +950,16 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1816'
+ - '629'
status:
code: 200
message: OK
- request:
body: '{"hostgroup": {"name": "Nested New host group", "description": "Nested
- group", "parent_id": 2, "operatingsystem_id": 2, "architecture_id": 1, "pxe_loader":
- "Grub2 UEFI", "medium_id": 12, "ptable_id": 127, "subnet_id": 35, "domain_id":
- 17, "puppet_proxy_id": 1, "puppet_ca_proxy_id": 1, "location_ids": [46, 47,
- 48], "organization_ids": [51, 52]}}'
+ group", "parent_id": 8, "operatingsystem_id": 2, "architecture_id": 1, "pxe_loader":
+ "Grub2 UEFI", "medium_id": 13, "ptable_id": 133, "subnet_id": 1, "domain_id":
+ 2, "puppet_proxy_id": 1, "puppet_ca_proxy_id": 1, "location_ids": [9, 10, 11],
+ "organization_ids": [12, 13]}}'
headers:
Accept:
- application/json;version=2
@@ -1021,7 +968,7 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '346'
+ - '343'
Content-Type:
- application/json
User-Agent:
@@ -1030,14 +977,14 @@ interactions:
uri: https://foreman.example.org/api/hostgroups
response:
body:
- string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
- 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"2","parent_id":2,"parent_name":"New
- host group","ptable_id":127,"ptable_name":"Part table","medium_id":12,"medium_name":"TestOS
- Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:57:00 UTC","updated_at":"2020-09-03 07:57:00 UTC","id":4,"name":"Nested
+ string: '{"subnet_id":1,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
+ 7.6","domain_id":2,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"8","parent_id":8,"parent_name":"New
+ host group","ptable_id":133,"ptable_name":"Part table","medium_id":13,"medium_name":"TestOS
+ Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2021-11-15
+ 08:33:54 UTC","updated_at":"2021-11-15 08:33:54 UTC","id":10,"name":"Nested
New host group","title":"New host group/Nested New host group","description":"Nested
- group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null},{"id":48,"name":"Bar","title":"Bar","description":null}],"organizations":[{"id":51,"name":"Test
- Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test
+ group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[{"id":9,"name":"Foo","title":"Foo","description":null},{"id":10,"name":"Baz","title":"Foo/Baz","description":null},{"id":11,"name":"Bar","title":"Bar","description":null}],"organizations":[{"id":12,"name":"Test
+ Org1","title":"Test Org1","description":"A test organization"},{"id":13,"name":"Test
Org2","title":"Test Org2","description":"A test organization"}]}'
headers:
Cache-Control:
@@ -1057,7 +1004,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=84
Strict-Transport-Security:
diff --git a/tests/test_playbooks/fixtures/hostgroup-9.yml b/tests/test_playbooks/fixtures/hostgroup-9.yml
index dd130465..33487fa9 100644
--- a/tests/test_playbooks/fixtures/hostgroup-9.yml
+++ b/tests/test_playbooks/fixtures/hostgroup-9.yml
@@ -14,7 +14,7 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.1.2","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -33,7 +33,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=100
Strict-Transport-Security:
@@ -70,32 +70,16 @@ interactions:
uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%2FNested+New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"subnet_id\":35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\"\
- :2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":17,\"domain_name\"\
- :\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\"\
- ,\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\"\
- :\"2\",\"parent_id\":2,\"parent_name\":\"New host group\",\"ptable_id\":127,\"\
- ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\":\"TestOS Mirror\"\
- ,\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"\
- compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\"\
- :1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"\
- created_at\":\"2020-09-03 07:57:00 UTC\",\"updated_at\":\"2020-09-03 07:57:00\
- \ UTC\",\"id\":4,\"name\":\"Nested New host group\",\"title\":\"New host group/Nested\
- \ New host group\",\"description\":\"Nested group\",\"puppet_proxy_id\":1,\"\
- puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\"\
- :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
- :null,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\"\
- :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group/Nested New host group\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"subnet_id\":1,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS
+ 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":null,\"environment_name\":\"production\",\"compute_profile_id\":null,\"compute_profile_name\":\"myprofile\",\"ancestry\":\"8\",\"parent_id\":8,\"parent_name\":\"New
+ host group\",\"ptable_id\":133,\"ptable_name\":\"Part table\",\"medium_id\":13,\"medium_name\":\"TestOS
+ Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":null,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:54 UTC\",\"updated_at\":\"2021-11-15 08:33:54 UTC\",\"id\":10,\"name\":\"Nested
+ New host group\",\"title\":\"New host group/Nested New host group\",\"description\":\"Nested
+ group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":4,\"inherited_environment_id\":1,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":1,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -114,7 +98,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=99
Strict-Transport-Security:
@@ -132,7 +116,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1873'
+ - '1872'
status:
code: 200
message: OK
@@ -148,17 +132,17 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/hostgroups/4
+ uri: https://foreman.example.org/api/hostgroups/10
response:
body:
- string: '{"subnet_id":35,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
- 7.6","domain_id":17,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"2","parent_id":2,"parent_name":"New
- host group","ptable_id":127,"ptable_name":"Part table","medium_id":12,"medium_name":"TestOS
- Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2020-09-03
- 07:57:00 UTC","updated_at":"2020-09-03 07:57:00 UTC","id":4,"name":"Nested
+ string: '{"subnet_id":1,"subnet_name":"Test subnet4","operatingsystem_id":2,"operatingsystem_name":"TestOS
+ 7.6","domain_id":2,"domain_name":"foo.example.com","environment_id":null,"environment_name":"production","compute_profile_id":null,"compute_profile_name":"myprofile","ancestry":"8","parent_id":8,"parent_name":"New
+ host group","ptable_id":133,"ptable_name":"Part table","medium_id":13,"medium_name":"TestOS
+ Mirror","pxe_loader":"Grub2 UEFI","subnet6_id":null,"subnet6_name":null,"compute_resource_id":null,"compute_resource_name":"libvirt-cr","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2021-11-15
+ 08:33:54 UTC","updated_at":"2021-11-15 08:33:54 UTC","id":10,"name":"Nested
New host group","title":"New host group/Nested New host group","description":"Nested
- group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-1.yatsu.example.com","puppet_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-1.yatsu.example.com","id":1,"url":"https://centos7-foreman-2-1.yatsu.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[{"id":48,"name":"Bar","title":"Bar","description":null},{"id":46,"name":"Foo","title":"Foo","description":null},{"id":47,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":51,"name":"Test
- Org1","title":"Test Org1","description":"A test organization"},{"id":52,"name":"Test
+ group","puppet_proxy_id":1,"puppet_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_ca_proxy_id":1,"puppet_ca_proxy_name":"centos7-foreman-2-5.tanso.example.com","puppet_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"puppet_ca_proxy":{"name":"centos7-foreman-2-5.tanso.example.com","id":1,"url":"https://centos7-foreman-2-5.tanso.example.com:8443"},"inherited_compute_profile_id":4,"inherited_environment_id":1,"inherited_domain_id":null,"inherited_puppet_proxy_id":null,"inherited_puppet_ca_proxy_id":null,"inherited_compute_resource_id":1,"inherited_operatingsystem_id":null,"inherited_architecture_id":null,"inherited_medium_id":null,"inherited_ptable_id":null,"inherited_subnet_id":null,"inherited_subnet6_id":null,"inherited_realm_id":null,"inherited_pxe_loader":null,"parameters":[],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[{"id":11,"name":"Bar","title":"Bar","description":null},{"id":9,"name":"Foo","title":"Foo","description":null},{"id":10,"name":"Baz","title":"Foo/Baz","description":null}],"organizations":[{"id":12,"name":"Test
+ Org1","title":"Test Org1","description":"A test organization"},{"id":13,"name":"Test
Org2","title":"Test Org2","description":"A test organization"}]}'
headers:
Cache-Control:
@@ -178,7 +162,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=98
Strict-Transport-Security:
@@ -196,7 +180,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '2148'
+ - '2146'
status:
code: 200
message: OK
@@ -212,16 +196,17 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296
+ uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\
- \ 07:56:40 UTC\",\"updated_at\":\"2020-09-03 07:56:40 UTC\",\"id\":51,\"name\"\
- :\"Test Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"\
- }]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\":1,\"subnet_name\":\"Test
+ subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\":\"TestOS 7.6\",\"domain_id\":2,\"domain_name\":\"foo.example.com\",\"environment_id\":1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\":\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"ptable_id\":133,\"ptable_name\":\"Part
+ table\",\"medium_id\":13,\"medium_name\":\"TestOS Mirror\",\"pxe_loader\":\"Grub2
+ UEFI\",\"subnet6_id\":null,\"subnet6_name\":null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"realm_name\":null,\"created_at\":\"2021-11-15
+ 08:33:48 UTC\",\"updated_at\":\"2021-11-15 08:33:48 UTC\",\"id\":8,\"name\":\"New
+ host group\",\"title\":\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\":1,\"puppet_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_ca_proxy_id\":1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-5.tanso.example.com\",\"puppet_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"},\"inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\":null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\":null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\":null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\":null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\":null,\"inherited_pxe_loader\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -240,7 +225,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=97
Strict-Transport-Security:
@@ -258,7 +243,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '389'
+ - '1814'
status:
code: 200
message: OK
@@ -274,16 +259,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296
+ uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org1%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03\
- \ 07:56:41 UTC\",\"updated_at\":\"2020-09-03 07:56:41 UTC\",\"id\":52,\"name\"\
- :\"Test Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"\
- }]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Org1\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:35 UTC\",\"updated_at\":\"2021-11-15 08:24:35 UTC\",\"id\":12,\"name\":\"Test
+ Org1\",\"title\":\"Test Org1\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -302,7 +285,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=96
Strict-Transport-Security:
@@ -336,15 +319,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296
+ uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Org2%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"\
- by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\
- parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:16\
- \ UTC\",\"updated_at\":\"2020-09-03 07:50:16 UTC\",\"id\":46,\"name\":\"Foo\"\
- ,\"title\":\"Foo\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Org2\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:35 UTC\",\"updated_at\":\"2021-11-15 08:24:35 UTC\",\"id\":13,\"name\":\"Test
+ Org2\",\"title\":\"Test Org2\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -363,7 +345,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=95
Strict-Transport-Security:
@@ -381,7 +363,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '355'
+ - '389'
status:
code: 200
message: OK
@@ -397,15 +379,13 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296
+ uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\"\
- :\"46\",\"parent_id\":46,\"parent_name\":\"Foo\",\"created_at\":\"2020-09-03\
- \ 07:50:17 UTC\",\"updated_at\":\"2020-09-03 07:50:17 UTC\",\"id\":47,\"name\"\
- :\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Foo\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:32 UTC\",\"updated_at\":\"2021-11-15 08:24:32 UTC\",\"id\":9,\"name\":\"Foo\",\"title\":\"Foo\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -424,7 +404,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=94
Strict-Transport-Security:
@@ -442,7 +422,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '362'
+ - '354'
status:
code: 200
message: OK
@@ -458,15 +438,13 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296
+ uri: https://foreman.example.org/api/locations?search=title%3D%22Foo%2FBaz%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"\
- by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"\
- parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-09-03 07:50:18\
- \ UTC\",\"updated_at\":\"2020-09-03 07:50:18 UTC\",\"id\":48,\"name\":\"Bar\"\
- ,\"title\":\"Bar\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Foo/Baz\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":\"9\",\"parent_id\":9,\"parent_name\":\"Foo\",\"created_at\":\"2021-11-15
+ 08:24:33 UTC\",\"updated_at\":\"2021-11-15 08:24:33 UTC\",\"id\":10,\"name\":\"Baz\",\"title\":\"Foo/Baz\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -485,7 +463,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=93
Strict-Transport-Security:
@@ -503,7 +481,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '355'
+ - '360'
status:
code: 200
message: OK
@@ -519,16 +497,13 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296
+ uri: https://foreman.example.org/api/locations?search=title%3D%22Bar%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\"\
- :null,\"created_at\":\"2020-09-03 07:50:22 UTC\",\"updated_at\":\"2020-09-03\
- \ 07:50:22 UTC\",\"id\":17,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- }}]\n}\n"
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Bar\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:24:34 UTC\",\"updated_at\":\"2021-11-15 08:24:34 UTC\",\"id\":11,\"name\":\"Bar\",\"title\":\"Bar\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -547,7 +522,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=92
Strict-Transport-Security:
@@ -565,7 +540,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '441'
+ - '355'
status:
code: 200
message: OK
@@ -581,22 +556,13 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296
+ uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\"\
- :\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\"\
- ,\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\"\
- :null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2020-09-03\
- \ 07:50:23 UTC\",\"updated_at\":\"2020-09-03 07:50:23 UTC\",\"ipam\":\"DHCP\"\
- ,\"boot_mode\":\"DHCP\",\"id\":35,\"name\":\"Test subnet4\",\"description\"\
- :null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\"\
- :null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\"\
- :null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"\
- template_id\":null,\"template_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\"\
- :null,\"externalipam\":null,\"dns\":null,\"template\":null}]\n}\n"
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\":null,\"created_at\":\"2021-11-15
+ 08:27:23 UTC\",\"updated_at\":\"2021-11-15 08:27:23 UTC\",\"id\":2,\"name\":\"foo.example.com\",\"dns_id\":1,\"dns\":{\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\"}}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -615,7 +581,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=91
Strict-Transport-Security:
@@ -633,7 +599,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '870'
+ - '440'
status:
code: 200
message: OK
@@ -649,14 +615,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296
+ uri: https://foreman.example.org/api/subnets?search=name%3D%22Test+subnet4%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"created_at\"\
- :\"2020-07-15 11:29:52 UTC\",\"updated_at\":\"2020-07-15 11:29:52 UTC\",\"\
- name\":\"x86_64\",\"id\":1}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test subnet4\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"network\":\"192.168.200.0\",\"network_type\":\"IPv4\",\"cidr\":27,\"mask\":\"255.255.255.224\",\"priority\":null,\"vlanid\":null,\"mtu\":1500,\"gateway\":null,\"dns_primary\":null,\"dns_secondary\":null,\"from\":null,\"to\":null,\"created_at\":\"2021-11-15
+ 08:27:24 UTC\",\"updated_at\":\"2021-11-15 08:27:24 UTC\",\"ipam\":\"DHCP\",\"boot_mode\":\"DHCP\",\"nic_delay\":null,\"id\":1,\"name\":\"Test
+ subnet4\",\"description\":null,\"network_address\":\"192.168.200.0/27\",\"dhcp_id\":null,\"dhcp_name\":null,\"tftp_id\":null,\"tftp_name\":null,\"httpboot_id\":null,\"httpboot_name\":null,\"externalipam_id\":null,\"externalipam_name\":null,\"dns_id\":null,\"template_id\":null,\"template_name\":null,\"bmc_id\":null,\"bmc_name\":null,\"dhcp\":null,\"tftp\":null,\"httpboot\":null,\"externalipam\":null,\"dns\":null,\"template\":null,\"bmc\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -675,7 +641,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=90
Strict-Transport-Security:
@@ -693,7 +659,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '274'
+ - '927'
status:
code: 200
message: OK
@@ -709,16 +675,13 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296
+ uri: https://foreman.example.org/api/architectures?search=name%3D%22x86_64%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\
- :null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\"\
- :\"reverse whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2020-09-03\
- \ 07:50:25 UTC\",\"updated_at\":\"2020-09-03 07:50:25 UTC\",\"id\":2,\"name\"\
- :\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"x86_64\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 08:14:58 UTC\",\"updated_at\":\"2021-11-15 08:14:58 UTC\",\"name\":\"x86_64\",\"id\":1}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -737,7 +700,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=89
Strict-Transport-Security:
@@ -755,7 +718,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '416'
+ - '274'
status:
code: 200
message: OK
@@ -771,15 +734,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296
+ uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22TestOS+7.6%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 12,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\":\
- \ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\"\
- :\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\"\
- :\"2020-09-03 07:50:26 UTC\",\"updated_at\":\"2020-09-03 07:50:26 UTC\",\"\
- id\":12,\"name\":\"TestOS Mirror\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"TestOS 7.6\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"7\",\"minor\":\"6\",\"family\":\"Redhat\",\"release_name\":\"reverse
+ whip\",\"password_hash\":\"SHA256\",\"created_at\":\"2021-11-15 08:27:25 UTC\",\"updated_at\":\"2021-11-15
+ 08:27:25 UTC\",\"id\":2,\"name\":\"TestOS\",\"title\":\"TestOS 7.6\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -798,7 +760,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=88
Strict-Transport-Security:
@@ -816,7 +778,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '354'
+ - '416'
status:
code: 200
message: OK
@@ -832,15 +794,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296
+ uri: https://foreman.example.org/api/media?search=name%3D%22TestOS+Mirror%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 19,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n\
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\"\
- :null,\"os_family\":\"Redhat\",\"created_at\":\"2020-09-03 07:50:24 UTC\"\
- ,\"updated_at\":\"2020-09-03 07:50:24 UTC\",\"name\":\"Part table\",\"id\"\
- :127}]\n}\n"
+ string: "{\n \"total\": 13,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"TestOS Mirror\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"path\":\"https://templeos.org/TempleOS.ISO\",\"os_family\":\"Redhat\",\"created_at\":\"2021-11-15
+ 08:27:25 UTC\",\"updated_at\":\"2021-11-15 08:27:25 UTC\",\"id\":13,\"name\":\"TestOS
+ Mirror\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -859,7 +820,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=87
Strict-Transport-Security:
@@ -877,7 +838,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '325'
+ - '354'
status:
code: 200
message: OK
@@ -893,20 +854,14 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296
+ uri: https://foreman.example.org/api/ptables?search=name%3D%22Part+table%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\
- \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\
- :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\
- name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\
- id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\
- :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\
- ,\"id\":3}]}]\n}\n"
+ string: "{\n \"total\": 20,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Part table\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"os_family\":\"Redhat\",\"created_at\":\"2021-11-15
+ 08:27:24 UTC\",\"updated_at\":\"2021-11-15 08:27:24 UTC\",\"name\":\"Part
+ table\",\"id\":133}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -925,7 +880,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=86
Strict-Transport-Security:
@@ -943,7 +898,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '666'
+ - '325'
status:
code: 200
message: OK
@@ -959,20 +914,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-1.yatsu.example.com%22&per_page=4294967296
+ uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-5.tanso.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-1.yatsu.example.com\\\
- \"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\"\
- : [{\"created_at\":\"2020-07-15 11:31:50 UTC\",\"updated_at\":\"2020-07-15\
- \ 11:31:50 UTC\",\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\"\
- :1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\",\"features\"\
- :[{\"capabilities\":[],\"name\":\"TFTP\",\"id\":2},{\"capabilities\":[],\"\
- name\":\"Puppet CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"\
- id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\"\
- :[],\"name\":\"HTTPBoot\",\"id\":11},{\"capabilities\":[],\"name\":\"DNS\"\
- ,\"id\":3}]}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-5.tanso.example.com\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"created_at\":\"2021-11-15 08:16:36 UTC\",\"updated_at\":\"2021-11-15 08:16:36
+ UTC\",\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Puppet
+ CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"Registration\",\"id\":13},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3}]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -991,7 +941,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=85
Strict-Transport-Security:
@@ -1009,7 +959,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '666'
+ - '629'
status:
code: 200
message: OK
@@ -1025,34 +975,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/hostgroups?search=title%3D%22New+host+group%22&per_page=4294967296
+ uri: https://foreman.example.org/api/smart_proxies?search=name%3D%22centos7-foreman-2-5.tanso.example.com%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"title=\\\"New host group\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"subnet_id\"\
- :35,\"subnet_name\":\"Test subnet4\",\"operatingsystem_id\":2,\"operatingsystem_name\"\
- :\"TestOS 7.6\",\"domain_id\":17,\"domain_name\":\"foo.example.com\",\"environment_id\"\
- :1,\"environment_name\":\"production\",\"compute_profile_id\":4,\"compute_profile_name\"\
- :\"myprofile\",\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"\
- ptable_id\":127,\"ptable_name\":\"Part table\",\"medium_id\":12,\"medium_name\"\
- :\"TestOS Mirror\",\"pxe_loader\":\"Grub2 UEFI\",\"subnet6_id\":null,\"subnet6_name\"\
- :null,\"compute_resource_id\":1,\"compute_resource_name\":\"libvirt-cr\",\"\
- architecture_id\":1,\"architecture_name\":\"x86_64\",\"realm_id\":null,\"\
- realm_name\":null,\"created_at\":\"2020-09-03 07:54:33 UTC\",\"updated_at\"\
- :\"2020-09-03 07:54:33 UTC\",\"id\":2,\"name\":\"New host group\",\"title\"\
- :\"New host group\",\"description\":\"New host group\",\"puppet_proxy_id\"\
- :1,\"puppet_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_ca_proxy_id\"\
- :1,\"puppet_ca_proxy_name\":\"centos7-foreman-2-1.yatsu.example.com\",\"puppet_proxy\"\
- :{\"name\":\"centos7-foreman-2-1.yatsu.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"\
- },\"puppet_ca_proxy\":{\"name\":\"centos7-foreman-2-1.yatsu.example.com\"\
- ,\"id\":1,\"url\":\"https://centos7-foreman-2-1.yatsu.example.com:8443\"},\"\
- inherited_compute_profile_id\":null,\"inherited_environment_id\":null,\"inherited_domain_id\"\
- :null,\"inherited_puppet_proxy_id\":null,\"inherited_puppet_ca_proxy_id\"\
- :null,\"inherited_compute_resource_id\":null,\"inherited_operatingsystem_id\"\
- :null,\"inherited_architecture_id\":null,\"inherited_medium_id\":null,\"inherited_ptable_id\"\
- :null,\"inherited_subnet_id\":null,\"inherited_subnet6_id\":null,\"inherited_realm_id\"\
- :null,\"inherited_pxe_loader\":null}]\n}\n"
+ string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"centos7-foreman-2-5.tanso.example.com\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"created_at\":\"2021-11-15 08:16:36 UTC\",\"updated_at\":\"2021-11-15 08:16:36
+ UTC\",\"name\":\"centos7-foreman-2-5.tanso.example.com\",\"id\":1,\"url\":\"https://centos7-foreman-2-5.tanso.example.com:8443\",\"features\":[{\"capabilities\":[],\"name\":\"Puppet
+ CA\",\"id\":6},{\"capabilities\":[],\"name\":\"Puppet\",\"id\":5},{\"capabilities\":[],\"name\":\"Logs\",\"id\":10},{\"capabilities\":[],\"name\":\"Registration\",\"id\":13},{\"capabilities\":[],\"name\":\"DNS\",\"id\":3}]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -1071,7 +1002,7 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.1.2
+ - 2.5.4
Keep-Alive:
- timeout=15, max=84
Strict-Transport-Security:
@@ -1089,7 +1020,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1816'
+ - '629'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/location-0.yml b/tests/test_playbooks/fixtures/location-0.yml
index 12f229a2..dfcebbd7 100644
--- a/tests/test_playbooks/fixtures/location-0.yml
+++ b/tests/test_playbooks/fixtures/location-0.yml
@@ -14,24 +14,18 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"1.24.1","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '63'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:20 GMT
- ETag:
- - W/"46a2e9ebe3393470b5018da3cfc1e32a"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -39,17 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=100
- Server:
- - Apache
- Set-Cookie:
- - _session_id=1c76378a915b2d349e50c2d3fd0e6136; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=100
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -58,14 +48,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - b3e1a1aa-d5f1-43d9-ac4a-1a868695aaef
- X-Runtime:
- - '0.121834'
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -78,8 +64,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=1c76378a915b2d349e50c2d3fd0e6136
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -96,14 +80,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:20 GMT
- ETag:
- - W/"67c3929d4af036ef10091310f87d6f7f-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -111,13 +91,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=99
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=99
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -130,12 +106,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - c6594b55-3cff-46ab-a649-b5cd81495ce9
- X-Runtime:
- - '0.013896'
X-XSS-Protection:
- 1; mode=block
content-length:
@@ -156,156 +126,110 @@ interactions:
- '39'
Content-Type:
- application/json
- Cookie:
- - _session_id=1c76378a915b2d349e50c2d3fd0e6136
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: POST
uri: https://foreman.example.org/api/locations
response:
body:
- string: '{"select_all_types":[],"description":null,"created_at":"2020-03-23
- 16:15:20 UTC","updated_at":"2020-03-23 16:15:20 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":9,"name":"Test
- Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"config_templates":[{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"}],"ptables":[{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart mirrored","id":104},{"description":null,"os_family":"Junos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Junos default
- fake","id":105},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default","id":106},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default
- thin","id":107},{"description":null,"os_family":"NXOS","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"NX-OS default
- fake","id":108},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- SCSI disk","id":97},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- virtual disk","id":98},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST LVM","id":99},{"description":null,"os_family":"Coreos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"CoreOS default
- fake","id":100},{"description":null,"os_family":"Rancheros","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Empty","id":101},{"description":null,"os_family":"Freebsd","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"FreeBSD default
- fake","id":102},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart default","id":103},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default","id":109},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default
- LVM","id":110},{"description":null,"os_family":"Xenserver","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"XenServer default","id":111}],"provisioning_templates":[{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[]}'
+ string: '{"select_all_types":[],"description":null,"created_at":"2021-11-15
+ 08:18:28 UTC","updated_at":"2021-11-15 08:18:28 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":4,"name":"Test
+ Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Junos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Junos default
+ fake","id":119,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"CoreOS default
+ fake","id":114,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Empty","id":115,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"FreeBSD default
+ fake","id":116,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart default","id":117,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart mirrored","id":118,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ SCSI disk","id":111,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ virtual disk","id":112,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST LVM","id":113,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart custom","id":120,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default","id":121,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default
+ thin","id":122,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart dynamic","id":123,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"NX-OS default
+ fake","id":124,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default","id":125,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default
+ LVM","id":126,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ partition table","id":127,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ GPT EFI partition table","id":128,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"XenServer default","id":129,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS
+ default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":2,"name":"Jumpstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":3,"name":"Kickstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":4,"name":"PXEGrub
+ default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":5,"name":"PXEGrub
+ global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"Kickstart
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":7,"name":"Preseed
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":34,"name":"Windows
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":8,"name":"PXEGrub2
+ default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":9,"name":"PXEGrub2
+ global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"Alterator
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":11,"name":"AutoYaST
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":12,"name":"CoreOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":13,"name":"FreeBSD
+ (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":14,"name":"Kickstart
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":15,"name":"Kickstart
+ oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":16,"name":"Preseed
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"PXELinux
+ chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":35,"name":"XenServer
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":18,"name":"PXELinux
+ chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"PXELinux
+ default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"PXELinux
+ default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux
+ global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"RancherOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"WAIK
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"Windows
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":25,"name":"XenServer
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":26,"name":"Junos
+ default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":27,"name":"CloudInit
+ default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":28,"name":"Alterator
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":29,"name":"FreeBSD
+ (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":30,"name":"Jumpstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":31,"name":"Junos
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":32,"name":"Kickstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":33,"name":"Preseed
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":36,"name":"Linux
+ host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":37,"name":"AutoYaST
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":38,"name":"iPXE
+ default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":39,"name":"iPXE
+ global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":40,"name":"iPXE
+ intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":41,"name":"Kickstart
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"Preseed
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"Windows
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"Alterator
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":45,"name":"Atomic
+ Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":46,"name":"AutoYaST
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":47,"name":"AutoYaST
+ SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":48,"name":"CoreOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"FreeBSD
+ (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":50,"name":"Jumpstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":51,"name":"Junos
+ default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"Kickstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"Kickstart
+ oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"Preseed
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"RancherOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Windows
+ default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":82,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":57,"name":"XenServer
+ default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"Global
+ Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":59,"name":"Grubby
+ default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"Windows
+ peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":61,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"Windows
+ network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"AutoYaST
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":107,"name":"Kickstart
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":108,"name":"Preseed
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":109,"name":"UserData
+ default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":110,"name":"UserData
+ open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[]}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -313,14 +237,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:20 GMT
- ETag:
- - W/"b8a8cbc9426cefb44a93ae553c086f72"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -328,15 +248,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=98
- Server:
- - Apache
- Set-Cookie:
- - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 201 Created
+ - timeout=15, max=98
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Transfer-Encoding:
@@ -349,12 +263,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 494e6d59-b1a7-4bea-9262-9a7ed39a49d8
- X-Runtime:
- - '0.616394'
X-XSS-Protection:
- 1; mode=block
status:
diff --git a/tests/test_playbooks/fixtures/location-1.yml b/tests/test_playbooks/fixtures/location-1.yml
index 4f02b476..454739c2 100644
--- a/tests/test_playbooks/fixtures/location-1.yml
+++ b/tests/test_playbooks/fixtures/location-1.yml
@@ -14,24 +14,18 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"1.24.1","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '63'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:21 GMT
- ETag:
- - W/"46a2e9ebe3393470b5018da3cfc1e32a"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -39,17 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=100
- Server:
- - Apache
- Set-Cookie:
- - _session_id=6d08037a1c94c3945e5308191d5030bb; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=100
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -58,14 +48,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - aee06ac2-9c14-47b8-ac41-911aa4a41ad2
- X-Runtime:
- - '0.121673'
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -78,8 +64,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=6d08037a1c94c3945e5308191d5030bb
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -88,8 +72,8 @@ interactions:
body:
string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-03-23
- 16:15:20 UTC\",\"updated_at\":\"2020-03-23 16:15:20 UTC\",\"id\":9,\"name\":\"Test
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:18:28 UTC\",\"updated_at\":\"2021-11-15 08:18:28 UTC\",\"id\":4,\"name\":\"Test
Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n"
headers:
Cache-Control:
@@ -98,14 +82,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:21 GMT
- ETag:
- - W/"e3117ace4ed09de5c9e6ed2e210ac630-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -113,13 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=99
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=99
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -132,12 +108,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 78144672-d71d-4281-8d01-5f741a1d80b4
- X-Runtime:
- - '0.014331'
X-XSS-Protection:
- 1; mode=block
content-length:
@@ -154,156 +124,110 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=6d08037a1c94c3945e5308191d5030bb
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations/9
+ uri: https://foreman.example.org/api/locations/4
response:
body:
- string: '{"select_all_types":[],"description":null,"created_at":"2020-03-23
- 16:15:20 UTC","updated_at":"2020-03-23 16:15:20 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":9,"name":"Test
- Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"config_templates":[{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"}],"ptables":[{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- SCSI disk","id":97},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- virtual disk","id":98},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST LVM","id":99},{"description":null,"os_family":"Coreos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"CoreOS default
- fake","id":100},{"description":null,"os_family":"Rancheros","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Empty","id":101},{"description":null,"os_family":"Freebsd","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"FreeBSD default
- fake","id":102},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart default","id":103},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart mirrored","id":104},{"description":null,"os_family":"Junos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Junos default
- fake","id":105},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default","id":106},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default
- thin","id":107},{"description":null,"os_family":"NXOS","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"NX-OS default
- fake","id":108},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default","id":109},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default
- LVM","id":110},{"description":null,"os_family":"Xenserver","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"XenServer default","id":111}],"provisioning_templates":[{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[]}'
+ string: '{"select_all_types":[],"description":null,"created_at":"2021-11-15
+ 08:18:28 UTC","updated_at":"2021-11-15 08:18:28 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":4,"name":"Test
+ Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ SCSI disk","id":111,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ virtual disk","id":112,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST LVM","id":113,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"CoreOS default
+ fake","id":114,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Empty","id":115,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"FreeBSD default
+ fake","id":116,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart default","id":117,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart mirrored","id":118,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Junos default
+ fake","id":119,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart custom","id":120,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default","id":121,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default
+ thin","id":122,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart dynamic","id":123,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"NX-OS default
+ fake","id":124,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default","id":125,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default
+ LVM","id":126,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ GPT EFI partition table","id":128,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ partition table","id":127,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"XenServer default","id":129,"inherited":false}],"provisioning_templates":[{"id":44,"name":"Alterator
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Alterator
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":10,"name":"Alterator
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":61,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":45,"name":"Atomic
+ Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":46,"name":"AutoYaST
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":37,"name":"AutoYaST
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":11,"name":"AutoYaST
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":106,"name":"AutoYaST
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":47,"name":"AutoYaST
+ SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":66,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":27,"name":"CloudInit
+ default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":70,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"CoreOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":12,"name":"CoreOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":71,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":29,"name":"FreeBSD
+ (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":49,"name":"FreeBSD
+ (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":13,"name":"FreeBSD
+ (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":78,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"Global
+ Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":59,"name":"Grubby
+ default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":79,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":38,"name":"iPXE
+ default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":39,"name":"iPXE
+ global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":40,"name":"iPXE
+ intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":50,"name":"Jumpstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Jumpstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":2,"name":"Jumpstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":31,"name":"Junos
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":51,"name":"Junos
+ default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":26,"name":"Junos
+ default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":52,"name":"Kickstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":32,"name":"Kickstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":41,"name":"Kickstart
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":3,"name":"Kickstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"Kickstart
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"Kickstart
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":107,"name":"Kickstart
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":83,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"name":"Kickstart
+ oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"Kickstart
+ oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":36,"name":"Linux
+ host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":89,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS
+ default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":54,"name":"Preseed
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Preseed
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":42,"name":"Preseed
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":7,"name":"Preseed
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":16,"name":"Preseed
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"Preseed
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":8,"name":"PXEGrub2
+ default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":95,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":9,"name":"PXEGrub2
+ global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":96,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":4,"name":"PXEGrub
+ default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":98,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub
+ global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":17,"name":"PXELinux
+ chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"PXELinux
+ chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":99,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":19,"name":"PXELinux
+ default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"PXELinux
+ default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":100,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":21,"name":"PXELinux
+ global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":101,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":55,"name":"RancherOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":22,"name":"RancherOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":102,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"UserData
+ default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":110,"name":"UserData
+ open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":23,"name":"WAIK
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":34,"name":"Windows
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":43,"name":"Windows
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":56,"name":"Windows
+ default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":24,"name":"Windows
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":85,"name":"Windows
+ network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"name":"Windows
+ peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":57,"name":"XenServer
+ default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"XenServer
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":25,"name":"XenServer
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":62,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[]}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -311,14 +235,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:21 GMT
- ETag:
- - W/"bbe14134f0495dd6905fdc66c3e88f6b-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -326,13 +246,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=98
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=98
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -345,16 +261,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 1194feb9-3666-4d2e-b303-52ffcb9c4e02
- X-Runtime:
- - '0.096616'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '20523'
+ - '15902'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/location-10.yml b/tests/test_playbooks/fixtures/location-10.yml
index e5163361..c71a766d 100644
--- a/tests/test_playbooks/fixtures/location-10.yml
+++ b/tests/test_playbooks/fixtures/location-10.yml
@@ -14,24 +14,18 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"1.24.1","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '63'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:29 GMT
- ETag:
- - W/"46a2e9ebe3393470b5018da3cfc1e32a"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -39,17 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=100
- Server:
- - Apache
- Set-Cookie:
- - _session_id=2ff33c92194e3b8a2b31c36233374900; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=100
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -58,14 +48,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - eb9d57f4-654a-417f-8092-f839815985ec
- X-Runtime:
- - '0.127389'
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -78,8 +64,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=2ff33c92194e3b8a2b31c36233374900
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -89,8 +73,8 @@ interactions:
string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1\\\"\",\n
\ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
- [{\"ancestry\":\"9\",\"parent_id\":9,\"parent_name\":\"Test Location\",\"created_at\":\"2020-03-23
- 16:15:22 UTC\",\"updated_at\":\"2020-03-23 16:15:22 UTC\",\"id\":10,\"name\":\"Sub
+ [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"created_at\":\"2021-11-15
+ 08:18:29 UTC\",\"updated_at\":\"2021-11-15 08:18:29 UTC\",\"id\":5,\"name\":\"Sub
Location 1\",\"title\":\"Test Location/Sub Location 1\",\"description\":null}]\n}\n"
headers:
Cache-Control:
@@ -99,14 +83,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:29 GMT
- ETag:
- - W/"3684b0ea6a80bd3c02119d8a22450be7-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -114,13 +94,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=99
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=99
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -133,16 +109,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - aa17c732-385d-4ca2-b871-55afe13f4a90
- X-Runtime:
- - '0.017966'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '423'
+ - '422'
status:
code: 200
message: OK
@@ -155,8 +125,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=2ff33c92194e3b8a2b31c36233374900
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -166,9 +134,9 @@ interactions:
string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1/Sub Location
2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
- [{\"ancestry\":\"9/10\",\"parent_id\":10,\"parent_name\":\"Test Location/Sub
- Location 1\",\"created_at\":\"2020-03-23 16:15:24 UTC\",\"updated_at\":\"2020-03-23
- 16:15:24 UTC\",\"id\":11,\"name\":\"Sub Location 2\",\"title\":\"Test Location/Sub
+ [{\"ancestry\":\"4/5\",\"parent_id\":5,\"parent_name\":\"Test Location/Sub
+ Location 1\",\"created_at\":\"2021-11-15 08:18:31 UTC\",\"updated_at\":\"2021-11-15
+ 08:18:31 UTC\",\"id\":6,\"name\":\"Sub Location 2\",\"title\":\"Test Location/Sub
Location 1/Sub Location 2\",\"description\":null}]\n}\n"
headers:
Cache-Control:
@@ -177,14 +145,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:29 GMT
- ETag:
- - W/"6704db57e753b65c415aab8d4f275307-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -192,13 +156,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=98
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=98
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -211,16 +171,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 93512af1-9c9d-47f4-a947-3222f3ed24ad
- X-Runtime:
- - '0.015317'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '472'
+ - '469'
status:
code: 200
message: OK
@@ -235,15 +189,13 @@ interactions:
- keep-alive
Content-Length:
- '0'
- Cookie:
- - _session_id=2ff33c92194e3b8a2b31c36233374900
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: DELETE
- uri: https://foreman.example.org/api/locations/11
+ uri: https://foreman.example.org/api/locations/6
response:
body:
- string: '{"id":11,"name":"Sub Location 2","created_at":"2020-03-23T16:15:24.454Z","updated_at":"2020-03-23T16:15:24.454Z","ignore_types":[],"ancestry":"9/10","title":"Test
+ string: '{"id":6,"name":"Sub Location 2","created_at":"2021-11-15T08:18:31.193Z","updated_at":"2021-11-15T08:18:31.193Z","ignore_types":[],"ancestry":"4/5","title":"Test
Location/Sub Location 1/Sub Location 2","description":null}'
headers:
Cache-Control:
@@ -252,14 +204,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:29 GMT
- ETag:
- - W/"4a528022aaa3c166593fa009e5467b21-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -267,15 +215,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=97
- Server:
- - Apache
- Set-Cookie:
- - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=97
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -288,16 +230,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - dddd3bac-b6d5-4dca-9be4-c97c94833dec
- X-Runtime:
- - '0.090924'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '222'
+ - '220'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/location-11.yml b/tests/test_playbooks/fixtures/location-11.yml
index 0b14a1f0..1c95d637 100644
--- a/tests/test_playbooks/fixtures/location-11.yml
+++ b/tests/test_playbooks/fixtures/location-11.yml
@@ -14,24 +14,18 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"1.24.1","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '63'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:30 GMT
- ETag:
- - W/"46a2e9ebe3393470b5018da3cfc1e32a"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -39,17 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=100
- Server:
- - Apache
- Set-Cookie:
- - _session_id=409aa68aeefb445a0498cab346f041d5; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=100
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -58,14 +48,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 3cc7d2d7-924c-47b3-9eb8-fdc1c8c85b9c
- X-Runtime:
- - '0.127276'
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -78,8 +64,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=409aa68aeefb445a0498cab346f041d5
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -88,8 +72,8 @@ interactions:
body:
string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-03-23
- 16:15:20 UTC\",\"updated_at\":\"2020-03-23 16:15:20 UTC\",\"id\":9,\"name\":\"Test
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:18:28 UTC\",\"updated_at\":\"2021-11-15 08:18:28 UTC\",\"id\":4,\"name\":\"Test
Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n"
headers:
Cache-Control:
@@ -98,14 +82,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:30 GMT
- ETag:
- - W/"f93ff0fa49c3d397a3f5b8d6e51de23f-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -113,13 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=99
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=99
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -132,12 +108,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - e110d359-2576-445b-ad3c-f8456f16115f
- X-Runtime:
- - '0.016298'
X-XSS-Protection:
- 1; mode=block
content-length:
@@ -154,8 +124,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=409aa68aeefb445a0498cab346f041d5
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -165,8 +133,8 @@ interactions:
string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1\\\"\",\n
\ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
- [{\"ancestry\":\"9\",\"parent_id\":9,\"parent_name\":\"Test Location\",\"created_at\":\"2020-03-23
- 16:15:22 UTC\",\"updated_at\":\"2020-03-23 16:15:22 UTC\",\"id\":10,\"name\":\"Sub
+ [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"created_at\":\"2021-11-15
+ 08:18:29 UTC\",\"updated_at\":\"2021-11-15 08:18:29 UTC\",\"id\":5,\"name\":\"Sub
Location 1\",\"title\":\"Test Location/Sub Location 1\",\"description\":null}]\n}\n"
headers:
Cache-Control:
@@ -175,14 +143,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:30 GMT
- ETag:
- - W/"98248bf3064c9506bb54d6502043d34c-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -190,13 +154,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=98
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=98
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -209,16 +169,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 8a7cd98e-fa8c-4f8f-bdef-7402bf3892f1
- X-Runtime:
- - '0.015334'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '423'
+ - '422'
status:
code: 200
message: OK
@@ -233,15 +187,13 @@ interactions:
- keep-alive
Content-Length:
- '0'
- Cookie:
- - _session_id=409aa68aeefb445a0498cab346f041d5
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: DELETE
- uri: https://foreman.example.org/api/locations/10
+ uri: https://foreman.example.org/api/locations/5
response:
body:
- string: '{"id":10,"name":"Sub Location 1","created_at":"2020-03-23T16:15:22.529Z","updated_at":"2020-03-23T16:15:22.529Z","ignore_types":[],"ancestry":"9","title":"Test
+ string: '{"id":5,"name":"Sub Location 1","created_at":"2021-11-15T08:18:29.888Z","updated_at":"2021-11-15T08:18:29.888Z","ignore_types":[],"ancestry":"4","title":"Test
Location/Sub Location 1","description":null}'
headers:
Cache-Control:
@@ -250,14 +202,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:30 GMT
- ETag:
- - W/"296fc9a6f3d4ae8f96e1a5c4c4c76ffa-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -265,15 +213,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=97
- Server:
- - Apache
- Set-Cookie:
- - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=97
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -286,16 +228,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 6b62cedd-ca26-4055-b5e2-7f5eabbaabbc
- X-Runtime:
- - '0.087224'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '204'
+ - '203'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/location-12.yml b/tests/test_playbooks/fixtures/location-12.yml
index 3b034ec5..76b7ce23 100644
--- a/tests/test_playbooks/fixtures/location-12.yml
+++ b/tests/test_playbooks/fixtures/location-12.yml
@@ -14,24 +14,18 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"1.24.1","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '63'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:30 GMT
- ETag:
- - W/"46a2e9ebe3393470b5018da3cfc1e32a"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -39,17 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=100
- Server:
- - Apache
- Set-Cookie:
- - _session_id=2a0cae48f87f2a2f931f9dbc37830cd7; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=100
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -58,14 +48,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - b0bbc77d-d82b-45a5-a28b-1ca13e83ff8f
- X-Runtime:
- - '0.122428'
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -78,8 +64,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=2a0cae48f87f2a2f931f9dbc37830cd7
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -88,8 +72,8 @@ interactions:
body:
string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-03-23
- 16:15:20 UTC\",\"updated_at\":\"2020-03-23 16:15:20 UTC\",\"id\":9,\"name\":\"Test
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:18:28 UTC\",\"updated_at\":\"2021-11-15 08:18:28 UTC\",\"id\":4,\"name\":\"Test
Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n"
headers:
Cache-Control:
@@ -98,14 +82,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:31 GMT
- ETag:
- - W/"792144805f6eaaed17866e9d64db090c-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -113,13 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=99
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=99
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -132,12 +108,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 1df54e4b-133f-4186-bf2e-8b56e9e8a815
- X-Runtime:
- - '0.014676'
X-XSS-Protection:
- 1; mode=block
content-length:
@@ -154,8 +124,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=2a0cae48f87f2a2f931f9dbc37830cd7
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -165,8 +133,8 @@ interactions:
string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 2\\\"\",\n
\ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
- [{\"ancestry\":\"9\",\"parent_id\":9,\"parent_name\":\"Test Location\",\"created_at\":\"2020-03-23
- 16:15:27 UTC\",\"updated_at\":\"2020-03-23 16:15:27 UTC\",\"id\":12,\"name\":\"Sub
+ [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"created_at\":\"2021-11-15
+ 08:18:33 UTC\",\"updated_at\":\"2021-11-15 08:18:33 UTC\",\"id\":7,\"name\":\"Sub
Location 2\",\"title\":\"Test Location/Sub Location 2\",\"description\":null}]\n}\n"
headers:
Cache-Control:
@@ -175,14 +143,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:31 GMT
- ETag:
- - W/"49393db45f1e1578e5a190c699e616b5-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -190,13 +154,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=98
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=98
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -209,16 +169,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - d69621ab-1a7a-41ef-aa16-ed7b7b9a9538
- X-Runtime:
- - '0.015124'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '423'
+ - '422'
status:
code: 200
message: OK
@@ -233,15 +187,13 @@ interactions:
- keep-alive
Content-Length:
- '0'
- Cookie:
- - _session_id=2a0cae48f87f2a2f931f9dbc37830cd7
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: DELETE
- uri: https://foreman.example.org/api/locations/12
+ uri: https://foreman.example.org/api/locations/7
response:
body:
- string: '{"id":12,"name":"Sub Location 2","created_at":"2020-03-23T16:15:27.980Z","updated_at":"2020-03-23T16:15:27.980Z","ignore_types":[],"ancestry":"9","title":"Test
+ string: '{"id":7,"name":"Sub Location 2","created_at":"2021-11-15T08:18:33.639Z","updated_at":"2021-11-15T08:18:33.639Z","ignore_types":[],"ancestry":"4","title":"Test
Location/Sub Location 2","description":null}'
headers:
Cache-Control:
@@ -250,14 +202,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:31 GMT
- ETag:
- - W/"66db216c18921f251841b45adb012276-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -265,15 +213,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=97
- Server:
- - Apache
- Set-Cookie:
- - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=97
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -286,16 +228,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 7a6a31ea-f83c-41ae-8cf5-2b58d19b35a0
- X-Runtime:
- - '0.079055'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '204'
+ - '203'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/location-13.yml b/tests/test_playbooks/fixtures/location-13.yml
index b61a9ea4..1dae32cc 100644
--- a/tests/test_playbooks/fixtures/location-13.yml
+++ b/tests/test_playbooks/fixtures/location-13.yml
@@ -14,24 +14,18 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"1.24.1","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '63'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:31 GMT
- ETag:
- - W/"46a2e9ebe3393470b5018da3cfc1e32a"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -39,17 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=100
- Server:
- - Apache
- Set-Cookie:
- - _session_id=0f24e0a6fb817c2cbd46e98aee26f279; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=100
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -58,14 +48,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - b5bcfb49-346d-4ddb-a9d5-caca5b66bfc0
- X-Runtime:
- - '0.122266'
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -78,8 +64,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=0f24e0a6fb817c2cbd46e98aee26f279
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -88,8 +72,8 @@ interactions:
body:
string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-03-23
- 16:15:20 UTC\",\"updated_at\":\"2020-03-23 16:15:20 UTC\",\"id\":9,\"name\":\"Test
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:18:28 UTC\",\"updated_at\":\"2021-11-15 08:18:28 UTC\",\"id\":4,\"name\":\"Test
Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n"
headers:
Cache-Control:
@@ -98,14 +82,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:31 GMT
- ETag:
- - W/"e3117ace4ed09de5c9e6ed2e210ac630-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -113,13 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=99
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=99
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -132,12 +108,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 5649d509-65f7-42e7-964e-11c9f3ac1c26
- X-Runtime:
- - '0.014564'
X-XSS-Protection:
- 1; mode=block
content-length:
@@ -154,8 +124,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=0f24e0a6fb817c2cbd46e98aee26f279
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -173,14 +141,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:31 GMT
- ETag:
- - W/"b8e71e03e170fd82412b76da69f794cd-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -188,13 +152,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=98
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=98
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -207,12 +167,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 3186b1e7-2ad6-4855-837b-08a5312874da
- X-Runtime:
- - '0.013566'
X-XSS-Protection:
- 1; mode=block
content-length:
diff --git a/tests/test_playbooks/fixtures/location-14.yml b/tests/test_playbooks/fixtures/location-14.yml
index 2739286c..b7e14ebc 100644
--- a/tests/test_playbooks/fixtures/location-14.yml
+++ b/tests/test_playbooks/fixtures/location-14.yml
@@ -14,24 +14,18 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"1.24.1","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '63'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:32 GMT
- ETag:
- - W/"46a2e9ebe3393470b5018da3cfc1e32a"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -39,17 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=100
- Server:
- - Apache
- Set-Cookie:
- - _session_id=f4fb4d2b138920ce6a78e54e135bbc6c; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=100
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -58,14 +48,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 291b2d1b-3191-4098-93f1-c9178957d533
- X-Runtime:
- - '0.121691'
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -78,8 +64,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=f4fb4d2b138920ce6a78e54e135bbc6c
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -88,8 +72,8 @@ interactions:
body:
string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-03-23
- 16:15:20 UTC\",\"updated_at\":\"2020-03-23 16:15:20 UTC\",\"id\":9,\"name\":\"Test
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:18:28 UTC\",\"updated_at\":\"2021-11-15 08:18:28 UTC\",\"id\":4,\"name\":\"Test
Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n"
headers:
Cache-Control:
@@ -98,14 +82,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:32 GMT
- ETag:
- - W/"e3117ace4ed09de5c9e6ed2e210ac630-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -113,13 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=99
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=99
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -132,12 +108,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 4ccec980-1298-4661-9edc-141eae33f123
- X-Runtime:
- - '0.015826'
X-XSS-Protection:
- 1; mode=block
content-length:
@@ -154,8 +124,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=f4fb4d2b138920ce6a78e54e135bbc6c
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -173,14 +141,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:32 GMT
- ETag:
- - W/"228d8d65d3ce252999bf32c95654087c-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -188,13 +152,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=98
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=98
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -207,12 +167,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 5b17fdfc-a6d5-490a-bf6c-44958d5fe05a
- X-Runtime:
- - '0.013220'
X-XSS-Protection:
- 1; mode=block
content-length:
diff --git a/tests/test_playbooks/fixtures/location-15.yml b/tests/test_playbooks/fixtures/location-15.yml
index 1ab79320..e56154fc 100644
--- a/tests/test_playbooks/fixtures/location-15.yml
+++ b/tests/test_playbooks/fixtures/location-15.yml
@@ -14,24 +14,18 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"1.24.1","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '63'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:32 GMT
- ETag:
- - W/"46a2e9ebe3393470b5018da3cfc1e32a"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -39,17 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=100
- Server:
- - Apache
- Set-Cookie:
- - _session_id=8deffe06a6994d221e3bcef9b22f5685; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=100
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -58,14 +48,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 756138f0-93b3-4a3d-9c4c-31e198063ae2
- X-Runtime:
- - '0.122472'
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -78,8 +64,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=8deffe06a6994d221e3bcef9b22f5685
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -88,8 +72,8 @@ interactions:
body:
string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-03-23
- 16:15:20 UTC\",\"updated_at\":\"2020-03-23 16:15:20 UTC\",\"id\":9,\"name\":\"Test
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:18:28 UTC\",\"updated_at\":\"2021-11-15 08:18:28 UTC\",\"id\":4,\"name\":\"Test
Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n"
headers:
Cache-Control:
@@ -98,14 +82,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:32 GMT
- ETag:
- - W/"e3117ace4ed09de5c9e6ed2e210ac630-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -113,13 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=99
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=99
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -132,12 +108,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 95061fe0-8b75-4475-821d-b6a75d37b51c
- X-Runtime:
- - '0.015468'
X-XSS-Protection:
- 1; mode=block
content-length:
@@ -156,15 +126,13 @@ interactions:
- keep-alive
Content-Length:
- '0'
- Cookie:
- - _session_id=8deffe06a6994d221e3bcef9b22f5685
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: DELETE
- uri: https://foreman.example.org/api/locations/9
+ uri: https://foreman.example.org/api/locations/4
response:
body:
- string: '{"id":9,"name":"Test Location","created_at":"2020-03-23T16:15:20.659Z","updated_at":"2020-03-23T16:15:20.659Z","ignore_types":[],"ancestry":null,"title":"Test
+ string: '{"id":4,"name":"Test Location","created_at":"2021-11-15T08:18:28.486Z","updated_at":"2021-11-15T08:18:28.486Z","ignore_types":[],"ancestry":null,"title":"Test
Location","description":null}'
headers:
Cache-Control:
@@ -173,14 +141,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:32 GMT
- ETag:
- - W/"b7999906b108b351d5a9d8c1f50ac1e9-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -188,15 +152,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=98
- Server:
- - Apache
- Set-Cookie:
- - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=98
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -209,12 +167,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 7164ab2e-475d-4ae6-b6e9-008c1455b2f9
- X-Runtime:
- - '0.080825'
X-XSS-Protection:
- 1; mode=block
content-length:
diff --git a/tests/test_playbooks/fixtures/location-16.yml b/tests/test_playbooks/fixtures/location-16.yml
index 3839e104..b9326c8c 100644
--- a/tests/test_playbooks/fixtures/location-16.yml
+++ b/tests/test_playbooks/fixtures/location-16.yml
@@ -14,24 +14,18 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"1.24.1","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '63'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:33 GMT
- ETag:
- - W/"46a2e9ebe3393470b5018da3cfc1e32a"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -39,17 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=100
- Server:
- - Apache
- Set-Cookie:
- - _session_id=da02918e11adef035c8b2cbc7e56e838; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=100
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -58,14 +48,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - caf6cdb9-2a59-4a3b-864c-35b62b3b01b6
- X-Runtime:
- - '0.121203'
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -78,8 +64,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=da02918e11adef035c8b2cbc7e56e838
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -96,14 +80,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:33 GMT
- ETag:
- - W/"67c3929d4af036ef10091310f87d6f7f-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -111,13 +91,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=99
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=99
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -130,12 +106,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 7b3c600c-e40b-43d5-bea0-60f375b43feb
- X-Runtime:
- - '0.015096'
X-XSS-Protection:
- 1; mode=block
content-length:
@@ -156,156 +126,110 @@ interactions:
- '39'
Content-Type:
- application/json
- Cookie:
- - _session_id=da02918e11adef035c8b2cbc7e56e838
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: POST
uri: https://foreman.example.org/api/locations
response:
body:
- string: '{"select_all_types":[],"description":null,"created_at":"2020-03-23
- 16:15:33 UTC","updated_at":"2020-03-23 16:15:33 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":13,"name":"Test
- Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"config_templates":[{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"}],"ptables":[{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart mirrored","id":104},{"description":null,"os_family":"Junos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Junos default
- fake","id":105},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default","id":106},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default
- thin","id":107},{"description":null,"os_family":"NXOS","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"NX-OS default
- fake","id":108},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- SCSI disk","id":97},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- virtual disk","id":98},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST LVM","id":99},{"description":null,"os_family":"Coreos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"CoreOS default
- fake","id":100},{"description":null,"os_family":"Rancheros","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Empty","id":101},{"description":null,"os_family":"Freebsd","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"FreeBSD default
- fake","id":102},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart default","id":103},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default","id":109},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default
- LVM","id":110},{"description":null,"os_family":"Xenserver","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"XenServer default","id":111}],"provisioning_templates":[{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[]}'
+ string: '{"select_all_types":[],"description":null,"created_at":"2021-11-15
+ 08:18:37 UTC","updated_at":"2021-11-15 08:18:37 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":8,"name":"Test
+ Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Junos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Junos default
+ fake","id":119,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"CoreOS default
+ fake","id":114,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Empty","id":115,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"FreeBSD default
+ fake","id":116,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart default","id":117,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart mirrored","id":118,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ SCSI disk","id":111,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ virtual disk","id":112,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST LVM","id":113,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart custom","id":120,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default","id":121,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default
+ thin","id":122,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart dynamic","id":123,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"NX-OS default
+ fake","id":124,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default","id":125,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default
+ LVM","id":126,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ partition table","id":127,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ GPT EFI partition table","id":128,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"XenServer default","id":129,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS
+ default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":2,"name":"Jumpstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":3,"name":"Kickstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":4,"name":"PXEGrub
+ default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":5,"name":"PXEGrub
+ global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"Kickstart
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":7,"name":"Preseed
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":34,"name":"Windows
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":8,"name":"PXEGrub2
+ default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":9,"name":"PXEGrub2
+ global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"Alterator
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":11,"name":"AutoYaST
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":12,"name":"CoreOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":13,"name":"FreeBSD
+ (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":14,"name":"Kickstart
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":15,"name":"Kickstart
+ oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":16,"name":"Preseed
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"PXELinux
+ chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":35,"name":"XenServer
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":18,"name":"PXELinux
+ chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"PXELinux
+ default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"PXELinux
+ default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux
+ global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"RancherOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"WAIK
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"Windows
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":25,"name":"XenServer
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":26,"name":"Junos
+ default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":27,"name":"CloudInit
+ default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":28,"name":"Alterator
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":29,"name":"FreeBSD
+ (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":30,"name":"Jumpstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":31,"name":"Junos
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":32,"name":"Kickstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":33,"name":"Preseed
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":36,"name":"Linux
+ host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":37,"name":"AutoYaST
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":38,"name":"iPXE
+ default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":39,"name":"iPXE
+ global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":40,"name":"iPXE
+ intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":41,"name":"Kickstart
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"Preseed
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"Windows
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"Alterator
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":45,"name":"Atomic
+ Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":46,"name":"AutoYaST
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":47,"name":"AutoYaST
+ SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":48,"name":"CoreOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"FreeBSD
+ (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":50,"name":"Jumpstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":51,"name":"Junos
+ default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"Kickstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"Kickstart
+ oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"Preseed
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"RancherOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Windows
+ default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":82,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":57,"name":"XenServer
+ default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"Global
+ Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":59,"name":"Grubby
+ default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"Windows
+ peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":61,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"Windows
+ network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"AutoYaST
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":107,"name":"Kickstart
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":108,"name":"Preseed
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":109,"name":"UserData
+ default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":110,"name":"UserData
+ open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[]}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -313,14 +237,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:33 GMT
- ETag:
- - W/"55ca1da26db98d562dabcd305e26d62f"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -328,15 +248,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=98
- Server:
- - Apache
- Set-Cookie:
- - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 201 Created
+ - timeout=15, max=98
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Transfer-Encoding:
@@ -349,12 +263,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 08d6ddd1-d17f-4743-b34f-0ea755fc9d0c
- X-Runtime:
- - '0.626980'
X-XSS-Protection:
- 1; mode=block
status:
diff --git a/tests/test_playbooks/fixtures/location-17.yml b/tests/test_playbooks/fixtures/location-17.yml
index 19913eaf..59550523 100644
--- a/tests/test_playbooks/fixtures/location-17.yml
+++ b/tests/test_playbooks/fixtures/location-17.yml
@@ -14,24 +14,18 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"1.24.1","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '63'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:34 GMT
- ETag:
- - W/"46a2e9ebe3393470b5018da3cfc1e32a"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -39,17 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=100
- Server:
- - Apache
- Set-Cookie:
- - _session_id=452d79d5e65e58d0cb0913d7b574ae21; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=100
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -58,14 +48,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 5b00f7b8-a062-4208-866b-6f8a7ec9bea9
- X-Runtime:
- - '0.121184'
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -78,8 +64,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=452d79d5e65e58d0cb0913d7b574ae21
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -88,8 +72,8 @@ interactions:
body:
string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-03-23
- 16:15:33 UTC\",\"updated_at\":\"2020-03-23 16:15:33 UTC\",\"id\":13,\"name\":\"Test
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:18:37 UTC\",\"updated_at\":\"2021-11-15 08:18:37 UTC\",\"id\":8,\"name\":\"Test
Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n"
headers:
Cache-Control:
@@ -98,14 +82,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:34 GMT
- ETag:
- - W/"924b25c29498fc78c08657179dd2a0c5-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -113,13 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=99
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=99
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -132,16 +108,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 6692e2e2-93ec-4710-99bb-bce963fd89e7
- X-Runtime:
- - '0.016810'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '385'
+ - '384'
status:
code: 200
message: OK
@@ -154,156 +124,110 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=452d79d5e65e58d0cb0913d7b574ae21
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations/13
+ uri: https://foreman.example.org/api/locations/8
response:
body:
- string: '{"select_all_types":[],"description":null,"created_at":"2020-03-23
- 16:15:33 UTC","updated_at":"2020-03-23 16:15:33 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":13,"name":"Test
- Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"config_templates":[{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"}],"ptables":[{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- SCSI disk","id":97},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- virtual disk","id":98},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST LVM","id":99},{"description":null,"os_family":"Coreos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"CoreOS default
- fake","id":100},{"description":null,"os_family":"Rancheros","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Empty","id":101},{"description":null,"os_family":"Freebsd","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"FreeBSD default
- fake","id":102},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart default","id":103},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart mirrored","id":104},{"description":null,"os_family":"Junos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Junos default
- fake","id":105},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default","id":106},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default
- thin","id":107},{"description":null,"os_family":"NXOS","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"NX-OS default
- fake","id":108},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default","id":109},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default
- LVM","id":110},{"description":null,"os_family":"Xenserver","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"XenServer default","id":111}],"provisioning_templates":[{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[]}'
+ string: '{"select_all_types":[],"description":null,"created_at":"2021-11-15
+ 08:18:37 UTC","updated_at":"2021-11-15 08:18:37 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":8,"name":"Test
+ Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ SCSI disk","id":111,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ virtual disk","id":112,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST LVM","id":113,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"CoreOS default
+ fake","id":114,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Empty","id":115,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"FreeBSD default
+ fake","id":116,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart default","id":117,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart mirrored","id":118,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Junos default
+ fake","id":119,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart custom","id":120,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default","id":121,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default
+ thin","id":122,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart dynamic","id":123,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"NX-OS default
+ fake","id":124,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default","id":125,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default
+ LVM","id":126,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ GPT EFI partition table","id":128,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ partition table","id":127,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"XenServer default","id":129,"inherited":false}],"provisioning_templates":[{"id":44,"name":"Alterator
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Alterator
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":10,"name":"Alterator
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":61,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":45,"name":"Atomic
+ Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":46,"name":"AutoYaST
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":37,"name":"AutoYaST
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":11,"name":"AutoYaST
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":106,"name":"AutoYaST
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":47,"name":"AutoYaST
+ SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":66,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":27,"name":"CloudInit
+ default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":70,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"CoreOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":12,"name":"CoreOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":71,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":29,"name":"FreeBSD
+ (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":49,"name":"FreeBSD
+ (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":13,"name":"FreeBSD
+ (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":78,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"Global
+ Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":59,"name":"Grubby
+ default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":79,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":38,"name":"iPXE
+ default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":39,"name":"iPXE
+ global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":40,"name":"iPXE
+ intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":50,"name":"Jumpstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Jumpstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":2,"name":"Jumpstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":31,"name":"Junos
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":51,"name":"Junos
+ default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":26,"name":"Junos
+ default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":52,"name":"Kickstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":32,"name":"Kickstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":41,"name":"Kickstart
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":3,"name":"Kickstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"Kickstart
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"Kickstart
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":107,"name":"Kickstart
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":83,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"name":"Kickstart
+ oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"Kickstart
+ oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":36,"name":"Linux
+ host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":89,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS
+ default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":54,"name":"Preseed
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Preseed
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":42,"name":"Preseed
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":7,"name":"Preseed
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":16,"name":"Preseed
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"Preseed
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":8,"name":"PXEGrub2
+ default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":95,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":9,"name":"PXEGrub2
+ global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":96,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":4,"name":"PXEGrub
+ default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":98,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub
+ global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":17,"name":"PXELinux
+ chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"PXELinux
+ chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":99,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":19,"name":"PXELinux
+ default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"PXELinux
+ default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":100,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":21,"name":"PXELinux
+ global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":101,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":55,"name":"RancherOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":22,"name":"RancherOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":102,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"UserData
+ default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":110,"name":"UserData
+ open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":23,"name":"WAIK
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":34,"name":"Windows
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":43,"name":"Windows
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":56,"name":"Windows
+ default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":24,"name":"Windows
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":85,"name":"Windows
+ network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"name":"Windows
+ peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":57,"name":"XenServer
+ default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"XenServer
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":25,"name":"XenServer
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":62,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[]}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -311,14 +235,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:34 GMT
- ETag:
- - W/"9a9e4c92802cb79e12c17b5461544f2e-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -326,13 +246,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=98
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=98
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -345,16 +261,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 9d4c11ba-6527-4798-8556-71fa076511cc
- X-Runtime:
- - '0.099503'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '20524'
+ - '15902'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/location-18.yml b/tests/test_playbooks/fixtures/location-18.yml
index da2285b7..75fa711a 100644
--- a/tests/test_playbooks/fixtures/location-18.yml
+++ b/tests/test_playbooks/fixtures/location-18.yml
@@ -14,24 +14,18 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"1.24.1","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '63'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:35 GMT
- ETag:
- - W/"46a2e9ebe3393470b5018da3cfc1e32a"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -39,17 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=100
- Server:
- - Apache
- Set-Cookie:
- - _session_id=fea48166419cac05cf98c2a947f7b7b4; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=100
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -58,14 +48,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - d5324d86-7694-44e1-9d71-f52e1ca23bf1
- X-Runtime:
- - '0.121317'
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -78,8 +64,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=fea48166419cac05cf98c2a947f7b7b4
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -88,8 +72,8 @@ interactions:
body:
string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-03-23
- 16:15:33 UTC\",\"updated_at\":\"2020-03-23 16:15:33 UTC\",\"id\":13,\"name\":\"Test
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:18:37 UTC\",\"updated_at\":\"2021-11-15 08:18:37 UTC\",\"id\":8,\"name\":\"Test
Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n"
headers:
Cache-Control:
@@ -98,14 +82,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:35 GMT
- ETag:
- - W/"924b25c29498fc78c08657179dd2a0c5-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -113,13 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=99
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=99
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -132,16 +108,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 09284bd2-02ce-449b-8b0a-d10a42a36377
- X-Runtime:
- - '0.014765'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '385'
+ - '384'
status:
code: 200
message: OK
@@ -154,156 +124,110 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=fea48166419cac05cf98c2a947f7b7b4
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations/13
+ uri: https://foreman.example.org/api/locations/8
response:
body:
- string: '{"select_all_types":[],"description":null,"created_at":"2020-03-23
- 16:15:33 UTC","updated_at":"2020-03-23 16:15:33 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":13,"name":"Test
- Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"config_templates":[{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"}],"ptables":[{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- SCSI disk","id":97},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- virtual disk","id":98},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST LVM","id":99},{"description":null,"os_family":"Coreos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"CoreOS default
- fake","id":100},{"description":null,"os_family":"Rancheros","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Empty","id":101},{"description":null,"os_family":"Freebsd","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"FreeBSD default
- fake","id":102},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart default","id":103},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart mirrored","id":104},{"description":null,"os_family":"Junos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Junos default
- fake","id":105},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default","id":106},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default
- thin","id":107},{"description":null,"os_family":"NXOS","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"NX-OS default
- fake","id":108},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default","id":109},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default
- LVM","id":110},{"description":null,"os_family":"Xenserver","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"XenServer default","id":111}],"provisioning_templates":[{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[]}'
+ string: '{"select_all_types":[],"description":null,"created_at":"2021-11-15
+ 08:18:37 UTC","updated_at":"2021-11-15 08:18:37 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":8,"name":"Test
+ Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ SCSI disk","id":111,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ virtual disk","id":112,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST LVM","id":113,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"CoreOS default
+ fake","id":114,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Empty","id":115,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"FreeBSD default
+ fake","id":116,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart default","id":117,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart mirrored","id":118,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Junos default
+ fake","id":119,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart custom","id":120,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default","id":121,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default
+ thin","id":122,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart dynamic","id":123,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"NX-OS default
+ fake","id":124,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default","id":125,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default
+ LVM","id":126,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ GPT EFI partition table","id":128,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ partition table","id":127,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"XenServer default","id":129,"inherited":false}],"provisioning_templates":[{"id":44,"name":"Alterator
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Alterator
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":10,"name":"Alterator
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":61,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":45,"name":"Atomic
+ Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":46,"name":"AutoYaST
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":37,"name":"AutoYaST
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":11,"name":"AutoYaST
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":106,"name":"AutoYaST
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":47,"name":"AutoYaST
+ SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":66,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":27,"name":"CloudInit
+ default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":70,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"CoreOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":12,"name":"CoreOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":71,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":29,"name":"FreeBSD
+ (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":49,"name":"FreeBSD
+ (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":13,"name":"FreeBSD
+ (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":78,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"Global
+ Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":59,"name":"Grubby
+ default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":79,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":38,"name":"iPXE
+ default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":39,"name":"iPXE
+ global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":40,"name":"iPXE
+ intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":50,"name":"Jumpstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Jumpstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":2,"name":"Jumpstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":31,"name":"Junos
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":51,"name":"Junos
+ default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":26,"name":"Junos
+ default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":52,"name":"Kickstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":32,"name":"Kickstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":41,"name":"Kickstart
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":3,"name":"Kickstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"Kickstart
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"Kickstart
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":107,"name":"Kickstart
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":83,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"name":"Kickstart
+ oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"Kickstart
+ oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":36,"name":"Linux
+ host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":89,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS
+ default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":54,"name":"Preseed
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Preseed
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":42,"name":"Preseed
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":7,"name":"Preseed
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":16,"name":"Preseed
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"Preseed
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":8,"name":"PXEGrub2
+ default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":95,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":9,"name":"PXEGrub2
+ global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":96,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":4,"name":"PXEGrub
+ default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":98,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub
+ global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":17,"name":"PXELinux
+ chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"PXELinux
+ chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":99,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":19,"name":"PXELinux
+ default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"PXELinux
+ default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":100,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":21,"name":"PXELinux
+ global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":101,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":55,"name":"RancherOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":22,"name":"RancherOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":102,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"UserData
+ default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":110,"name":"UserData
+ open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":23,"name":"WAIK
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":34,"name":"Windows
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":43,"name":"Windows
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":56,"name":"Windows
+ default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":24,"name":"Windows
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":85,"name":"Windows
+ network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"name":"Windows
+ peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":57,"name":"XenServer
+ default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"XenServer
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":25,"name":"XenServer
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":62,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[]}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -311,14 +235,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:35 GMT
- ETag:
- - W/"9a9e4c92802cb79e12c17b5461544f2e-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -326,13 +246,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=98
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=98
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -345,16 +261,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - e5bc64ef-2b9e-49c7-9b6b-fc76066f106d
- X-Runtime:
- - '0.095950'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '20524'
+ - '15902'
status:
code: 200
message: OK
@@ -367,12 +277,10 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=fea48166419cac05cf98c2a947f7b7b4
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations/13/parameters?per_page=4294967296
+ uri: https://foreman.example.org/api/locations/8/parameters?per_page=4294967296
response:
body:
string: "{\n \"total\": 0,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\":
@@ -385,28 +293,20 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:35 GMT
- ETag:
- - W/"b0ebd79c430c4781172af39880582aed-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
- - 13; Test Location
+ - 8; Test Location
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=97
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=97
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -419,12 +319,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 0bb10a11-2eb3-4680-9d6e-d0dac57ac95c
- X-Runtime:
- - '0.014397'
X-XSS-Protection:
- 1; mode=block
content-length:
@@ -446,16 +340,14 @@ interactions:
- '84'
Content-Type:
- application/json
- Cookie:
- - _session_id=fea48166419cac05cf98c2a947f7b7b4
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: POST
- uri: https://foreman.example.org/api/locations/13/parameters
+ uri: https://foreman.example.org/api/locations/8/parameters
response:
body:
- string: '{"priority":20,"created_at":"2020-03-23 16:15:35 UTC","updated_at":"2020-03-23
- 16:15:35 UTC","id":1,"name":"my_param","parameter_type":"string","value":"my
+ string: '{"priority":20,"created_at":"2021-11-15 08:18:38 UTC","updated_at":"2021-11-15
+ 08:18:38 UTC","id":4,"name":"my_param","parameter_type":"string","value":"my
value"}'
headers:
Cache-Control:
@@ -464,30 +356,20 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:35 GMT
- ETag:
- - W/"b1f67527a6993ff56811af4ed75ed20a"
Foreman_api_version:
- '2'
Foreman_current_location:
- - 13; Test Location
+ - 8; Test Location
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=96
- Server:
- - Apache
- Set-Cookie:
- - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 201 Created
+ - timeout=15, max=96
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Transfer-Encoding:
@@ -500,12 +382,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - d81ef0da-3c49-4f1d-bb60-6b42e5abc67f
- X-Runtime:
- - '0.053628'
X-XSS-Protection:
- 1; mode=block
status:
@@ -525,16 +401,14 @@ interactions:
- '91'
Content-Type:
- application/json
- Cookie:
- - _session_id=fea48166419cac05cf98c2a947f7b7b4; request_method=POST
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: POST
- uri: https://foreman.example.org/api/locations/13/parameters
+ uri: https://foreman.example.org/api/locations/8/parameters
response:
body:
- string: '{"priority":20,"created_at":"2020-03-23 16:15:35 UTC","updated_at":"2020-03-23
- 16:15:35 UTC","id":2,"name":"my_param2","parameter_type":"string","value":"my
+ string: '{"priority":20,"created_at":"2021-11-15 08:18:38 UTC","updated_at":"2021-11-15
+ 08:18:38 UTC","id":5,"name":"my_param2","parameter_type":"string","value":"my
other value"}'
headers:
Cache-Control:
@@ -543,28 +417,20 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:35 GMT
- ETag:
- - W/"34225dc320025b76fa5bcaf6f2d21c9b"
Foreman_api_version:
- '2'
Foreman_current_location:
- - 13; Test Location
+ - 8; Test Location
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=95
- Server:
- - Apache
- Status:
- - 201 Created
+ - timeout=15, max=95
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Transfer-Encoding:
@@ -577,12 +443,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - f184ed7b-d6fd-45d1-a5aa-71980fad4465
- X-Runtime:
- - '0.036069'
X-XSS-Protection:
- 1; mode=block
status:
@@ -602,16 +462,14 @@ interactions:
- '98'
Content-Type:
- application/json
- Cookie:
- - _session_id=fea48166419cac05cf98c2a947f7b7b4; request_method=POST
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: POST
- uri: https://foreman.example.org/api/locations/13/parameters
+ uri: https://foreman.example.org/api/locations/8/parameters
response:
body:
- string: '{"priority":20,"created_at":"2020-03-23 16:15:35 UTC","updated_at":"2020-03-23
- 16:15:35 UTC","id":3,"name":"my_param3","parameter_type":"array","value":["array","value"]}'
+ string: '{"priority":20,"created_at":"2021-11-15 08:18:38 UTC","updated_at":"2021-11-15
+ 08:18:38 UTC","id":6,"name":"my_param3","parameter_type":"array","value":["array","value"]}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -619,28 +477,20 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:35 GMT
- ETag:
- - W/"4e43a071e797d856b3eca4257cf89c67"
Foreman_api_version:
- '2'
Foreman_current_location:
- - 13; Test Location
+ - 8; Test Location
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=94
- Server:
- - Apache
- Status:
- - 201 Created
+ - timeout=15, max=94
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Transfer-Encoding:
@@ -653,12 +503,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 6604e0d2-8968-44a3-bfda-3206b8cd5379
- X-Runtime:
- - '0.033317'
X-XSS-Protection:
- 1; mode=block
status:
diff --git a/tests/test_playbooks/fixtures/location-19.yml b/tests/test_playbooks/fixtures/location-19.yml
index f6fb43a2..520337e8 100644
--- a/tests/test_playbooks/fixtures/location-19.yml
+++ b/tests/test_playbooks/fixtures/location-19.yml
@@ -14,24 +14,18 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"1.24.1","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '63'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:36 GMT
- ETag:
- - W/"46a2e9ebe3393470b5018da3cfc1e32a"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -39,17 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=100
- Server:
- - Apache
- Set-Cookie:
- - _session_id=5c5c7dcf1cb1e9bc1ba4bfa5c328d04c; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=100
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -58,14 +48,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - aeb3a413-7ff3-4270-9502-53507fc888ff
- X-Runtime:
- - '0.121264'
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -78,8 +64,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=5c5c7dcf1cb1e9bc1ba4bfa5c328d04c
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -88,8 +72,8 @@ interactions:
body:
string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-03-23
- 16:15:33 UTC\",\"updated_at\":\"2020-03-23 16:15:33 UTC\",\"id\":13,\"name\":\"Test
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:18:37 UTC\",\"updated_at\":\"2021-11-15 08:18:37 UTC\",\"id\":8,\"name\":\"Test
Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n"
headers:
Cache-Control:
@@ -98,14 +82,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:36 GMT
- ETag:
- - W/"924b25c29498fc78c08657179dd2a0c5-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -113,13 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=99
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=99
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -132,16 +108,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 975d9125-40f2-4a26-b524-a85924df4b10
- X-Runtime:
- - '0.014664'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '385'
+ - '384'
status:
code: 200
message: OK
@@ -154,161 +124,115 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=5c5c7dcf1cb1e9bc1ba4bfa5c328d04c
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations/13
+ uri: https://foreman.example.org/api/locations/8
response:
body:
- string: '{"select_all_types":[],"description":null,"created_at":"2020-03-23
- 16:15:33 UTC","updated_at":"2020-03-23 16:15:33 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":13,"name":"Test
- Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"config_templates":[{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"}],"ptables":[{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- SCSI disk","id":97},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- virtual disk","id":98},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST LVM","id":99},{"description":null,"os_family":"Coreos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"CoreOS default
- fake","id":100},{"description":null,"os_family":"Rancheros","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Empty","id":101},{"description":null,"os_family":"Freebsd","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"FreeBSD default
- fake","id":102},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart default","id":103},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart mirrored","id":104},{"description":null,"os_family":"Junos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Junos default
- fake","id":105},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default","id":106},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default
- thin","id":107},{"description":null,"os_family":"NXOS","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"NX-OS default
- fake","id":108},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default","id":109},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default
- LVM","id":110},{"description":null,"os_family":"Xenserver","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"XenServer default","id":111}],"provisioning_templates":[{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{"priority":20,"created_at":"2020-03-23
- 16:15:35 UTC","updated_at":"2020-03-23 16:15:35 UTC","id":1,"name":"my_param","parameter_type":"string","value":"my
- value"},{"priority":20,"created_at":"2020-03-23 16:15:35 UTC","updated_at":"2020-03-23
- 16:15:35 UTC","id":2,"name":"my_param2","parameter_type":"string","value":"my
- other value"},{"priority":20,"created_at":"2020-03-23 16:15:35 UTC","updated_at":"2020-03-23
- 16:15:35 UTC","id":3,"name":"my_param3","parameter_type":"array","value":["array","value"]}]}'
+ string: '{"select_all_types":[],"description":null,"created_at":"2021-11-15
+ 08:18:37 UTC","updated_at":"2021-11-15 08:18:37 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":8,"name":"Test
+ Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ SCSI disk","id":111,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ virtual disk","id":112,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST LVM","id":113,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"CoreOS default
+ fake","id":114,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Empty","id":115,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"FreeBSD default
+ fake","id":116,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart default","id":117,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart mirrored","id":118,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Junos default
+ fake","id":119,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart custom","id":120,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default","id":121,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default
+ thin","id":122,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart dynamic","id":123,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"NX-OS default
+ fake","id":124,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default","id":125,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default
+ LVM","id":126,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ GPT EFI partition table","id":128,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ partition table","id":127,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"XenServer default","id":129,"inherited":false}],"provisioning_templates":[{"id":44,"name":"Alterator
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Alterator
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":10,"name":"Alterator
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":61,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":45,"name":"Atomic
+ Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":46,"name":"AutoYaST
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":37,"name":"AutoYaST
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":11,"name":"AutoYaST
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":106,"name":"AutoYaST
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":47,"name":"AutoYaST
+ SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":66,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":27,"name":"CloudInit
+ default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":70,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"CoreOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":12,"name":"CoreOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":71,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":29,"name":"FreeBSD
+ (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":49,"name":"FreeBSD
+ (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":13,"name":"FreeBSD
+ (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":78,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"Global
+ Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":59,"name":"Grubby
+ default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":79,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":38,"name":"iPXE
+ default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":39,"name":"iPXE
+ global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":40,"name":"iPXE
+ intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":50,"name":"Jumpstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Jumpstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":2,"name":"Jumpstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":31,"name":"Junos
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":51,"name":"Junos
+ default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":26,"name":"Junos
+ default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":52,"name":"Kickstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":32,"name":"Kickstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":41,"name":"Kickstart
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":3,"name":"Kickstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"Kickstart
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"Kickstart
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":107,"name":"Kickstart
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":83,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"name":"Kickstart
+ oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"Kickstart
+ oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":36,"name":"Linux
+ host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":89,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS
+ default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":54,"name":"Preseed
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Preseed
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":42,"name":"Preseed
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":7,"name":"Preseed
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":16,"name":"Preseed
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"Preseed
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":8,"name":"PXEGrub2
+ default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":95,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":9,"name":"PXEGrub2
+ global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":96,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":4,"name":"PXEGrub
+ default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":98,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub
+ global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":17,"name":"PXELinux
+ chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"PXELinux
+ chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":99,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":19,"name":"PXELinux
+ default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"PXELinux
+ default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":100,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":21,"name":"PXELinux
+ global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":101,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":55,"name":"RancherOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":22,"name":"RancherOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":102,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"UserData
+ default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":110,"name":"UserData
+ open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":23,"name":"WAIK
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":34,"name":"Windows
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":43,"name":"Windows
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":56,"name":"Windows
+ default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":24,"name":"Windows
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":85,"name":"Windows
+ network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"name":"Windows
+ peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":57,"name":"XenServer
+ default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"XenServer
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":25,"name":"XenServer
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":62,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{"priority":20,"created_at":"2021-11-15
+ 08:18:38 UTC","updated_at":"2021-11-15 08:18:38 UTC","id":4,"name":"my_param","parameter_type":"string","value":"my
+ value"},{"priority":20,"created_at":"2021-11-15 08:18:38 UTC","updated_at":"2021-11-15
+ 08:18:38 UTC","id":5,"name":"my_param2","parameter_type":"string","value":"my
+ other value"},{"priority":20,"created_at":"2021-11-15 08:18:38 UTC","updated_at":"2021-11-15
+ 08:18:38 UTC","id":6,"name":"my_param3","parameter_type":"array","value":["array","value"]}]}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -316,14 +240,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:36 GMT
- ETag:
- - W/"d6a691ca28278204302e42f6f6ee2d8a-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -331,13 +251,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=98
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=98
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -350,16 +266,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - ea977580-c51b-4bc4-8382-b3402e8fe45d
- X-Runtime:
- - '0.100979'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '21029'
+ - '16407'
status:
code: 200
message: OK
@@ -372,22 +282,20 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=5c5c7dcf1cb1e9bc1ba4bfa5c328d04c
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations/13/parameters?per_page=4294967296
+ uri: https://foreman.example.org/api/locations/8/parameters?per_page=4294967296
response:
body:
string: "{\n \"total\": 3,\n \"subtotal\": 3,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \"order\":
- null\n },\n \"results\": [{\"priority\":20,\"created_at\":\"2020-03-23 16:15:35
- UTC\",\"updated_at\":\"2020-03-23 16:15:35 UTC\",\"id\":1,\"name\":\"my_param\",\"parameter_type\":\"string\",\"value\":\"my
- value\"},{\"priority\":20,\"created_at\":\"2020-03-23 16:15:35 UTC\",\"updated_at\":\"2020-03-23
- 16:15:35 UTC\",\"id\":2,\"name\":\"my_param2\",\"parameter_type\":\"string\",\"value\":\"my
- other value\"},{\"priority\":20,\"created_at\":\"2020-03-23 16:15:35 UTC\",\"updated_at\":\"2020-03-23
- 16:15:35 UTC\",\"id\":3,\"name\":\"my_param3\",\"parameter_type\":\"array\",\"value\":[\"array\",\"value\"]}]\n}\n"
+ null\n },\n \"results\": [{\"priority\":20,\"created_at\":\"2021-11-15 08:18:38
+ UTC\",\"updated_at\":\"2021-11-15 08:18:38 UTC\",\"id\":4,\"name\":\"my_param\",\"parameter_type\":\"string\",\"value\":\"my
+ value\"},{\"priority\":20,\"created_at\":\"2021-11-15 08:18:38 UTC\",\"updated_at\":\"2021-11-15
+ 08:18:38 UTC\",\"id\":5,\"name\":\"my_param2\",\"parameter_type\":\"string\",\"value\":\"my
+ other value\"},{\"priority\":20,\"created_at\":\"2021-11-15 08:18:38 UTC\",\"updated_at\":\"2021-11-15
+ 08:18:38 UTC\",\"id\":6,\"name\":\"my_param3\",\"parameter_type\":\"array\",\"value\":[\"array\",\"value\"]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -395,28 +303,20 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:36 GMT
- ETag:
- - W/"ffdc65aa850f1510c42fa5dc9669499e-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
- - 13; Test Location
+ - 8; Test Location
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=97
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=97
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -429,12 +329,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 2345ff0f-d628-46f4-b730-4596e0d00a4d
- X-Runtime:
- - '0.018209'
X-XSS-Protection:
- 1; mode=block
content-length:
diff --git a/tests/test_playbooks/fixtures/location-2.yml b/tests/test_playbooks/fixtures/location-2.yml
index 38e571b4..eebcb6d0 100644
--- a/tests/test_playbooks/fixtures/location-2.yml
+++ b/tests/test_playbooks/fixtures/location-2.yml
@@ -14,24 +14,18 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"1.24.1","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '63'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:22 GMT
- ETag:
- - W/"46a2e9ebe3393470b5018da3cfc1e32a"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -39,17 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=100
- Server:
- - Apache
- Set-Cookie:
- - _session_id=6b248b5348e1edce67256a9563e02c88; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=100
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -58,14 +48,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 8ea033b1-22f4-494f-9d20-05b4b12dbf18
- X-Runtime:
- - '0.124082'
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -78,8 +64,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=6b248b5348e1edce67256a9563e02c88
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -88,8 +72,8 @@ interactions:
body:
string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-03-23
- 16:15:20 UTC\",\"updated_at\":\"2020-03-23 16:15:20 UTC\",\"id\":9,\"name\":\"Test
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:18:28 UTC\",\"updated_at\":\"2021-11-15 08:18:28 UTC\",\"id\":4,\"name\":\"Test
Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n"
headers:
Cache-Control:
@@ -98,14 +82,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:22 GMT
- ETag:
- - W/"e3117ace4ed09de5c9e6ed2e210ac630-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -113,13 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=99
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=99
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -132,12 +108,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - b0c4f816-c2d2-4eec-bd3a-d059c133ccb7
- X-Runtime:
- - '0.017419'
X-XSS-Protection:
- 1; mode=block
content-length:
@@ -154,18 +124,17 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=6b248b5348e1edce67256a9563e02c88
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSub+Location+1%22&per_page=4294967296
+ uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\":
- 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1\\\"\",\n
- \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
- []\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:18:27 UTC\",\"updated_at\":\"2021-11-15 08:18:27 UTC\",\"id\":3,\"name\":\"Test
+ Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -173,14 +142,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:22 GMT
- ETag:
- - W/"b8e71e03e170fd82412b76da69f794cd-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -188,13 +153,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=98
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=98
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -207,16 +168,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - a568a488-77f3-4cba-af23-092cb89aae9e
- X-Runtime:
- - '0.013237'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '195'
+ - '412'
status:
code: 200
message: OK
@@ -229,19 +184,16 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=6b248b5348e1edce67256a9563e02c88
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
+ uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSub+Location+1%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
- 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
- {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-03-23
- 16:11:03 UTC\",\"updated_at\":\"2020-03-23 16:11:03 UTC\",\"id\":3,\"name\":\"Test
- Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ []\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -249,14 +201,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:22 GMT
- ETag:
- - W/"2e1140e6859365b0ffeedb9e359cf61e-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -264,13 +212,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=97
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=97
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -283,21 +227,15 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 1bc763b3-dd3c-4aef-975b-e6c817cd6e33
- X-Runtime:
- - '0.014526'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '412'
+ - '195'
status:
code: 200
message: OK
- request:
- body: '{"location": {"name": "Sub Location 1", "parent_id": 9, "organization_ids":
+ body: '{"location": {"name": "Sub Location 1", "parent_id": 4, "organization_ids":
[3]}}'
headers:
Accept:
@@ -310,157 +248,111 @@ interactions:
- '81'
Content-Type:
- application/json
- Cookie:
- - _session_id=6b248b5348e1edce67256a9563e02c88
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: POST
uri: https://foreman.example.org/api/locations
response:
body:
- string: '{"select_all_types":[],"description":null,"created_at":"2020-03-23
- 16:15:22 UTC","updated_at":"2020-03-23 16:15:22 UTC","ancestry":"9","parent_id":9,"parent_name":"Test
- Location","id":10,"name":"Sub Location 1","title":"Test Location/Sub Location
- 1","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"config_templates":[{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"}],"ptables":[{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart mirrored","id":104},{"description":null,"os_family":"Junos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Junos default
- fake","id":105},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default","id":106},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default
- thin","id":107},{"description":null,"os_family":"NXOS","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"NX-OS default
- fake","id":108},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- SCSI disk","id":97},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- virtual disk","id":98},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST LVM","id":99},{"description":null,"os_family":"Coreos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"CoreOS default
- fake","id":100},{"description":null,"os_family":"Rancheros","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Empty","id":101},{"description":null,"os_family":"Freebsd","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"FreeBSD default
- fake","id":102},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart default","id":103},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default","id":109},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default
- LVM","id":110},{"description":null,"os_family":"Xenserver","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"XenServer default","id":111}],"provisioning_templates":[{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[{"id":3,"name":"Test
+ string: '{"select_all_types":[],"description":null,"created_at":"2021-11-15
+ 08:18:29 UTC","updated_at":"2021-11-15 08:18:29 UTC","ancestry":"4","parent_id":4,"parent_name":"Test
+ Location","id":5,"name":"Sub Location 1","title":"Test Location/Sub Location
+ 1","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Junos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Junos default
+ fake","id":119,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"CoreOS default
+ fake","id":114,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Empty","id":115,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"FreeBSD default
+ fake","id":116,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart default","id":117,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart mirrored","id":118,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ SCSI disk","id":111,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ virtual disk","id":112,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST LVM","id":113,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart custom","id":120,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default","id":121,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default
+ thin","id":122,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart dynamic","id":123,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"NX-OS default
+ fake","id":124,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default","id":125,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default
+ LVM","id":126,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ partition table","id":127,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ GPT EFI partition table","id":128,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"XenServer default","id":129,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS
+ default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":2,"name":"Jumpstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":3,"name":"Kickstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":4,"name":"PXEGrub
+ default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":5,"name":"PXEGrub
+ global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"Kickstart
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":7,"name":"Preseed
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":34,"name":"Windows
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":8,"name":"PXEGrub2
+ default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":9,"name":"PXEGrub2
+ global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"Alterator
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":11,"name":"AutoYaST
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":12,"name":"CoreOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":13,"name":"FreeBSD
+ (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":14,"name":"Kickstart
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":15,"name":"Kickstart
+ oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":16,"name":"Preseed
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"PXELinux
+ chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":35,"name":"XenServer
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":18,"name":"PXELinux
+ chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"PXELinux
+ default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"PXELinux
+ default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux
+ global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"RancherOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"WAIK
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"Windows
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":25,"name":"XenServer
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":26,"name":"Junos
+ default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":27,"name":"CloudInit
+ default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":28,"name":"Alterator
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":29,"name":"FreeBSD
+ (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":30,"name":"Jumpstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":31,"name":"Junos
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":32,"name":"Kickstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":33,"name":"Preseed
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":36,"name":"Linux
+ host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":37,"name":"AutoYaST
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":38,"name":"iPXE
+ default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":39,"name":"iPXE
+ global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":40,"name":"iPXE
+ intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":41,"name":"Kickstart
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"Preseed
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"Windows
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"Alterator
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":45,"name":"Atomic
+ Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":46,"name":"AutoYaST
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":47,"name":"AutoYaST
+ SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":48,"name":"CoreOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"FreeBSD
+ (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":50,"name":"Jumpstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":51,"name":"Junos
+ default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"Kickstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"Kickstart
+ oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"Preseed
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"RancherOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Windows
+ default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":82,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":57,"name":"XenServer
+ default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"Global
+ Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":59,"name":"Grubby
+ default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"Windows
+ peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":61,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"Windows
+ network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"AutoYaST
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":107,"name":"Kickstart
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":108,"name":"Preseed
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":109,"name":"UserData
+ default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":110,"name":"UserData
+ open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[{"id":3,"name":"Test
Organization","title":"Test Organization","description":"A test organization"}],"hosts_count":0,"parameters":[{}]}'
headers:
Cache-Control:
@@ -469,14 +361,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:22 GMT
- ETag:
- - W/"ee1add1e84da39e6c9d23abc83360483"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -484,15 +372,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=96
- Server:
- - Apache
- Set-Cookie:
- - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 201 Created
+ - timeout=15, max=96
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Transfer-Encoding:
@@ -505,12 +387,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 64af80e6-b176-4384-a575-2a674cade1fa
- X-Runtime:
- - '0.659424'
X-XSS-Protection:
- 1; mode=block
status:
diff --git a/tests/test_playbooks/fixtures/location-20.yml b/tests/test_playbooks/fixtures/location-20.yml
index cb8d6fcd..1b0a69f9 100644
--- a/tests/test_playbooks/fixtures/location-20.yml
+++ b/tests/test_playbooks/fixtures/location-20.yml
@@ -14,24 +14,18 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"1.24.1","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '63'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:36 GMT
- ETag:
- - W/"46a2e9ebe3393470b5018da3cfc1e32a"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -39,17 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=100
- Server:
- - Apache
- Set-Cookie:
- - _session_id=bfef235ddf87fb777474d37b325e2a46; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=100
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -58,14 +48,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 8226a97b-e363-4878-8f13-2ea7321bced5
- X-Runtime:
- - '0.121683'
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -78,8 +64,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=bfef235ddf87fb777474d37b325e2a46
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -88,8 +72,8 @@ interactions:
body:
string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-03-23
- 16:15:33 UTC\",\"updated_at\":\"2020-03-23 16:15:33 UTC\",\"id\":13,\"name\":\"Test
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:18:37 UTC\",\"updated_at\":\"2021-11-15 08:18:37 UTC\",\"id\":8,\"name\":\"Test
Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n"
headers:
Cache-Control:
@@ -98,14 +82,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:36 GMT
- ETag:
- - W/"924b25c29498fc78c08657179dd2a0c5-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -113,13 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=99
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=99
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -132,16 +108,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 30632725-55a8-4b99-9deb-a9ea8a2fe722
- X-Runtime:
- - '0.014776'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '385'
+ - '384'
status:
code: 200
message: OK
@@ -154,161 +124,115 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=bfef235ddf87fb777474d37b325e2a46
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations/13
+ uri: https://foreman.example.org/api/locations/8
response:
body:
- string: '{"select_all_types":[],"description":null,"created_at":"2020-03-23
- 16:15:33 UTC","updated_at":"2020-03-23 16:15:33 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":13,"name":"Test
- Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"config_templates":[{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"}],"ptables":[{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- SCSI disk","id":97},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- virtual disk","id":98},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST LVM","id":99},{"description":null,"os_family":"Coreos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"CoreOS default
- fake","id":100},{"description":null,"os_family":"Rancheros","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Empty","id":101},{"description":null,"os_family":"Freebsd","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"FreeBSD default
- fake","id":102},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart default","id":103},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart mirrored","id":104},{"description":null,"os_family":"Junos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Junos default
- fake","id":105},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default","id":106},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default
- thin","id":107},{"description":null,"os_family":"NXOS","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"NX-OS default
- fake","id":108},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default","id":109},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default
- LVM","id":110},{"description":null,"os_family":"Xenserver","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"XenServer default","id":111}],"provisioning_templates":[{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{"priority":20,"created_at":"2020-03-23
- 16:15:35 UTC","updated_at":"2020-03-23 16:15:35 UTC","id":1,"name":"my_param","parameter_type":"string","value":"my
- value"},{"priority":20,"created_at":"2020-03-23 16:15:35 UTC","updated_at":"2020-03-23
- 16:15:35 UTC","id":2,"name":"my_param2","parameter_type":"string","value":"my
- other value"},{"priority":20,"created_at":"2020-03-23 16:15:35 UTC","updated_at":"2020-03-23
- 16:15:35 UTC","id":3,"name":"my_param3","parameter_type":"array","value":["array","value"]}]}'
+ string: '{"select_all_types":[],"description":null,"created_at":"2021-11-15
+ 08:18:37 UTC","updated_at":"2021-11-15 08:18:37 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":8,"name":"Test
+ Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ SCSI disk","id":111,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ virtual disk","id":112,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST LVM","id":113,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"CoreOS default
+ fake","id":114,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Empty","id":115,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"FreeBSD default
+ fake","id":116,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart default","id":117,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart mirrored","id":118,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Junos default
+ fake","id":119,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart custom","id":120,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default","id":121,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default
+ thin","id":122,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart dynamic","id":123,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"NX-OS default
+ fake","id":124,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default","id":125,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default
+ LVM","id":126,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ GPT EFI partition table","id":128,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ partition table","id":127,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"XenServer default","id":129,"inherited":false}],"provisioning_templates":[{"id":44,"name":"Alterator
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Alterator
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":10,"name":"Alterator
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":61,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":45,"name":"Atomic
+ Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":46,"name":"AutoYaST
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":37,"name":"AutoYaST
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":11,"name":"AutoYaST
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":106,"name":"AutoYaST
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":47,"name":"AutoYaST
+ SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":66,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":27,"name":"CloudInit
+ default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":70,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"CoreOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":12,"name":"CoreOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":71,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":29,"name":"FreeBSD
+ (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":49,"name":"FreeBSD
+ (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":13,"name":"FreeBSD
+ (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":78,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"Global
+ Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":59,"name":"Grubby
+ default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":79,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":38,"name":"iPXE
+ default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":39,"name":"iPXE
+ global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":40,"name":"iPXE
+ intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":50,"name":"Jumpstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Jumpstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":2,"name":"Jumpstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":31,"name":"Junos
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":51,"name":"Junos
+ default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":26,"name":"Junos
+ default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":52,"name":"Kickstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":32,"name":"Kickstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":41,"name":"Kickstart
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":3,"name":"Kickstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"Kickstart
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"Kickstart
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":107,"name":"Kickstart
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":83,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"name":"Kickstart
+ oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"Kickstart
+ oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":36,"name":"Linux
+ host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":89,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS
+ default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":54,"name":"Preseed
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Preseed
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":42,"name":"Preseed
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":7,"name":"Preseed
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":16,"name":"Preseed
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"Preseed
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":8,"name":"PXEGrub2
+ default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":95,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":9,"name":"PXEGrub2
+ global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":96,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":4,"name":"PXEGrub
+ default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":98,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub
+ global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":17,"name":"PXELinux
+ chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"PXELinux
+ chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":99,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":19,"name":"PXELinux
+ default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"PXELinux
+ default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":100,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":21,"name":"PXELinux
+ global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":101,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":55,"name":"RancherOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":22,"name":"RancherOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":102,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"UserData
+ default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":110,"name":"UserData
+ open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":23,"name":"WAIK
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":34,"name":"Windows
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":43,"name":"Windows
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":56,"name":"Windows
+ default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":24,"name":"Windows
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":85,"name":"Windows
+ network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"name":"Windows
+ peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":57,"name":"XenServer
+ default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"XenServer
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":25,"name":"XenServer
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":62,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{"priority":20,"created_at":"2021-11-15
+ 08:18:38 UTC","updated_at":"2021-11-15 08:18:38 UTC","id":4,"name":"my_param","parameter_type":"string","value":"my
+ value"},{"priority":20,"created_at":"2021-11-15 08:18:38 UTC","updated_at":"2021-11-15
+ 08:18:38 UTC","id":5,"name":"my_param2","parameter_type":"string","value":"my
+ other value"},{"priority":20,"created_at":"2021-11-15 08:18:38 UTC","updated_at":"2021-11-15
+ 08:18:38 UTC","id":6,"name":"my_param3","parameter_type":"array","value":["array","value"]}]}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -316,14 +240,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:36 GMT
- ETag:
- - W/"d6a691ca28278204302e42f6f6ee2d8a-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -331,13 +251,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=98
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=98
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -350,16 +266,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - bbb2dee4-6371-45ec-b391-62ef462e1a29
- X-Runtime:
- - '0.104549'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '21029'
+ - '16407'
status:
code: 200
message: OK
@@ -372,22 +282,20 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=bfef235ddf87fb777474d37b325e2a46
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations/13/parameters?per_page=4294967296
+ uri: https://foreman.example.org/api/locations/8/parameters?per_page=4294967296
response:
body:
string: "{\n \"total\": 3,\n \"subtotal\": 3,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \"order\":
- null\n },\n \"results\": [{\"priority\":20,\"created_at\":\"2020-03-23 16:15:35
- UTC\",\"updated_at\":\"2020-03-23 16:15:35 UTC\",\"id\":1,\"name\":\"my_param\",\"parameter_type\":\"string\",\"value\":\"my
- value\"},{\"priority\":20,\"created_at\":\"2020-03-23 16:15:35 UTC\",\"updated_at\":\"2020-03-23
- 16:15:35 UTC\",\"id\":2,\"name\":\"my_param2\",\"parameter_type\":\"string\",\"value\":\"my
- other value\"},{\"priority\":20,\"created_at\":\"2020-03-23 16:15:35 UTC\",\"updated_at\":\"2020-03-23
- 16:15:35 UTC\",\"id\":3,\"name\":\"my_param3\",\"parameter_type\":\"array\",\"value\":[\"array\",\"value\"]}]\n}\n"
+ null\n },\n \"results\": [{\"priority\":20,\"created_at\":\"2021-11-15 08:18:38
+ UTC\",\"updated_at\":\"2021-11-15 08:18:38 UTC\",\"id\":4,\"name\":\"my_param\",\"parameter_type\":\"string\",\"value\":\"my
+ value\"},{\"priority\":20,\"created_at\":\"2021-11-15 08:18:38 UTC\",\"updated_at\":\"2021-11-15
+ 08:18:38 UTC\",\"id\":5,\"name\":\"my_param2\",\"parameter_type\":\"string\",\"value\":\"my
+ other value\"},{\"priority\":20,\"created_at\":\"2021-11-15 08:18:38 UTC\",\"updated_at\":\"2021-11-15
+ 08:18:38 UTC\",\"id\":6,\"name\":\"my_param3\",\"parameter_type\":\"array\",\"value\":[\"array\",\"value\"]}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -395,28 +303,20 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:36 GMT
- ETag:
- - W/"ffdc65aa850f1510c42fa5dc9669499e-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
- - 13; Test Location
+ - 8; Test Location
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=97
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=97
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -429,12 +329,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - e671b8b0-12ad-4c9f-a51c-0adcbfabfed6
- X-Runtime:
- - '0.025741'
X-XSS-Protection:
- 1; mode=block
content-length:
@@ -453,15 +347,13 @@ interactions:
- keep-alive
Content-Length:
- '0'
- Cookie:
- - _session_id=bfef235ddf87fb777474d37b325e2a46
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: DELETE
- uri: https://foreman.example.org/api/locations/13/parameters/2
+ uri: https://foreman.example.org/api/locations/8/parameters/5
response:
body:
- string: '{"id":2,"name":"my_param2","value":"my other value","reference_id":13,"created_at":"2020-03-23T16:15:35.587Z","updated_at":"2020-03-23T16:15:35.587Z","priority":20,"hidden_value":"*****","key_type":"string","searchable_value":"my
+ string: '{"id":5,"name":"my_param2","value":"my other value","reference_id":8,"created_at":"2021-11-15T08:18:38.787Z","updated_at":"2021-11-15T08:18:38.787Z","priority":20,"hidden_value":"*****","key_type":"string","searchable_value":"my
other value"}'
headers:
Cache-Control:
@@ -470,30 +362,20 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:37 GMT
- ETag:
- - W/"a9698c37e74ded6d89615cd8846a6b17-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
- - 13; Test Location
+ - 8; Test Location
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=96
- Server:
- - Apache
- Set-Cookie:
- - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=96
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -506,16 +388,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 9a636247-d798-4618-a2a0-5dcb6265218e
- X-Runtime:
- - '0.032430'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '243'
+ - '242'
status:
code: 200
message: OK
@@ -530,15 +406,13 @@ interactions:
- keep-alive
Content-Length:
- '0'
- Cookie:
- - _session_id=bfef235ddf87fb777474d37b325e2a46; request_method=DELETE
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: DELETE
- uri: https://foreman.example.org/api/locations/13/parameters/3
+ uri: https://foreman.example.org/api/locations/8/parameters/6
response:
body:
- string: '{"id":3,"name":"my_param3","value":["array","value"],"reference_id":13,"created_at":"2020-03-23T16:15:35.629Z","updated_at":"2020-03-23T16:15:35.629Z","priority":20,"hidden_value":"*****","key_type":"array","searchable_value":"[\"array\",\"value\"]"}'
+ string: '{"id":6,"name":"my_param3","value":["array","value"],"reference_id":8,"created_at":"2021-11-15T08:18:38.809Z","updated_at":"2021-11-15T08:18:38.809Z","priority":20,"hidden_value":"*****","key_type":"array","searchable_value":"[\"array\",\"value\"]"}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -546,28 +420,20 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:37 GMT
- ETag:
- - W/"8924cee9d9f52a234dd179207993fc05-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
- - 13; Test Location
+ - 8; Test Location
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=95
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=95
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -580,16 +446,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 50ed8524-a68b-4c0a-8b75-9e2b5872e8e0
- X-Runtime:
- - '0.027659'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '250'
+ - '249'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/location-21.yml b/tests/test_playbooks/fixtures/location-21.yml
index 4585f8bb..161a201d 100644
--- a/tests/test_playbooks/fixtures/location-21.yml
+++ b/tests/test_playbooks/fixtures/location-21.yml
@@ -14,24 +14,18 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"1.24.1","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '63'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:37 GMT
- ETag:
- - W/"46a2e9ebe3393470b5018da3cfc1e32a"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -39,17 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=100
- Server:
- - Apache
- Set-Cookie:
- - _session_id=0868e13fc6c9294b2e84b25079428343; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=100
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -58,14 +48,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - e302aa00-329d-4431-b19f-6d4bb17c4e05
- X-Runtime:
- - '0.122133'
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -78,8 +64,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=0868e13fc6c9294b2e84b25079428343
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -88,8 +72,8 @@ interactions:
body:
string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-03-23
- 16:15:33 UTC\",\"updated_at\":\"2020-03-23 16:15:33 UTC\",\"id\":13,\"name\":\"Test
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:18:37 UTC\",\"updated_at\":\"2021-11-15 08:18:37 UTC\",\"id\":8,\"name\":\"Test
Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n"
headers:
Cache-Control:
@@ -98,14 +82,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:37 GMT
- ETag:
- - W/"924b25c29498fc78c08657179dd2a0c5-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -113,13 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=99
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=99
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -132,16 +108,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 3c5e0395-7069-4af1-86ad-0320a4ddeea2
- X-Runtime:
- - '0.016047'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '385'
+ - '384'
status:
code: 200
message: OK
@@ -154,157 +124,111 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=0868e13fc6c9294b2e84b25079428343
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations/13
+ uri: https://foreman.example.org/api/locations/8
response:
body:
- string: '{"select_all_types":[],"description":null,"created_at":"2020-03-23
- 16:15:33 UTC","updated_at":"2020-03-23 16:15:33 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":13,"name":"Test
- Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"config_templates":[{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"}],"ptables":[{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- SCSI disk","id":97},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- virtual disk","id":98},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST LVM","id":99},{"description":null,"os_family":"Coreos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"CoreOS default
- fake","id":100},{"description":null,"os_family":"Rancheros","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Empty","id":101},{"description":null,"os_family":"Freebsd","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"FreeBSD default
- fake","id":102},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart default","id":103},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart mirrored","id":104},{"description":null,"os_family":"Junos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Junos default
- fake","id":105},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default","id":106},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default
- thin","id":107},{"description":null,"os_family":"NXOS","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"NX-OS default
- fake","id":108},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default","id":109},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default
- LVM","id":110},{"description":null,"os_family":"Xenserver","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"XenServer default","id":111}],"provisioning_templates":[{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{"priority":20,"created_at":"2020-03-23
- 16:15:35 UTC","updated_at":"2020-03-23 16:15:35 UTC","id":1,"name":"my_param","parameter_type":"string","value":"my
+ string: '{"select_all_types":[],"description":null,"created_at":"2021-11-15
+ 08:18:37 UTC","updated_at":"2021-11-15 08:18:37 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":8,"name":"Test
+ Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ SCSI disk","id":111,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ virtual disk","id":112,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST LVM","id":113,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"CoreOS default
+ fake","id":114,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Empty","id":115,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"FreeBSD default
+ fake","id":116,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart default","id":117,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart mirrored","id":118,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Junos default
+ fake","id":119,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart custom","id":120,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default","id":121,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default
+ thin","id":122,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart dynamic","id":123,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"NX-OS default
+ fake","id":124,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default","id":125,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default
+ LVM","id":126,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ GPT EFI partition table","id":128,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ partition table","id":127,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"XenServer default","id":129,"inherited":false}],"provisioning_templates":[{"id":44,"name":"Alterator
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Alterator
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":10,"name":"Alterator
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":61,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":45,"name":"Atomic
+ Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":46,"name":"AutoYaST
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":37,"name":"AutoYaST
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":11,"name":"AutoYaST
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":106,"name":"AutoYaST
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":47,"name":"AutoYaST
+ SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":66,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":27,"name":"CloudInit
+ default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":70,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"CoreOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":12,"name":"CoreOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":71,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":29,"name":"FreeBSD
+ (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":49,"name":"FreeBSD
+ (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":13,"name":"FreeBSD
+ (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":78,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"Global
+ Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":59,"name":"Grubby
+ default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":79,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":38,"name":"iPXE
+ default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":39,"name":"iPXE
+ global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":40,"name":"iPXE
+ intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":50,"name":"Jumpstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Jumpstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":2,"name":"Jumpstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":31,"name":"Junos
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":51,"name":"Junos
+ default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":26,"name":"Junos
+ default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":52,"name":"Kickstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":32,"name":"Kickstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":41,"name":"Kickstart
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":3,"name":"Kickstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"Kickstart
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"Kickstart
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":107,"name":"Kickstart
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":83,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"name":"Kickstart
+ oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"Kickstart
+ oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":36,"name":"Linux
+ host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":89,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS
+ default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":54,"name":"Preseed
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Preseed
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":42,"name":"Preseed
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":7,"name":"Preseed
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":16,"name":"Preseed
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"Preseed
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":8,"name":"PXEGrub2
+ default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":95,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":9,"name":"PXEGrub2
+ global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":96,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":4,"name":"PXEGrub
+ default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":98,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub
+ global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":17,"name":"PXELinux
+ chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"PXELinux
+ chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":99,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":19,"name":"PXELinux
+ default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"PXELinux
+ default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":100,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":21,"name":"PXELinux
+ global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":101,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":55,"name":"RancherOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":22,"name":"RancherOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":102,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"UserData
+ default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":110,"name":"UserData
+ open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":23,"name":"WAIK
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":34,"name":"Windows
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":43,"name":"Windows
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":56,"name":"Windows
+ default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":24,"name":"Windows
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":85,"name":"Windows
+ network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"name":"Windows
+ peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":57,"name":"XenServer
+ default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"XenServer
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":25,"name":"XenServer
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":62,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{"priority":20,"created_at":"2021-11-15
+ 08:18:38 UTC","updated_at":"2021-11-15 08:18:38 UTC","id":4,"name":"my_param","parameter_type":"string","value":"my
value"}]}'
headers:
Cache-Control:
@@ -313,14 +237,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:37 GMT
- ETag:
- - W/"fc07c93d33f04b9beab71d670142d584-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -328,13 +248,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=98
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=98
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -347,16 +263,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 2a4a67ea-16a0-44c2-bd89-f3ee2baa6e8b
- X-Runtime:
- - '0.148258'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '20687'
+ - '16065'
status:
code: 200
message: OK
@@ -369,18 +279,16 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=0868e13fc6c9294b2e84b25079428343
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations/13/parameters?per_page=4294967296
+ uri: https://foreman.example.org/api/locations/8/parameters?per_page=4294967296
response:
body:
string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \"order\":
- null\n },\n \"results\": [{\"priority\":20,\"created_at\":\"2020-03-23 16:15:35
- UTC\",\"updated_at\":\"2020-03-23 16:15:35 UTC\",\"id\":1,\"name\":\"my_param\",\"parameter_type\":\"string\",\"value\":\"my
+ null\n },\n \"results\": [{\"priority\":20,\"created_at\":\"2021-11-15 08:18:38
+ UTC\",\"updated_at\":\"2021-11-15 08:18:38 UTC\",\"id\":4,\"name\":\"my_param\",\"parameter_type\":\"string\",\"value\":\"my
value\"}]\n}\n"
headers:
Cache-Control:
@@ -389,28 +297,20 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:37 GMT
- ETag:
- - W/"80c7f2bdaf5df22ba11a4ea8c54b34d4-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
- - 13; Test Location
+ - 8; Test Location
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=97
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=97
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -423,12 +323,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 92ab22fc-0155-4643-9301-f267ac16b6c5
- X-Runtime:
- - '0.019097'
X-XSS-Protection:
- 1; mode=block
content-length:
diff --git a/tests/test_playbooks/fixtures/location-22.yml b/tests/test_playbooks/fixtures/location-22.yml
index e35c48c2..48d4dce1 100644
--- a/tests/test_playbooks/fixtures/location-22.yml
+++ b/tests/test_playbooks/fixtures/location-22.yml
@@ -14,24 +14,18 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"1.24.1","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '63'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:38 GMT
- ETag:
- - W/"46a2e9ebe3393470b5018da3cfc1e32a"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -39,17 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=100
- Server:
- - Apache
- Set-Cookie:
- - _session_id=0b0bd00b494f74a1e684ac14f398ab76; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=100
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -58,14 +48,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 1b4f8f5e-cac4-4a2b-bc5b-aa7ce0807d80
- X-Runtime:
- - '0.125906'
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -78,8 +64,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=0b0bd00b494f74a1e684ac14f398ab76
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -88,8 +72,8 @@ interactions:
body:
string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-03-23
- 16:15:33 UTC\",\"updated_at\":\"2020-03-23 16:15:33 UTC\",\"id\":13,\"name\":\"Test
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:18:37 UTC\",\"updated_at\":\"2021-11-15 08:18:37 UTC\",\"id\":8,\"name\":\"Test
Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n"
headers:
Cache-Control:
@@ -98,14 +82,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:38 GMT
- ETag:
- - W/"924b25c29498fc78c08657179dd2a0c5-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -113,13 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=99
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=99
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -132,16 +108,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - b6e50c0c-8e49-4ea9-9e45-0348d360c72a
- X-Runtime:
- - '0.020565'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '385'
+ - '384'
status:
code: 200
message: OK
@@ -154,157 +124,111 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=0b0bd00b494f74a1e684ac14f398ab76
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations/13
+ uri: https://foreman.example.org/api/locations/8
response:
body:
- string: '{"select_all_types":[],"description":null,"created_at":"2020-03-23
- 16:15:33 UTC","updated_at":"2020-03-23 16:15:33 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":13,"name":"Test
- Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"config_templates":[{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"}],"ptables":[{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- SCSI disk","id":97},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- virtual disk","id":98},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST LVM","id":99},{"description":null,"os_family":"Coreos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"CoreOS default
- fake","id":100},{"description":null,"os_family":"Rancheros","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Empty","id":101},{"description":null,"os_family":"Freebsd","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"FreeBSD default
- fake","id":102},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart default","id":103},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart mirrored","id":104},{"description":null,"os_family":"Junos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Junos default
- fake","id":105},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default","id":106},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default
- thin","id":107},{"description":null,"os_family":"NXOS","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"NX-OS default
- fake","id":108},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default","id":109},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default
- LVM","id":110},{"description":null,"os_family":"Xenserver","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"XenServer default","id":111}],"provisioning_templates":[{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{"priority":20,"created_at":"2020-03-23
- 16:15:35 UTC","updated_at":"2020-03-23 16:15:35 UTC","id":1,"name":"my_param","parameter_type":"string","value":"my
+ string: '{"select_all_types":[],"description":null,"created_at":"2021-11-15
+ 08:18:37 UTC","updated_at":"2021-11-15 08:18:37 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":8,"name":"Test
+ Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ SCSI disk","id":111,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ virtual disk","id":112,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST LVM","id":113,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"CoreOS default
+ fake","id":114,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Empty","id":115,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"FreeBSD default
+ fake","id":116,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart default","id":117,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart mirrored","id":118,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Junos default
+ fake","id":119,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart custom","id":120,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default","id":121,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default
+ thin","id":122,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart dynamic","id":123,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"NX-OS default
+ fake","id":124,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default","id":125,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default
+ LVM","id":126,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ GPT EFI partition table","id":128,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ partition table","id":127,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"XenServer default","id":129,"inherited":false}],"provisioning_templates":[{"id":44,"name":"Alterator
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Alterator
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":10,"name":"Alterator
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":61,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":45,"name":"Atomic
+ Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":46,"name":"AutoYaST
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":37,"name":"AutoYaST
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":11,"name":"AutoYaST
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":106,"name":"AutoYaST
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":47,"name":"AutoYaST
+ SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":66,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":27,"name":"CloudInit
+ default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":70,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"CoreOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":12,"name":"CoreOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":71,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":29,"name":"FreeBSD
+ (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":49,"name":"FreeBSD
+ (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":13,"name":"FreeBSD
+ (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":78,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"Global
+ Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":59,"name":"Grubby
+ default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":79,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":38,"name":"iPXE
+ default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":39,"name":"iPXE
+ global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":40,"name":"iPXE
+ intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":50,"name":"Jumpstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Jumpstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":2,"name":"Jumpstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":31,"name":"Junos
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":51,"name":"Junos
+ default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":26,"name":"Junos
+ default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":52,"name":"Kickstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":32,"name":"Kickstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":41,"name":"Kickstart
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":3,"name":"Kickstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"Kickstart
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"Kickstart
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":107,"name":"Kickstart
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":83,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"name":"Kickstart
+ oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"Kickstart
+ oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":36,"name":"Linux
+ host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":89,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS
+ default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":54,"name":"Preseed
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Preseed
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":42,"name":"Preseed
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":7,"name":"Preseed
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":16,"name":"Preseed
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"Preseed
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":8,"name":"PXEGrub2
+ default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":95,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":9,"name":"PXEGrub2
+ global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":96,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":4,"name":"PXEGrub
+ default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":98,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub
+ global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":17,"name":"PXELinux
+ chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"PXELinux
+ chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":99,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":19,"name":"PXELinux
+ default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"PXELinux
+ default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":100,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":21,"name":"PXELinux
+ global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":101,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":55,"name":"RancherOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":22,"name":"RancherOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":102,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"UserData
+ default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":110,"name":"UserData
+ open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":23,"name":"WAIK
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":34,"name":"Windows
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":43,"name":"Windows
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":56,"name":"Windows
+ default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":24,"name":"Windows
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":85,"name":"Windows
+ network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"name":"Windows
+ peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":57,"name":"XenServer
+ default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"XenServer
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":25,"name":"XenServer
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":62,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{"priority":20,"created_at":"2021-11-15
+ 08:18:38 UTC","updated_at":"2021-11-15 08:18:38 UTC","id":4,"name":"my_param","parameter_type":"string","value":"my
value"}]}'
headers:
Cache-Control:
@@ -313,14 +237,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:38 GMT
- ETag:
- - W/"fc07c93d33f04b9beab71d670142d584-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -328,13 +248,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=98
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=98
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -347,16 +263,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 7ea50394-b9d7-4f1c-a73e-489fa0df1c72
- X-Runtime:
- - '0.116775'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '20687'
+ - '16065'
status:
code: 200
message: OK
@@ -369,18 +279,16 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=0b0bd00b494f74a1e684ac14f398ab76
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations/13/parameters?per_page=4294967296
+ uri: https://foreman.example.org/api/locations/8/parameters?per_page=4294967296
response:
body:
string: "{\n \"total\": 1,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \"order\":
- null\n },\n \"results\": [{\"priority\":20,\"created_at\":\"2020-03-23 16:15:35
- UTC\",\"updated_at\":\"2020-03-23 16:15:35 UTC\",\"id\":1,\"name\":\"my_param\",\"parameter_type\":\"string\",\"value\":\"my
+ null\n },\n \"results\": [{\"priority\":20,\"created_at\":\"2021-11-15 08:18:38
+ UTC\",\"updated_at\":\"2021-11-15 08:18:38 UTC\",\"id\":4,\"name\":\"my_param\",\"parameter_type\":\"string\",\"value\":\"my
value\"}]\n}\n"
headers:
Cache-Control:
@@ -389,28 +297,20 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:38 GMT
- ETag:
- - W/"80c7f2bdaf5df22ba11a4ea8c54b34d4-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
- - 13; Test Location
+ - 8; Test Location
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=97
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=97
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -423,12 +323,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 07e56d9d-610a-461a-9e99-5946b101b50d
- X-Runtime:
- - '0.016388'
X-XSS-Protection:
- 1; mode=block
content-length:
@@ -447,15 +341,13 @@ interactions:
- keep-alive
Content-Length:
- '0'
- Cookie:
- - _session_id=0b0bd00b494f74a1e684ac14f398ab76
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: DELETE
- uri: https://foreman.example.org/api/locations/13/parameters/1
+ uri: https://foreman.example.org/api/locations/8/parameters/4
response:
body:
- string: '{"id":1,"name":"my_param","value":"my value","reference_id":13,"created_at":"2020-03-23T16:15:35.540Z","updated_at":"2020-03-23T16:15:35.540Z","priority":20,"hidden_value":"*****","key_type":"string","searchable_value":"my
+ string: '{"id":4,"name":"my_param","value":"my value","reference_id":8,"created_at":"2021-11-15T08:18:38.763Z","updated_at":"2021-11-15T08:18:38.763Z","priority":20,"hidden_value":"*****","key_type":"string","searchable_value":"my
value"}'
headers:
Cache-Control:
@@ -464,30 +356,20 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:38 GMT
- ETag:
- - W/"603539fedbd623220cd9546aba0ba01d-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
- - 13; Test Location
+ - 8; Test Location
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=96
- Server:
- - Apache
- Set-Cookie:
- - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=96
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -500,16 +382,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - d9922e80-629e-40c5-a46e-95c39f02c735
- X-Runtime:
- - '0.029037'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '230'
+ - '229'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/location-23.yml b/tests/test_playbooks/fixtures/location-23.yml
index b3b1a00f..59550523 100644
--- a/tests/test_playbooks/fixtures/location-23.yml
+++ b/tests/test_playbooks/fixtures/location-23.yml
@@ -14,24 +14,18 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"1.24.1","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '63'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:39 GMT
- ETag:
- - W/"46a2e9ebe3393470b5018da3cfc1e32a"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -39,17 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=100
- Server:
- - Apache
- Set-Cookie:
- - _session_id=d6f940265c3ee7741555b87ef77a22bd; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=100
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -58,14 +48,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 6db37e7a-2fd8-403d-8b4a-bb7f32af0c19
- X-Runtime:
- - '0.121935'
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -78,8 +64,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=d6f940265c3ee7741555b87ef77a22bd
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -88,8 +72,8 @@ interactions:
body:
string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-03-23
- 16:15:33 UTC\",\"updated_at\":\"2020-03-23 16:15:33 UTC\",\"id\":13,\"name\":\"Test
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:18:37 UTC\",\"updated_at\":\"2021-11-15 08:18:37 UTC\",\"id\":8,\"name\":\"Test
Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n"
headers:
Cache-Control:
@@ -98,14 +82,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:39 GMT
- ETag:
- - W/"924b25c29498fc78c08657179dd2a0c5-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -113,13 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=99
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=99
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -132,16 +108,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 1ecd2c15-d705-4e2e-a10b-be7a3ca58880
- X-Runtime:
- - '0.015181'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '385'
+ - '384'
status:
code: 200
message: OK
@@ -154,156 +124,110 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=d6f940265c3ee7741555b87ef77a22bd
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations/13
+ uri: https://foreman.example.org/api/locations/8
response:
body:
- string: '{"select_all_types":[],"description":null,"created_at":"2020-03-23
- 16:15:33 UTC","updated_at":"2020-03-23 16:15:33 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":13,"name":"Test
- Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"config_templates":[{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"}],"ptables":[{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- SCSI disk","id":97},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- virtual disk","id":98},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST LVM","id":99},{"description":null,"os_family":"Coreos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"CoreOS default
- fake","id":100},{"description":null,"os_family":"Rancheros","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Empty","id":101},{"description":null,"os_family":"Freebsd","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"FreeBSD default
- fake","id":102},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart default","id":103},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart mirrored","id":104},{"description":null,"os_family":"Junos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Junos default
- fake","id":105},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default","id":106},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default
- thin","id":107},{"description":null,"os_family":"NXOS","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"NX-OS default
- fake","id":108},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default","id":109},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default
- LVM","id":110},{"description":null,"os_family":"Xenserver","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"XenServer default","id":111}],"provisioning_templates":[{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[]}'
+ string: '{"select_all_types":[],"description":null,"created_at":"2021-11-15
+ 08:18:37 UTC","updated_at":"2021-11-15 08:18:37 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":8,"name":"Test
+ Location","title":"Test Location","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ SCSI disk","id":111,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ virtual disk","id":112,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST LVM","id":113,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"CoreOS default
+ fake","id":114,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Empty","id":115,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"FreeBSD default
+ fake","id":116,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart default","id":117,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart mirrored","id":118,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Junos default
+ fake","id":119,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart custom","id":120,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default","id":121,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default
+ thin","id":122,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart dynamic","id":123,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"NX-OS default
+ fake","id":124,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default","id":125,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default
+ LVM","id":126,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ GPT EFI partition table","id":128,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ partition table","id":127,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"XenServer default","id":129,"inherited":false}],"provisioning_templates":[{"id":44,"name":"Alterator
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Alterator
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":10,"name":"Alterator
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":61,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":45,"name":"Atomic
+ Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":46,"name":"AutoYaST
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":37,"name":"AutoYaST
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":11,"name":"AutoYaST
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":106,"name":"AutoYaST
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":47,"name":"AutoYaST
+ SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":66,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":27,"name":"CloudInit
+ default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":70,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"CoreOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":12,"name":"CoreOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":71,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":29,"name":"FreeBSD
+ (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":49,"name":"FreeBSD
+ (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":13,"name":"FreeBSD
+ (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":78,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"Global
+ Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":59,"name":"Grubby
+ default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":79,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":38,"name":"iPXE
+ default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":39,"name":"iPXE
+ global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":40,"name":"iPXE
+ intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":50,"name":"Jumpstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Jumpstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":2,"name":"Jumpstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":31,"name":"Junos
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":51,"name":"Junos
+ default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":26,"name":"Junos
+ default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":52,"name":"Kickstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":32,"name":"Kickstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":41,"name":"Kickstart
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":3,"name":"Kickstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"Kickstart
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"Kickstart
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":107,"name":"Kickstart
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":83,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"name":"Kickstart
+ oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"Kickstart
+ oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":36,"name":"Linux
+ host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":89,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS
+ default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":54,"name":"Preseed
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Preseed
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":42,"name":"Preseed
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":7,"name":"Preseed
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":16,"name":"Preseed
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"Preseed
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":8,"name":"PXEGrub2
+ default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":95,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":9,"name":"PXEGrub2
+ global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":96,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":4,"name":"PXEGrub
+ default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":98,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub
+ global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":17,"name":"PXELinux
+ chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"PXELinux
+ chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":99,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":19,"name":"PXELinux
+ default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"PXELinux
+ default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":100,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":21,"name":"PXELinux
+ global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":101,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":55,"name":"RancherOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":22,"name":"RancherOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":102,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"UserData
+ default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":110,"name":"UserData
+ open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":23,"name":"WAIK
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":34,"name":"Windows
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":43,"name":"Windows
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":56,"name":"Windows
+ default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":24,"name":"Windows
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":85,"name":"Windows
+ network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"name":"Windows
+ peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":57,"name":"XenServer
+ default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"XenServer
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":25,"name":"XenServer
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":62,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[]}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -311,14 +235,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:39 GMT
- ETag:
- - W/"9a9e4c92802cb79e12c17b5461544f2e-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -326,13 +246,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=98
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=98
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -345,16 +261,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 2bebb137-31c7-49b8-9bb9-0433440a97d7
- X-Runtime:
- - '0.100414'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '20524'
+ - '15902'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/location-24.yml b/tests/test_playbooks/fixtures/location-24.yml
index cad87c2a..23fa6727 100644
--- a/tests/test_playbooks/fixtures/location-24.yml
+++ b/tests/test_playbooks/fixtures/location-24.yml
@@ -14,24 +14,18 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"1.24.1","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '63'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:39 GMT
- ETag:
- - W/"46a2e9ebe3393470b5018da3cfc1e32a"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -39,17 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=100
- Server:
- - Apache
- Set-Cookie:
- - _session_id=4ec143bca56f24a0a8762ec722b3f197; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=100
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -58,14 +48,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 403501c2-273e-458c-844f-5747f411e46f
- X-Runtime:
- - '0.120190'
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -78,8 +64,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=4ec143bca56f24a0a8762ec722b3f197
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -88,8 +72,8 @@ interactions:
body:
string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-03-23
- 16:15:33 UTC\",\"updated_at\":\"2020-03-23 16:15:33 UTC\",\"id\":13,\"name\":\"Test
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:18:37 UTC\",\"updated_at\":\"2021-11-15 08:18:37 UTC\",\"id\":8,\"name\":\"Test
Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n"
headers:
Cache-Control:
@@ -98,14 +82,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:39 GMT
- ETag:
- - W/"924b25c29498fc78c08657179dd2a0c5-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -113,13 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=99
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=99
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -132,16 +108,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 1d2dcbb1-a611-467f-82be-61546b825d53
- X-Runtime:
- - '0.014835'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '385'
+ - '384'
status:
code: 200
message: OK
@@ -156,15 +126,13 @@ interactions:
- keep-alive
Content-Length:
- '0'
- Cookie:
- - _session_id=4ec143bca56f24a0a8762ec722b3f197
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: DELETE
- uri: https://foreman.example.org/api/locations/13
+ uri: https://foreman.example.org/api/locations/8
response:
body:
- string: '{"id":13,"name":"Test Location","created_at":"2020-03-23T16:15:33.535Z","updated_at":"2020-03-23T16:15:33.535Z","ignore_types":[],"ancestry":null,"title":"Test
+ string: '{"id":8,"name":"Test Location","created_at":"2021-11-15T08:18:37.469Z","updated_at":"2021-11-15T08:18:37.469Z","ignore_types":[],"ancestry":null,"title":"Test
Location","description":null}'
headers:
Cache-Control:
@@ -173,14 +141,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:39 GMT
- ETag:
- - W/"2e22af58d939bb483331fc456a2b965c-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -188,15 +152,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=98
- Server:
- - Apache
- Set-Cookie:
- - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=98
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -209,16 +167,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 8b4cf2ad-ba1b-421f-bbbc-c96da228a6cd
- X-Runtime:
- - '0.087037'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '189'
+ - '188'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/location-25.yml b/tests/test_playbooks/fixtures/location-25.yml
new file mode 100644
index 00000000..cb054036
--- /dev/null
+++ b/tests/test_playbooks/fixtures/location-25.yml
@@ -0,0 +1,116 @@
+interactions:
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/status
+ response:
+ body:
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=100
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '62'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/locations?search=title%3D%22NonExistant%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 1,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"NonExistant\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=99
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '178'
+ status:
+ code: 200
+ message: OK
+version: 1
diff --git a/tests/test_playbooks/fixtures/location-3.yml b/tests/test_playbooks/fixtures/location-3.yml
index 20da94e5..aff8e2c1 100644
--- a/tests/test_playbooks/fixtures/location-3.yml
+++ b/tests/test_playbooks/fixtures/location-3.yml
@@ -14,24 +14,18 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"1.24.1","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '63'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:23 GMT
- ETag:
- - W/"46a2e9ebe3393470b5018da3cfc1e32a"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -39,17 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=100
- Server:
- - Apache
- Set-Cookie:
- - _session_id=8b0f70aeb67e2427a30c6354537e3e78; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=100
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -58,14 +48,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 6ff065f9-3903-4fa4-bbec-5f4fc543e667
- X-Runtime:
- - '0.120950'
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -78,8 +64,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=8b0f70aeb67e2427a30c6354537e3e78
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -88,8 +72,8 @@ interactions:
body:
string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-03-23
- 16:15:20 UTC\",\"updated_at\":\"2020-03-23 16:15:20 UTC\",\"id\":9,\"name\":\"Test
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:18:28 UTC\",\"updated_at\":\"2021-11-15 08:18:28 UTC\",\"id\":4,\"name\":\"Test
Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n"
headers:
Cache-Control:
@@ -98,14 +82,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:23 GMT
- ETag:
- - W/"792144805f6eaaed17866e9d64db090c-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -113,13 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=99
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=99
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -132,12 +108,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 4a4709b5-5d88-4dfd-8db0-c8101cc7c63a
- X-Runtime:
- - '0.014747'
X-XSS-Protection:
- 1; mode=block
content-length:
@@ -154,20 +124,17 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=8b0f70aeb67e2427a30c6354537e3e78
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSub+Location+1%22&per_page=4294967296
+ uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
- 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1\\\"\",\n
- \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
- [{\"ancestry\":\"9\",\"parent_id\":9,\"parent_name\":\"Test Location\",\"created_at\":\"2020-03-23
- 16:15:22 UTC\",\"updated_at\":\"2020-03-23 16:15:22 UTC\",\"id\":10,\"name\":\"Sub
- Location 1\",\"title\":\"Test Location/Sub Location 1\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:18:27 UTC\",\"updated_at\":\"2021-11-15 08:18:27 UTC\",\"id\":3,\"name\":\"Test
+ Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -175,14 +142,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:23 GMT
- ETag:
- - W/"a409e6d788891dba1e97399e7db49f84-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -190,13 +153,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=98
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=98
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -209,16 +168,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 841616a1-4955-47b9-a3a6-ac60be67d94a
- X-Runtime:
- - '0.015025'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '423'
+ - '412'
status:
code: 200
message: OK
@@ -231,158 +184,18 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=8b0f70aeb67e2427a30c6354537e3e78
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations/10
+ uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSub+Location+1%22&per_page=4294967296
response:
body:
- string: '{"select_all_types":[],"description":null,"created_at":"2020-03-23
- 16:15:22 UTC","updated_at":"2020-03-23 16:15:22 UTC","ancestry":"9","parent_id":9,"parent_name":"Test
- Location","id":10,"name":"Sub Location 1","title":"Test Location/Sub Location
- 1","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"config_templates":[{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"}],"ptables":[{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- SCSI disk","id":97},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- virtual disk","id":98},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST LVM","id":99},{"description":null,"os_family":"Coreos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"CoreOS default
- fake","id":100},{"description":null,"os_family":"Rancheros","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Empty","id":101},{"description":null,"os_family":"Freebsd","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"FreeBSD default
- fake","id":102},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart default","id":103},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart mirrored","id":104},{"description":null,"os_family":"Junos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Junos default
- fake","id":105},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default","id":106},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default
- thin","id":107},{"description":null,"os_family":"NXOS","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"NX-OS default
- fake","id":108},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default","id":109},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default
- LVM","id":110},{"description":null,"os_family":"Xenserver","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"XenServer default","id":111}],"provisioning_templates":[{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[{"id":3,"name":"Test
- Organization","title":"Test Organization","description":"A test organization"}],"hosts_count":0,"parameters":[{}]}'
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"created_at\":\"2021-11-15
+ 08:18:29 UTC\",\"updated_at\":\"2021-11-15 08:18:29 UTC\",\"id\":5,\"name\":\"Sub
+ Location 1\",\"title\":\"Test Location/Sub Location 1\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -390,14 +203,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:23 GMT
- ETag:
- - W/"50462a7654a96ca1cccb003b86aadc7a-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -405,13 +214,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=97
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=97
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -424,16 +229,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 905b19d4-d26c-4c08-924c-3dee4cf503cd
- X-Runtime:
- - '0.097943'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '20648'
+ - '422'
status:
code: 200
message: OK
@@ -446,19 +245,112 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=8b0f70aeb67e2427a30c6354537e3e78
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
+ uri: https://foreman.example.org/api/locations/5
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
- 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
- {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-03-23
- 16:11:03 UTC\",\"updated_at\":\"2020-03-23 16:11:03 UTC\",\"id\":3,\"name\":\"Test
- Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
+ string: '{"select_all_types":[],"description":null,"created_at":"2021-11-15
+ 08:18:29 UTC","updated_at":"2021-11-15 08:18:29 UTC","ancestry":"4","parent_id":4,"parent_name":"Test
+ Location","id":5,"name":"Sub Location 1","title":"Test Location/Sub Location
+ 1","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ SCSI disk","id":111,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ virtual disk","id":112,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST LVM","id":113,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"CoreOS default
+ fake","id":114,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Empty","id":115,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"FreeBSD default
+ fake","id":116,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart default","id":117,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart mirrored","id":118,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Junos default
+ fake","id":119,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart custom","id":120,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default","id":121,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default
+ thin","id":122,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart dynamic","id":123,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"NX-OS default
+ fake","id":124,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default","id":125,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default
+ LVM","id":126,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ GPT EFI partition table","id":128,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ partition table","id":127,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"XenServer default","id":129,"inherited":false}],"provisioning_templates":[{"id":44,"name":"Alterator
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Alterator
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":10,"name":"Alterator
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":61,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":45,"name":"Atomic
+ Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":46,"name":"AutoYaST
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":37,"name":"AutoYaST
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":11,"name":"AutoYaST
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":106,"name":"AutoYaST
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":47,"name":"AutoYaST
+ SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":66,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":27,"name":"CloudInit
+ default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":70,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"CoreOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":12,"name":"CoreOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":71,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":29,"name":"FreeBSD
+ (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":49,"name":"FreeBSD
+ (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":13,"name":"FreeBSD
+ (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":78,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"Global
+ Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":59,"name":"Grubby
+ default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":79,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":38,"name":"iPXE
+ default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":39,"name":"iPXE
+ global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":40,"name":"iPXE
+ intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":50,"name":"Jumpstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Jumpstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":2,"name":"Jumpstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":31,"name":"Junos
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":51,"name":"Junos
+ default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":26,"name":"Junos
+ default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":52,"name":"Kickstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":32,"name":"Kickstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":41,"name":"Kickstart
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":3,"name":"Kickstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"Kickstart
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"Kickstart
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":107,"name":"Kickstart
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":83,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"name":"Kickstart
+ oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"Kickstart
+ oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":36,"name":"Linux
+ host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":89,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS
+ default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":54,"name":"Preseed
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Preseed
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":42,"name":"Preseed
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":7,"name":"Preseed
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":16,"name":"Preseed
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"Preseed
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":8,"name":"PXEGrub2
+ default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":95,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":9,"name":"PXEGrub2
+ global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":96,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":4,"name":"PXEGrub
+ default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":98,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub
+ global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":17,"name":"PXELinux
+ chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"PXELinux
+ chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":99,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":19,"name":"PXELinux
+ default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"PXELinux
+ default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":100,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":21,"name":"PXELinux
+ global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":101,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":55,"name":"RancherOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":22,"name":"RancherOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":102,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"UserData
+ default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":110,"name":"UserData
+ open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":23,"name":"WAIK
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":34,"name":"Windows
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":43,"name":"Windows
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":56,"name":"Windows
+ default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":24,"name":"Windows
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":85,"name":"Windows
+ network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"name":"Windows
+ peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":57,"name":"XenServer
+ default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"XenServer
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":25,"name":"XenServer
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":62,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[{"id":3,"name":"Test
+ Organization","title":"Test Organization","description":"A test organization"}],"hosts_count":0,"parameters":[{}]}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -466,14 +358,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:23 GMT
- ETag:
- - W/"2e1140e6859365b0ffeedb9e359cf61e-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -481,13 +369,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=96
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=96
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -500,16 +384,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 86968c18-33e7-45b0-8909-e2da27700980
- X-Runtime:
- - '0.012479'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '412'
+ - '16026'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/location-4.yml b/tests/test_playbooks/fixtures/location-4.yml
index 68d0b6df..55f440be 100644
--- a/tests/test_playbooks/fixtures/location-4.yml
+++ b/tests/test_playbooks/fixtures/location-4.yml
@@ -14,24 +14,18 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"1.24.1","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '63'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:24 GMT
- ETag:
- - W/"46a2e9ebe3393470b5018da3cfc1e32a"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -39,17 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=100
- Server:
- - Apache
- Set-Cookie:
- - _session_id=f80a2aa3f418be503b6f3baa01648981; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=100
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -58,14 +48,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - ada981fa-1dc4-434c-a0e9-f1c5d3f7aea2
- X-Runtime:
- - '0.121240'
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -78,8 +64,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=f80a2aa3f418be503b6f3baa01648981
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -89,8 +73,8 @@ interactions:
string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1\\\"\",\n
\ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
- [{\"ancestry\":\"9\",\"parent_id\":9,\"parent_name\":\"Test Location\",\"created_at\":\"2020-03-23
- 16:15:22 UTC\",\"updated_at\":\"2020-03-23 16:15:22 UTC\",\"id\":10,\"name\":\"Sub
+ [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"created_at\":\"2021-11-15
+ 08:18:29 UTC\",\"updated_at\":\"2021-11-15 08:18:29 UTC\",\"id\":5,\"name\":\"Sub
Location 1\",\"title\":\"Test Location/Sub Location 1\",\"description\":null}]\n}\n"
headers:
Cache-Control:
@@ -99,14 +83,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:24 GMT
- ETag:
- - W/"a409e6d788891dba1e97399e7db49f84-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -114,13 +94,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=99
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=99
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -133,16 +109,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 2fba01ff-ecd1-4a24-86a7-ba4ac89b7f79
- X-Runtime:
- - '0.016309'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '423'
+ - '422'
status:
code: 200
message: OK
@@ -155,8 +125,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=f80a2aa3f418be503b6f3baa01648981
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -174,14 +142,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:24 GMT
- ETag:
- - W/"ed9b275f1b4a71a890901de06981bcd9-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -189,13 +153,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=98
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=98
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -208,12 +168,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 0f57ada5-a409-40ca-b257-6fc137d84614
- X-Runtime:
- - '0.012290'
X-XSS-Protection:
- 1; mode=block
content-length:
@@ -222,7 +176,7 @@ interactions:
code: 200
message: OK
- request:
- body: '{"location": {"name": "Sub Location 2", "parent_id": 10}}'
+ body: '{"location": {"name": "Sub Location 2", "parent_id": 5}}'
headers:
Accept:
- application/json;version=2
@@ -231,160 +185,114 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '57'
+ - '56'
Content-Type:
- application/json
- Cookie:
- - _session_id=f80a2aa3f418be503b6f3baa01648981
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: POST
uri: https://foreman.example.org/api/locations
response:
body:
- string: '{"select_all_types":[],"description":null,"created_at":"2020-03-23
- 16:15:24 UTC","updated_at":"2020-03-23 16:15:24 UTC","ancestry":"9/10","parent_id":10,"parent_name":"Test
- Location/Sub Location 1","id":11,"name":"Sub Location 2","title":"Test Location/Sub
- Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"config_templates":[{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"}],"ptables":[{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart mirrored","id":104},{"description":null,"os_family":"Junos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Junos default
- fake","id":105},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default","id":106},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default
- thin","id":107},{"description":null,"os_family":"NXOS","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"NX-OS default
- fake","id":108},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- SCSI disk","id":97},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- virtual disk","id":98},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST LVM","id":99},{"description":null,"os_family":"Coreos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"CoreOS default
- fake","id":100},{"description":null,"os_family":"Rancheros","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Empty","id":101},{"description":null,"os_family":"Freebsd","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"FreeBSD default
- fake","id":102},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart default","id":103},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default","id":109},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default
- LVM","id":110},{"description":null,"os_family":"Xenserver","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"XenServer default","id":111}],"provisioning_templates":[{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}]}'
+ string: '{"select_all_types":[],"description":null,"created_at":"2021-11-15
+ 08:18:31 UTC","updated_at":"2021-11-15 08:18:31 UTC","ancestry":"4/5","parent_id":5,"parent_name":"Test
+ Location/Sub Location 1","id":6,"name":"Sub Location 2","title":"Test Location/Sub
+ Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Junos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Junos default
+ fake","id":119,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"CoreOS default
+ fake","id":114,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Empty","id":115,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"FreeBSD default
+ fake","id":116,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart default","id":117,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart mirrored","id":118,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ SCSI disk","id":111,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ virtual disk","id":112,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST LVM","id":113,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart custom","id":120,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default","id":121,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default
+ thin","id":122,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart dynamic","id":123,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"NX-OS default
+ fake","id":124,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default","id":125,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default
+ LVM","id":126,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ partition table","id":127,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ GPT EFI partition table","id":128,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"XenServer default","id":129,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS
+ default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":2,"name":"Jumpstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":3,"name":"Kickstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":4,"name":"PXEGrub
+ default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":5,"name":"PXEGrub
+ global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"Kickstart
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":7,"name":"Preseed
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":34,"name":"Windows
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":8,"name":"PXEGrub2
+ default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":9,"name":"PXEGrub2
+ global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"Alterator
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":11,"name":"AutoYaST
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":12,"name":"CoreOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":13,"name":"FreeBSD
+ (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":14,"name":"Kickstart
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":15,"name":"Kickstart
+ oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":16,"name":"Preseed
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"PXELinux
+ chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":35,"name":"XenServer
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":18,"name":"PXELinux
+ chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"PXELinux
+ default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"PXELinux
+ default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux
+ global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"RancherOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"WAIK
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"Windows
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":25,"name":"XenServer
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":26,"name":"Junos
+ default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":27,"name":"CloudInit
+ default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":28,"name":"Alterator
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":29,"name":"FreeBSD
+ (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":30,"name":"Jumpstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":31,"name":"Junos
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":32,"name":"Kickstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":33,"name":"Preseed
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":36,"name":"Linux
+ host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":37,"name":"AutoYaST
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":38,"name":"iPXE
+ default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":39,"name":"iPXE
+ global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":40,"name":"iPXE
+ intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":41,"name":"Kickstart
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"Preseed
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"Windows
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"Alterator
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":45,"name":"Atomic
+ Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":46,"name":"AutoYaST
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":47,"name":"AutoYaST
+ SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":48,"name":"CoreOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"FreeBSD
+ (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":50,"name":"Jumpstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":51,"name":"Junos
+ default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"Kickstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"Kickstart
+ oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"Preseed
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"RancherOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Windows
+ default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":82,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":57,"name":"XenServer
+ default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"Global
+ Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":59,"name":"Grubby
+ default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"Windows
+ peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":61,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"Windows
+ network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"AutoYaST
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":107,"name":"Kickstart
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":108,"name":"Preseed
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":109,"name":"UserData
+ default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":110,"name":"UserData
+ open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}]}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -392,14 +300,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:24 GMT
- ETag:
- - W/"410b631289c2d30f637bce3e050fbace"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -407,15 +311,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=97
- Server:
- - Apache
- Set-Cookie:
- - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 201 Created
+ - timeout=15, max=97
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Transfer-Encoding:
@@ -428,12 +326,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 301b71aa-a917-4f5c-bee8-2d86bc807550
- X-Runtime:
- - '0.659478'
X-XSS-Protection:
- 1; mode=block
status:
diff --git a/tests/test_playbooks/fixtures/location-5.yml b/tests/test_playbooks/fixtures/location-5.yml
index 1be5d0a1..95142c82 100644
--- a/tests/test_playbooks/fixtures/location-5.yml
+++ b/tests/test_playbooks/fixtures/location-5.yml
@@ -14,24 +14,18 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"1.24.1","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '63'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:25 GMT
- ETag:
- - W/"46a2e9ebe3393470b5018da3cfc1e32a"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -39,17 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=100
- Server:
- - Apache
- Set-Cookie:
- - _session_id=f6ae009a61e6f3d079dbc323aa7c2d27; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=100
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -58,14 +48,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 7455c7ad-dc60-443b-acfb-628bf2ae228a
- X-Runtime:
- - '0.123233'
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -78,8 +64,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=f6ae009a61e6f3d079dbc323aa7c2d27
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -89,8 +73,8 @@ interactions:
string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1\\\"\",\n
\ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
- [{\"ancestry\":\"9\",\"parent_id\":9,\"parent_name\":\"Test Location\",\"created_at\":\"2020-03-23
- 16:15:22 UTC\",\"updated_at\":\"2020-03-23 16:15:22 UTC\",\"id\":10,\"name\":\"Sub
+ [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"created_at\":\"2021-11-15
+ 08:18:29 UTC\",\"updated_at\":\"2021-11-15 08:18:29 UTC\",\"id\":5,\"name\":\"Sub
Location 1\",\"title\":\"Test Location/Sub Location 1\",\"description\":null}]\n}\n"
headers:
Cache-Control:
@@ -99,14 +83,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:25 GMT
- ETag:
- - W/"98248bf3064c9506bb54d6502043d34c-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -114,13 +94,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=99
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=99
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -133,16 +109,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - e4c066d7-1649-4941-8839-6c219b4099a6
- X-Runtime:
- - '0.016088'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '423'
+ - '422'
status:
code: 200
message: OK
@@ -155,8 +125,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=f6ae009a61e6f3d079dbc323aa7c2d27
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -166,9 +134,9 @@ interactions:
string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1/Sub Location
2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
- [{\"ancestry\":\"9/10\",\"parent_id\":10,\"parent_name\":\"Test Location/Sub
- Location 1\",\"created_at\":\"2020-03-23 16:15:24 UTC\",\"updated_at\":\"2020-03-23
- 16:15:24 UTC\",\"id\":11,\"name\":\"Sub Location 2\",\"title\":\"Test Location/Sub
+ [{\"ancestry\":\"4/5\",\"parent_id\":5,\"parent_name\":\"Test Location/Sub
+ Location 1\",\"created_at\":\"2021-11-15 08:18:31 UTC\",\"updated_at\":\"2021-11-15
+ 08:18:31 UTC\",\"id\":6,\"name\":\"Sub Location 2\",\"title\":\"Test Location/Sub
Location 1/Sub Location 2\",\"description\":null}]\n}\n"
headers:
Cache-Control:
@@ -177,14 +145,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:25 GMT
- ETag:
- - W/"10174212e4a6317f33b46d1d45d3c0cc-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -192,13 +156,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=98
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=98
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -211,16 +171,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 4494c84a-24fd-45d4-ac55-7dcf79ea1e05
- X-Runtime:
- - '0.015690'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '472'
+ - '469'
status:
code: 200
message: OK
@@ -233,157 +187,111 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=f6ae009a61e6f3d079dbc323aa7c2d27
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations/11
+ uri: https://foreman.example.org/api/locations/6
response:
body:
- string: '{"select_all_types":[],"description":null,"created_at":"2020-03-23
- 16:15:24 UTC","updated_at":"2020-03-23 16:15:24 UTC","ancestry":"9/10","parent_id":10,"parent_name":"Test
- Location/Sub Location 1","id":11,"name":"Sub Location 2","title":"Test Location/Sub
- Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"config_templates":[{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"}],"ptables":[{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- SCSI disk","id":97},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- virtual disk","id":98},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST LVM","id":99},{"description":null,"os_family":"Coreos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"CoreOS default
- fake","id":100},{"description":null,"os_family":"Rancheros","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Empty","id":101},{"description":null,"os_family":"Freebsd","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"FreeBSD default
- fake","id":102},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart default","id":103},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart mirrored","id":104},{"description":null,"os_family":"Junos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Junos default
- fake","id":105},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default","id":106},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default
- thin","id":107},{"description":null,"os_family":"NXOS","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"NX-OS default
- fake","id":108},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default","id":109},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default
- LVM","id":110},{"description":null,"os_family":"Xenserver","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"XenServer default","id":111}],"provisioning_templates":[{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}]}'
+ string: '{"select_all_types":[],"description":null,"created_at":"2021-11-15
+ 08:18:31 UTC","updated_at":"2021-11-15 08:18:31 UTC","ancestry":"4/5","parent_id":5,"parent_name":"Test
+ Location/Sub Location 1","id":6,"name":"Sub Location 2","title":"Test Location/Sub
+ Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ SCSI disk","id":111,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ virtual disk","id":112,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST LVM","id":113,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"CoreOS default
+ fake","id":114,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Empty","id":115,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"FreeBSD default
+ fake","id":116,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart default","id":117,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart mirrored","id":118,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Junos default
+ fake","id":119,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart custom","id":120,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default","id":121,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default
+ thin","id":122,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart dynamic","id":123,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"NX-OS default
+ fake","id":124,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default","id":125,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default
+ LVM","id":126,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ GPT EFI partition table","id":128,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ partition table","id":127,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"XenServer default","id":129,"inherited":false}],"provisioning_templates":[{"id":44,"name":"Alterator
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Alterator
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":10,"name":"Alterator
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":61,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":45,"name":"Atomic
+ Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":46,"name":"AutoYaST
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":37,"name":"AutoYaST
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":11,"name":"AutoYaST
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":106,"name":"AutoYaST
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":47,"name":"AutoYaST
+ SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":66,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":27,"name":"CloudInit
+ default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":70,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"CoreOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":12,"name":"CoreOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":71,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":29,"name":"FreeBSD
+ (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":49,"name":"FreeBSD
+ (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":13,"name":"FreeBSD
+ (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":78,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"Global
+ Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":59,"name":"Grubby
+ default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":79,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":38,"name":"iPXE
+ default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":39,"name":"iPXE
+ global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":40,"name":"iPXE
+ intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":50,"name":"Jumpstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Jumpstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":2,"name":"Jumpstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":31,"name":"Junos
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":51,"name":"Junos
+ default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":26,"name":"Junos
+ default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":52,"name":"Kickstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":32,"name":"Kickstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":41,"name":"Kickstart
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":3,"name":"Kickstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"Kickstart
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"Kickstart
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":107,"name":"Kickstart
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":83,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"name":"Kickstart
+ oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"Kickstart
+ oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":36,"name":"Linux
+ host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":89,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS
+ default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":54,"name":"Preseed
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Preseed
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":42,"name":"Preseed
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":7,"name":"Preseed
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":16,"name":"Preseed
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"Preseed
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":8,"name":"PXEGrub2
+ default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":95,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":9,"name":"PXEGrub2
+ global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":96,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":4,"name":"PXEGrub
+ default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":98,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub
+ global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":17,"name":"PXELinux
+ chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"PXELinux
+ chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":99,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":19,"name":"PXELinux
+ default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"PXELinux
+ default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":100,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":21,"name":"PXELinux
+ global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":101,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":55,"name":"RancherOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":22,"name":"RancherOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":102,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"UserData
+ default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":110,"name":"UserData
+ open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":23,"name":"WAIK
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":34,"name":"Windows
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":43,"name":"Windows
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":56,"name":"Windows
+ default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":24,"name":"Windows
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":85,"name":"Windows
+ network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"name":"Windows
+ peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":57,"name":"XenServer
+ default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"XenServer
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":25,"name":"XenServer
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":62,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}]}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -391,14 +299,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:25 GMT
- ETag:
- - W/"ecce0313a16ba770cf5bc69653024f5f-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -406,13 +310,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=97
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=97
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -425,16 +325,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - f7e1801c-182d-47e8-b75a-8f6fea95519b
- X-Runtime:
- - '0.117875'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '20583'
+ - '15959'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/location-6.yml b/tests/test_playbooks/fixtures/location-6.yml
index 90663abb..95142c82 100644
--- a/tests/test_playbooks/fixtures/location-6.yml
+++ b/tests/test_playbooks/fixtures/location-6.yml
@@ -14,24 +14,18 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"1.24.1","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '63'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:26 GMT
- ETag:
- - W/"46a2e9ebe3393470b5018da3cfc1e32a"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -39,17 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=100
- Server:
- - Apache
- Set-Cookie:
- - _session_id=e9ba96161f0791fd84bc7fabf0766442; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=100
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -58,14 +48,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - f8a93ada-9078-483f-99e0-1ab2907551b2
- X-Runtime:
- - '0.123162'
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -78,8 +64,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=e9ba96161f0791fd84bc7fabf0766442
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -89,8 +73,8 @@ interactions:
string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1\\\"\",\n
\ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
- [{\"ancestry\":\"9\",\"parent_id\":9,\"parent_name\":\"Test Location\",\"created_at\":\"2020-03-23
- 16:15:22 UTC\",\"updated_at\":\"2020-03-23 16:15:22 UTC\",\"id\":10,\"name\":\"Sub
+ [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"created_at\":\"2021-11-15
+ 08:18:29 UTC\",\"updated_at\":\"2021-11-15 08:18:29 UTC\",\"id\":5,\"name\":\"Sub
Location 1\",\"title\":\"Test Location/Sub Location 1\",\"description\":null}]\n}\n"
headers:
Cache-Control:
@@ -99,14 +83,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:26 GMT
- ETag:
- - W/"98248bf3064c9506bb54d6502043d34c-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -114,13 +94,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=99
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=99
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -133,16 +109,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - b5227618-a1f1-4ce7-ba9e-05ca0bca094a
- X-Runtime:
- - '0.016123'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '423'
+ - '422'
status:
code: 200
message: OK
@@ -155,8 +125,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=e9ba96161f0791fd84bc7fabf0766442
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -166,9 +134,9 @@ interactions:
string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1/Sub Location
2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
- [{\"ancestry\":\"9/10\",\"parent_id\":10,\"parent_name\":\"Test Location/Sub
- Location 1\",\"created_at\":\"2020-03-23 16:15:24 UTC\",\"updated_at\":\"2020-03-23
- 16:15:24 UTC\",\"id\":11,\"name\":\"Sub Location 2\",\"title\":\"Test Location/Sub
+ [{\"ancestry\":\"4/5\",\"parent_id\":5,\"parent_name\":\"Test Location/Sub
+ Location 1\",\"created_at\":\"2021-11-15 08:18:31 UTC\",\"updated_at\":\"2021-11-15
+ 08:18:31 UTC\",\"id\":6,\"name\":\"Sub Location 2\",\"title\":\"Test Location/Sub
Location 1/Sub Location 2\",\"description\":null}]\n}\n"
headers:
Cache-Control:
@@ -177,14 +145,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:26 GMT
- ETag:
- - W/"10174212e4a6317f33b46d1d45d3c0cc-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -192,13 +156,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=98
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=98
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -211,16 +171,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 1c9495b8-c837-4dc9-8a3a-682aa0db0af9
- X-Runtime:
- - '0.014704'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '472'
+ - '469'
status:
code: 200
message: OK
@@ -233,157 +187,111 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=e9ba96161f0791fd84bc7fabf0766442
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations/11
+ uri: https://foreman.example.org/api/locations/6
response:
body:
- string: '{"select_all_types":[],"description":null,"created_at":"2020-03-23
- 16:15:24 UTC","updated_at":"2020-03-23 16:15:24 UTC","ancestry":"9/10","parent_id":10,"parent_name":"Test
- Location/Sub Location 1","id":11,"name":"Sub Location 2","title":"Test Location/Sub
- Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"config_templates":[{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"}],"ptables":[{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- SCSI disk","id":97},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- virtual disk","id":98},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST LVM","id":99},{"description":null,"os_family":"Coreos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"CoreOS default
- fake","id":100},{"description":null,"os_family":"Rancheros","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Empty","id":101},{"description":null,"os_family":"Freebsd","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"FreeBSD default
- fake","id":102},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart default","id":103},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart mirrored","id":104},{"description":null,"os_family":"Junos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Junos default
- fake","id":105},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default","id":106},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default
- thin","id":107},{"description":null,"os_family":"NXOS","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"NX-OS default
- fake","id":108},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default","id":109},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default
- LVM","id":110},{"description":null,"os_family":"Xenserver","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"XenServer default","id":111}],"provisioning_templates":[{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}]}'
+ string: '{"select_all_types":[],"description":null,"created_at":"2021-11-15
+ 08:18:31 UTC","updated_at":"2021-11-15 08:18:31 UTC","ancestry":"4/5","parent_id":5,"parent_name":"Test
+ Location/Sub Location 1","id":6,"name":"Sub Location 2","title":"Test Location/Sub
+ Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ SCSI disk","id":111,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ virtual disk","id":112,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST LVM","id":113,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"CoreOS default
+ fake","id":114,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Empty","id":115,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"FreeBSD default
+ fake","id":116,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart default","id":117,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart mirrored","id":118,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Junos default
+ fake","id":119,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart custom","id":120,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default","id":121,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default
+ thin","id":122,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart dynamic","id":123,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"NX-OS default
+ fake","id":124,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default","id":125,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default
+ LVM","id":126,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ GPT EFI partition table","id":128,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ partition table","id":127,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"XenServer default","id":129,"inherited":false}],"provisioning_templates":[{"id":44,"name":"Alterator
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Alterator
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":10,"name":"Alterator
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":61,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":45,"name":"Atomic
+ Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":46,"name":"AutoYaST
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":37,"name":"AutoYaST
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":11,"name":"AutoYaST
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":106,"name":"AutoYaST
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":47,"name":"AutoYaST
+ SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":66,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":27,"name":"CloudInit
+ default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":70,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"CoreOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":12,"name":"CoreOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":71,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":29,"name":"FreeBSD
+ (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":49,"name":"FreeBSD
+ (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":13,"name":"FreeBSD
+ (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":78,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"Global
+ Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":59,"name":"Grubby
+ default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":79,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":38,"name":"iPXE
+ default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":39,"name":"iPXE
+ global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":40,"name":"iPXE
+ intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":50,"name":"Jumpstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Jumpstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":2,"name":"Jumpstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":31,"name":"Junos
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":51,"name":"Junos
+ default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":26,"name":"Junos
+ default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":52,"name":"Kickstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":32,"name":"Kickstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":41,"name":"Kickstart
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":3,"name":"Kickstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"Kickstart
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"Kickstart
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":107,"name":"Kickstart
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":83,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"name":"Kickstart
+ oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"Kickstart
+ oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":36,"name":"Linux
+ host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":89,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS
+ default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":54,"name":"Preseed
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Preseed
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":42,"name":"Preseed
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":7,"name":"Preseed
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":16,"name":"Preseed
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"Preseed
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":8,"name":"PXEGrub2
+ default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":95,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":9,"name":"PXEGrub2
+ global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":96,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":4,"name":"PXEGrub
+ default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":98,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub
+ global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":17,"name":"PXELinux
+ chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"PXELinux
+ chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":99,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":19,"name":"PXELinux
+ default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"PXELinux
+ default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":100,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":21,"name":"PXELinux
+ global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":101,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":55,"name":"RancherOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":22,"name":"RancherOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":102,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"UserData
+ default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":110,"name":"UserData
+ open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":23,"name":"WAIK
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":34,"name":"Windows
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":43,"name":"Windows
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":56,"name":"Windows
+ default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":24,"name":"Windows
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":85,"name":"Windows
+ network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"name":"Windows
+ peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":57,"name":"XenServer
+ default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"XenServer
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":25,"name":"XenServer
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":62,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}]}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -391,14 +299,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:26 GMT
- ETag:
- - W/"ecce0313a16ba770cf5bc69653024f5f-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -406,13 +310,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=97
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=97
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -425,16 +325,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 0012153a-ac75-41be-8322-7025781ea956
- X-Runtime:
- - '0.107305'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '20583'
+ - '15959'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/location-7.yml b/tests/test_playbooks/fixtures/location-7.yml
index 66cf2b1a..911bdeb7 100644
--- a/tests/test_playbooks/fixtures/location-7.yml
+++ b/tests/test_playbooks/fixtures/location-7.yml
@@ -14,24 +14,18 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"1.24.1","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '63'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:26 GMT
- ETag:
- - W/"46a2e9ebe3393470b5018da3cfc1e32a"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -39,17 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=100
- Server:
- - Apache
- Set-Cookie:
- - _session_id=805325fe5ac17290f3ae249f269b1b32; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=100
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -58,14 +48,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - c1e59bc5-60b7-45c3-8ed6-a2c8710965ef
- X-Runtime:
- - '0.129955'
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -78,8 +64,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=805325fe5ac17290f3ae249f269b1b32
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -89,8 +73,8 @@ interactions:
string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1\\\"\",\n
\ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
- [{\"ancestry\":\"9\",\"parent_id\":9,\"parent_name\":\"Test Location\",\"created_at\":\"2020-03-23
- 16:15:22 UTC\",\"updated_at\":\"2020-03-23 16:15:22 UTC\",\"id\":10,\"name\":\"Sub
+ [{\"ancestry\":\"4\",\"parent_id\":4,\"parent_name\":\"Test Location\",\"created_at\":\"2021-11-15
+ 08:18:29 UTC\",\"updated_at\":\"2021-11-15 08:18:29 UTC\",\"id\":5,\"name\":\"Sub
Location 1\",\"title\":\"Test Location/Sub Location 1\",\"description\":null}]\n}\n"
headers:
Cache-Control:
@@ -99,14 +83,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:27 GMT
- ETag:
- - W/"98248bf3064c9506bb54d6502043d34c-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -114,13 +94,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=99
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=99
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -133,16 +109,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - d564861e-03a3-4d7b-a027-9437acfe3bc0
- X-Runtime:
- - '0.018687'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '423'
+ - '422'
status:
code: 200
message: OK
@@ -155,21 +125,17 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=805325fe5ac17290f3ae249f269b1b32
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSub+Location+1%2FSub+Location+2%22&per_page=4294967296
+ uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
- 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1/Sub Location
- 2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
- [{\"ancestry\":\"9/10\",\"parent_id\":10,\"parent_name\":\"Test Location/Sub
- Location 1\",\"created_at\":\"2020-03-23 16:15:24 UTC\",\"updated_at\":\"2020-03-23
- 16:15:24 UTC\",\"id\":11,\"name\":\"Sub Location 2\",\"title\":\"Test Location/Sub
- Location 1/Sub Location 2\",\"description\":null}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:18:27 UTC\",\"updated_at\":\"2021-11-15 08:18:27 UTC\",\"id\":3,\"name\":\"Test
+ Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -177,14 +143,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:27 GMT
- ETag:
- - W/"10174212e4a6317f33b46d1d45d3c0cc-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -192,13 +154,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=98
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=98
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -211,16 +169,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - e5c3eb57-6e3f-420d-a232-a8a8414e8a9d
- X-Runtime:
- - '0.016315'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '472'
+ - '412'
status:
code: 200
message: OK
@@ -233,157 +185,19 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=805325fe5ac17290f3ae249f269b1b32
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/locations/11
+ uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%2FSub+Location+1%2FSub+Location+2%22&per_page=4294967296
response:
body:
- string: '{"select_all_types":[],"description":null,"created_at":"2020-03-23
- 16:15:24 UTC","updated_at":"2020-03-23 16:15:24 UTC","ancestry":"9/10","parent_id":10,"parent_name":"Test
- Location/Sub Location 1","id":11,"name":"Sub Location 2","title":"Test Location/Sub
- Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"config_templates":[{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"}],"ptables":[{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- SCSI disk","id":97},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- virtual disk","id":98},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST LVM","id":99},{"description":null,"os_family":"Coreos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"CoreOS default
- fake","id":100},{"description":null,"os_family":"Rancheros","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Empty","id":101},{"description":null,"os_family":"Freebsd","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"FreeBSD default
- fake","id":102},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart default","id":103},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart mirrored","id":104},{"description":null,"os_family":"Junos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Junos default
- fake","id":105},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default","id":106},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default
- thin","id":107},{"description":null,"os_family":"NXOS","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"NX-OS default
- fake","id":108},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default","id":109},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default
- LVM","id":110},{"description":null,"os_family":"Xenserver","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"XenServer default","id":111}],"provisioning_templates":[{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}]}'
+ string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Test Location/Sub Location 1/Sub Location
+ 2\\\"\",\n \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"ancestry\":\"4/5\",\"parent_id\":5,\"parent_name\":\"Test Location/Sub
+ Location 1\",\"created_at\":\"2021-11-15 08:18:31 UTC\",\"updated_at\":\"2021-11-15
+ 08:18:31 UTC\",\"id\":6,\"name\":\"Sub Location 2\",\"title\":\"Test Location/Sub
+ Location 1/Sub Location 2\",\"description\":null}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -391,14 +205,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:27 GMT
- ETag:
- - W/"ecce0313a16ba770cf5bc69653024f5f-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -406,13 +216,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=97
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=97
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -425,16 +231,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 0f889317-bae9-449d-acb8-6ce090805e2d
- X-Runtime:
- - '0.111973'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '20583'
+ - '469'
status:
code: 200
message: OK
@@ -447,19 +247,111 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=805325fe5ac17290f3ae249f269b1b32
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
+ uri: https://foreman.example.org/api/locations/6
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
- 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
- {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-03-23
- 16:11:03 UTC\",\"updated_at\":\"2020-03-23 16:11:03 UTC\",\"id\":3,\"name\":\"Test
- Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
+ string: '{"select_all_types":[],"description":null,"created_at":"2021-11-15
+ 08:18:31 UTC","updated_at":"2021-11-15 08:18:31 UTC","ancestry":"4/5","parent_id":5,"parent_name":"Test
+ Location/Sub Location 1","id":6,"name":"Sub Location 2","title":"Test Location/Sub
+ Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ SCSI disk","id":111,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ virtual disk","id":112,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST LVM","id":113,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"CoreOS default
+ fake","id":114,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Empty","id":115,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"FreeBSD default
+ fake","id":116,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart default","id":117,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart mirrored","id":118,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Junos default
+ fake","id":119,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart custom","id":120,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default","id":121,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default
+ thin","id":122,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart dynamic","id":123,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"NX-OS default
+ fake","id":124,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default","id":125,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default
+ LVM","id":126,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ GPT EFI partition table","id":128,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ partition table","id":127,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"XenServer default","id":129,"inherited":false}],"provisioning_templates":[{"id":44,"name":"Alterator
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Alterator
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":10,"name":"Alterator
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":61,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":45,"name":"Atomic
+ Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":46,"name":"AutoYaST
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":37,"name":"AutoYaST
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":11,"name":"AutoYaST
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":106,"name":"AutoYaST
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":47,"name":"AutoYaST
+ SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":66,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":27,"name":"CloudInit
+ default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":70,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"CoreOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":12,"name":"CoreOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":71,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":29,"name":"FreeBSD
+ (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":49,"name":"FreeBSD
+ (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":13,"name":"FreeBSD
+ (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":78,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"Global
+ Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":59,"name":"Grubby
+ default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":79,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":38,"name":"iPXE
+ default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":39,"name":"iPXE
+ global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":40,"name":"iPXE
+ intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":50,"name":"Jumpstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Jumpstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":2,"name":"Jumpstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":31,"name":"Junos
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":51,"name":"Junos
+ default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":26,"name":"Junos
+ default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":52,"name":"Kickstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":32,"name":"Kickstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":41,"name":"Kickstart
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":3,"name":"Kickstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"Kickstart
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"Kickstart
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":107,"name":"Kickstart
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":83,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"name":"Kickstart
+ oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"Kickstart
+ oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":36,"name":"Linux
+ host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":89,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS
+ default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":54,"name":"Preseed
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Preseed
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":42,"name":"Preseed
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":7,"name":"Preseed
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":16,"name":"Preseed
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"Preseed
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":8,"name":"PXEGrub2
+ default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":95,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":9,"name":"PXEGrub2
+ global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":96,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":4,"name":"PXEGrub
+ default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":98,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub
+ global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":17,"name":"PXELinux
+ chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"PXELinux
+ chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":99,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":19,"name":"PXELinux
+ default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"PXELinux
+ default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":100,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":21,"name":"PXELinux
+ global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":101,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":55,"name":"RancherOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":22,"name":"RancherOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":102,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"UserData
+ default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":110,"name":"UserData
+ open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":23,"name":"WAIK
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":34,"name":"Windows
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":43,"name":"Windows
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":56,"name":"Windows
+ default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":24,"name":"Windows
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":85,"name":"Windows
+ network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"name":"Windows
+ peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":57,"name":"XenServer
+ default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"XenServer
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":25,"name":"XenServer
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":62,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}]}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -467,14 +359,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:27 GMT
- ETag:
- - W/"2e1140e6859365b0ffeedb9e359cf61e-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -482,13 +370,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=96
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=96
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -501,16 +385,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 8c43f43b-fa93-464c-8a2f-ea2abea74be8
- X-Runtime:
- - '0.013581'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '412'
+ - '15959'
status:
code: 200
message: OK
@@ -527,157 +405,111 @@ interactions:
- '39'
Content-Type:
- application/json
- Cookie:
- - _session_id=805325fe5ac17290f3ae249f269b1b32
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: PUT
- uri: https://foreman.example.org/api/locations/11
+ uri: https://foreman.example.org/api/locations/6
response:
body:
- string: '{"select_all_types":[],"description":null,"created_at":"2020-03-23
- 16:15:24 UTC","updated_at":"2020-03-23 16:15:24 UTC","ancestry":"9/10","parent_id":10,"parent_name":"Test
- Location/Sub Location 1","id":11,"name":"Sub Location 2","title":"Test Location/Sub
- Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"config_templates":[{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"}],"ptables":[{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- SCSI disk","id":97},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- virtual disk","id":98},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST LVM","id":99},{"description":null,"os_family":"Coreos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"CoreOS default
- fake","id":100},{"description":null,"os_family":"Rancheros","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Empty","id":101},{"description":null,"os_family":"Freebsd","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"FreeBSD default
- fake","id":102},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart default","id":103},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart mirrored","id":104},{"description":null,"os_family":"Junos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Junos default
- fake","id":105},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default","id":106},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default
- thin","id":107},{"description":null,"os_family":"NXOS","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"NX-OS default
- fake","id":108},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default","id":109},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default
- LVM","id":110},{"description":null,"os_family":"Xenserver","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"XenServer default","id":111}],"provisioning_templates":[{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[{"id":3,"name":"Test
+ string: '{"select_all_types":[],"description":null,"created_at":"2021-11-15
+ 08:18:31 UTC","updated_at":"2021-11-15 08:18:31 UTC","ancestry":"4/5","parent_id":5,"parent_name":"Test
+ Location/Sub Location 1","id":6,"name":"Sub Location 2","title":"Test Location/Sub
+ Location 1/Sub Location 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ SCSI disk","id":111,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ virtual disk","id":112,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST LVM","id":113,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"CoreOS default
+ fake","id":114,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Empty","id":115,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"FreeBSD default
+ fake","id":116,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart default","id":117,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart mirrored","id":118,"inherited":false},{"description":null,"os_family":"Junos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Junos default
+ fake","id":119,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart custom","id":120,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default","id":121,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default
+ thin","id":122,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart dynamic","id":123,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"NX-OS default
+ fake","id":124,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default","id":125,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default
+ LVM","id":126,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ GPT EFI partition table","id":128,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ partition table","id":127,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"XenServer default","id":129,"inherited":false}],"provisioning_templates":[{"id":44,"name":"Alterator
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":28,"name":"Alterator
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":10,"name":"Alterator
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":61,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":45,"name":"Atomic
+ Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":46,"name":"AutoYaST
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":37,"name":"AutoYaST
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":11,"name":"AutoYaST
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":106,"name":"AutoYaST
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":47,"name":"AutoYaST
+ SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":66,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":27,"name":"CloudInit
+ default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":70,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":48,"name":"CoreOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":12,"name":"CoreOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":71,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":29,"name":"FreeBSD
+ (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":49,"name":"FreeBSD
+ (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":13,"name":"FreeBSD
+ (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":78,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":58,"name":"Global
+ Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":59,"name":"Grubby
+ default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":79,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":38,"name":"iPXE
+ default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":39,"name":"iPXE
+ global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":40,"name":"iPXE
+ intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":50,"name":"Jumpstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":30,"name":"Jumpstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":2,"name":"Jumpstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":31,"name":"Junos
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":51,"name":"Junos
+ default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":26,"name":"Junos
+ default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":52,"name":"Kickstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":32,"name":"Kickstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":41,"name":"Kickstart
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":3,"name":"Kickstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"Kickstart
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":14,"name":"Kickstart
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":107,"name":"Kickstart
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":83,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":53,"name":"Kickstart
+ oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":15,"name":"Kickstart
+ oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":36,"name":"Linux
+ host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":89,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":1,"name":"NX-OS
+ default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":54,"name":"Preseed
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":33,"name":"Preseed
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":42,"name":"Preseed
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":7,"name":"Preseed
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":16,"name":"Preseed
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":108,"name":"Preseed
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":90,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":8,"name":"PXEGrub2
+ default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":95,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":9,"name":"PXEGrub2
+ global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":96,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":4,"name":"PXEGrub
+ default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":98,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":5,"name":"PXEGrub
+ global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":17,"name":"PXELinux
+ chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":18,"name":"PXELinux
+ chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":99,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":19,"name":"PXELinux
+ default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"PXELinux
+ default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":100,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":21,"name":"PXELinux
+ global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":101,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":55,"name":"RancherOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":22,"name":"RancherOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":102,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":82,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":109,"name":"UserData
+ default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":110,"name":"UserData
+ open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":23,"name":"WAIK
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":34,"name":"Windows
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":43,"name":"Windows
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":56,"name":"Windows
+ default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":24,"name":"Windows
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":85,"name":"Windows
+ network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":60,"name":"Windows
+ peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":57,"name":"XenServer
+ default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":35,"name":"XenServer
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":25,"name":"XenServer
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":62,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[{"id":3,"name":"Test
Organization","title":"Test Organization","description":"A test organization"}],"hosts_count":0,"parameters":[{}]}'
headers:
Cache-Control:
@@ -686,14 +518,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:27 GMT
- ETag:
- - W/"de31986524546ea6f16ec8a13e7d4f21-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -701,15 +529,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=95
- Server:
- - Apache
- Set-Cookie:
- - request_method=PUT; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=95
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -722,16 +544,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - dece07c3-cd31-4ae4-9a97-df26fb4693f7
- X-Runtime:
- - '0.167558'
X-XSS-Protection:
- 1; mode=block
content-length:
- - '20682'
+ - '16058'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/location-8.yml b/tests/test_playbooks/fixtures/location-8.yml
index b3dde96b..ccc47de5 100644
--- a/tests/test_playbooks/fixtures/location-8.yml
+++ b/tests/test_playbooks/fixtures/location-8.yml
@@ -14,24 +14,18 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"1.24.1","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '63'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:27 GMT
- ETag:
- - W/"46a2e9ebe3393470b5018da3cfc1e32a"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -39,17 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=100
- Server:
- - Apache
- Set-Cookie:
- - _session_id=012ee2f1e20f3a64293a7c2ece0e974f; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=100
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -58,14 +48,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - e16a6cae-768f-48fd-91c9-f337a6395a2b
- X-Runtime:
- - '0.122107'
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -78,8 +64,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=012ee2f1e20f3a64293a7c2ece0e974f
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -88,8 +72,8 @@ interactions:
body:
string: "{\n \"total\": 4,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-03-23
- 16:15:20 UTC\",\"updated_at\":\"2020-03-23 16:15:20 UTC\",\"id\":9,\"name\":\"Test
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:18:28 UTC\",\"updated_at\":\"2021-11-15 08:18:28 UTC\",\"id\":4,\"name\":\"Test
Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n"
headers:
Cache-Control:
@@ -98,14 +82,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:27 GMT
- ETag:
- - W/"f93ff0fa49c3d397a3f5b8d6e51de23f-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -113,13 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=99
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=99
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -132,12 +108,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 6a36140a-6675-4211-aff8-efc6b7739085
- X-Runtime:
- - '0.015551'
X-XSS-Protection:
- 1; mode=block
content-length:
@@ -154,8 +124,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=012ee2f1e20f3a64293a7c2ece0e974f
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -173,14 +141,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:27 GMT
- ETag:
- - W/"c56f7f757ec8e229a3e81fd910ce8f14-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -188,13 +152,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=98
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=98
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -207,12 +167,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 14436ca9-ea39-4dd8-910c-898fbd8c74c8
- X-Runtime:
- - '0.013169'
X-XSS-Protection:
- 1; mode=block
content-length:
@@ -221,7 +175,7 @@ interactions:
code: 200
message: OK
- request:
- body: '{"location": {"name": "Sub Location 2", "parent_id": 9}}'
+ body: '{"location": {"name": "Sub Location 2", "parent_id": 4}}'
headers:
Accept:
- application/json;version=2
@@ -233,157 +187,111 @@ interactions:
- '56'
Content-Type:
- application/json
- Cookie:
- - _session_id=012ee2f1e20f3a64293a7c2ece0e974f
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: POST
uri: https://foreman.example.org/api/locations
response:
body:
- string: '{"select_all_types":[],"description":null,"created_at":"2020-03-23
- 16:15:27 UTC","updated_at":"2020-03-23 16:15:27 UTC","ancestry":"9","parent_id":9,"parent_name":"Test
- Location","id":12,"name":"Sub Location 2","title":"Test Location/Sub Location
- 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"config_templates":[{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"}],"ptables":[{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart mirrored","id":104},{"description":null,"os_family":"Junos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Junos default
- fake","id":105},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default","id":106},{"description":null,"os_family":"Redhat","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Kickstart default
- thin","id":107},{"description":null,"os_family":"NXOS","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"NX-OS default
- fake","id":108},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- SCSI disk","id":97},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST entire
- virtual disk","id":98},{"description":null,"os_family":"Suse","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"AutoYaST LVM","id":99},{"description":null,"os_family":"Coreos","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"CoreOS default
- fake","id":100},{"description":null,"os_family":"Rancheros","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Empty","id":101},{"description":null,"os_family":"Freebsd","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"FreeBSD default
- fake","id":102},{"description":null,"os_family":"Solaris","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Jumpstart default","id":103},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default","id":109},{"description":null,"os_family":"Debian","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"Preseed default
- LVM","id":110},{"description":null,"os_family":"Xenserver","created_at":"2020-01-11
- 10:37:15 UTC","updated_at":"2020-01-11 10:37:15 UTC","name":"XenServer default","id":111}],"provisioning_templates":[{"id":1,"name":"NX-OS
- default POAP setup","template_kind_id":10,"template_kind_name":"POAP"},{"id":2,"name":"Jumpstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":3,"name":"Kickstart
- default PXEGrub","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":4,"name":"PXEGrub
- default local boot","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":5,"name":"PXEGrub
- global default","template_kind_id":2,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":46,"name":"Jumpstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":47,"name":"Junos
- default SLAX","template_kind_id":5,"template_kind_name":"provision"},{"id":48,"name":"Kickstart
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":7,"name":"Preseed
- default PXEGrub2","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":8,"name":"PXEGrub2
- default local boot","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":9,"name":"PXEGrub2
- global default","template_kind_id":3,"template_kind_name":"PXEGrub2"},{"id":10,"name":"Alterator
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":11,"name":"AutoYaST
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":12,"name":"CoreOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":13,"name":"FreeBSD
- (mfsBSD) PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":14,"name":"Kickstart
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":15,"name":"Kickstart
- oVirt-RHVH PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":16,"name":"Preseed
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":17,"name":"PXELinux
- chain iPXE","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":18,"name":"PXELinux
- chain iPXE UNDI","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":19,"name":"PXELinux
- default local boot","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":20,"name":"PXELinux
- default memdisk","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":21,"name":"PXELinux
- global default","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":22,"name":"RancherOS
- PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":23,"name":"WAIK
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":24,"name":"XenServer
- default PXELinux","template_kind_id":1,"template_kind_name":"PXELinux"},{"id":25,"name":"Junos
- default ZTP config","template_kind_id":9,"template_kind_name":"ZTP"},{"id":70,"name":"http_proxy","template_kind_id":null,"template_kind_name":null},{"id":26,"name":"CloudInit
- default","template_kind_id":11,"template_kind_name":"cloud-init"},{"id":27,"name":"Alterator
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":28,"name":"FreeBSD
- (mfsBSD) finish","template_kind_id":6,"template_kind_name":"finish"},{"id":29,"name":"Jumpstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":30,"name":"Junos
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":31,"name":"Kickstart
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":32,"name":"Preseed
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":33,"name":"XenServer
- default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":34,"name":"AutoYaST
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":35,"name":"iPXE
- default local boot","template_kind_id":4,"template_kind_name":"iPXE"},{"id":36,"name":"iPXE
- global default","template_kind_id":4,"template_kind_name":"iPXE"},{"id":37,"name":"iPXE
- intermediate script","template_kind_id":4,"template_kind_name":"iPXE"},{"id":38,"name":"Kickstart
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":39,"name":"Preseed
- default iPXE","template_kind_id":4,"template_kind_name":"iPXE"},{"id":40,"name":"Alterator
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":41,"name":"Atomic
- Kickstart default","template_kind_id":5,"template_kind_name":"provision"},{"id":42,"name":"AutoYaST
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":43,"name":"AutoYaST
- SLES default","template_kind_id":5,"template_kind_name":"provision"},{"id":44,"name":"CoreOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":45,"name":"FreeBSD
- (mfsBSD) provision","template_kind_id":5,"template_kind_name":"provision"},{"id":49,"name":"Kickstart
- oVirt-RHVH","template_kind_id":5,"template_kind_name":"provision"},{"id":50,"name":"Preseed
- default","template_kind_id":5,"template_kind_name":"provision"},{"id":51,"name":"RancherOS
- provision","template_kind_id":5,"template_kind_name":"provision"},{"id":52,"name":"XenServer
- default answerfile","template_kind_id":5,"template_kind_name":"provision"},{"id":53,"name":"Grubby
- default","template_kind_id":7,"template_kind_name":"script"},{"id":54,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null},{"id":55,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null},{"id":56,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null},{"id":57,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null},{"id":58,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null},{"id":59,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null},{"id":60,"name":"built","template_kind_id":null,"template_kind_name":null},{"id":61,"name":"chef_client","template_kind_id":null,"template_kind_name":null},{"id":62,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":63,"name":"create_users","template_kind_id":null,"template_kind_name":null},{"id":64,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null},{"id":65,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null},{"id":66,"name":"epel","template_kind_id":null,"template_kind_name":null},{"id":67,"name":"fips_packages","template_kind_id":null,"template_kind_name":null},{"id":68,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null},{"id":69,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null},{"id":71,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null},{"id":72,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null},{"id":73,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null},{"id":74,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null},{"id":75,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":76,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null},{"id":77,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null},{"id":78,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null},{"id":79,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null},{"id":80,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null},{"id":81,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null},{"id":82,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null},{"id":83,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null},{"id":84,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null},{"id":85,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null},{"id":86,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null},{"id":87,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null},{"id":88,"name":"redhat_register","template_kind_id":null,"template_kind_name":null},{"id":89,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null},{"id":90,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null},{"id":91,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null},{"id":92,"name":"AutoYaST
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":93,"name":"Kickstart
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":94,"name":"Preseed
- default user data","template_kind_id":8,"template_kind_name":"user_data"},{"id":95,"name":"UserData
- default","template_kind_id":8,"template_kind_name":"user_data"},{"id":96,"name":"UserData
- open-vm-tools","template_kind_id":8,"template_kind_name":"user_data"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}]}'
+ string: '{"select_all_types":[],"description":null,"created_at":"2021-11-15
+ 08:18:33 UTC","updated_at":"2021-11-15 08:18:33 UTC","ancestry":"4","parent_id":4,"parent_name":"Test
+ Location","id":7,"name":"Sub Location 2","title":"Test Location/Sub Location
+ 2","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"ptables":[{"description":null,"os_family":"Junos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Junos default
+ fake","id":119,"inherited":false},{"description":null,"os_family":"Coreos","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"CoreOS default
+ fake","id":114,"inherited":false},{"description":null,"os_family":"Rancheros","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Empty","id":115,"inherited":false},{"description":null,"os_family":"Freebsd","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"FreeBSD default
+ fake","id":116,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart default","id":117,"inherited":false},{"description":null,"os_family":"Solaris","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Jumpstart mirrored","id":118,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ SCSI disk","id":111,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST entire
+ virtual disk","id":112,"inherited":false},{"description":null,"os_family":"Suse","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"AutoYaST LVM","id":113,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart custom","id":120,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default","id":121,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart default
+ thin","id":122,"inherited":false},{"description":null,"os_family":"Redhat","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Kickstart dynamic","id":123,"inherited":false},{"description":null,"os_family":"NXOS","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"NX-OS default
+ fake","id":124,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default","id":125,"inherited":false},{"description":null,"os_family":"Debian","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Preseed default
+ LVM","id":126,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ partition table","id":127,"inherited":false},{"description":null,"os_family":"Windows","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"Windows default
+ GPT EFI partition table","id":128,"inherited":false},{"description":null,"os_family":"Xenserver","created_at":"2021-11-15
+ 08:15:00 UTC","updated_at":"2021-11-15 08:15:00 UTC","name":"XenServer default","id":129,"inherited":false}],"provisioning_templates":[{"id":1,"name":"NX-OS
+ default POAP setup","template_kind_id":11,"template_kind_name":"POAP","inherited":false},{"id":2,"name":"Jumpstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":3,"name":"Kickstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":4,"name":"PXEGrub
+ default local boot","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":5,"name":"PXEGrub
+ global default","template_kind_id":3,"template_kind_name":"PXEGrub","inherited":false},{"id":6,"name":"Kickstart
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":7,"name":"Preseed
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":34,"name":"Windows
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":8,"name":"PXEGrub2
+ default local boot","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":9,"name":"PXEGrub2
+ global default","template_kind_id":4,"template_kind_name":"PXEGrub2","inherited":false},{"id":10,"name":"Alterator
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":11,"name":"AutoYaST
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":12,"name":"CoreOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":13,"name":"FreeBSD
+ (mfsBSD) PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":14,"name":"Kickstart
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":15,"name":"Kickstart
+ oVirt-RHVH PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":16,"name":"Preseed
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":17,"name":"PXELinux
+ chain iPXE","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":35,"name":"XenServer
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":18,"name":"PXELinux
+ chain iPXE UNDI","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":19,"name":"PXELinux
+ default local boot","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":20,"name":"PXELinux
+ default memdisk","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":21,"name":"PXELinux
+ global default","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":22,"name":"RancherOS
+ PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":23,"name":"WAIK
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":24,"name":"Windows
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":25,"name":"XenServer
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","inherited":false},{"id":26,"name":"Junos
+ default ZTP config","template_kind_id":10,"template_kind_name":"ZTP","inherited":false},{"id":27,"name":"CloudInit
+ default","template_kind_id":12,"template_kind_name":"cloud-init","inherited":false},{"id":28,"name":"Alterator
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":29,"name":"FreeBSD
+ (mfsBSD) finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":30,"name":"Jumpstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":31,"name":"Junos
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":32,"name":"Kickstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":33,"name":"Preseed
+ default finish","template_kind_id":7,"template_kind_name":"finish","inherited":false},{"id":36,"name":"Linux
+ host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","inherited":false},{"id":37,"name":"AutoYaST
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":38,"name":"iPXE
+ default local boot","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":39,"name":"iPXE
+ global default","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":40,"name":"iPXE
+ intermediate script","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":41,"name":"Kickstart
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":42,"name":"Preseed
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":43,"name":"Windows
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","inherited":false},{"id":44,"name":"Alterator
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":45,"name":"Atomic
+ Kickstart default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":46,"name":"AutoYaST
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":47,"name":"AutoYaST
+ SLES default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":48,"name":"CoreOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":49,"name":"FreeBSD
+ (mfsBSD) provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":50,"name":"Jumpstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":51,"name":"Junos
+ default SLAX","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":52,"name":"Kickstart
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":53,"name":"Kickstart
+ oVirt-RHVH","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":54,"name":"Preseed
+ default","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":55,"name":"RancherOS
+ provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":56,"name":"Windows
+ default provision","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":82,"name":"schedule_reboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":57,"name":"XenServer
+ default answerfile","template_kind_id":6,"template_kind_name":"provision","inherited":false},{"id":58,"name":"Global
+ Registration","template_kind_id":13,"template_kind_name":"registration","inherited":false},{"id":59,"name":"Grubby
+ default","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":60,"name":"Windows
+ peSetup.cmd","template_kind_id":8,"template_kind_name":"script","inherited":false},{"id":61,"name":"alterator_pkglist","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":62,"name":"yum_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":63,"name":"ansible_provisioning_callback","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":64,"name":"ansible_tower_callback_script","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":65,"name":"ansible_tower_callback_service","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":66,"name":"blacklist_kernel_modules","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":67,"name":"bmc_nic_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":68,"name":"built","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":69,"name":"chef_client","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":70,"name":"coreos_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":71,"name":"create_users","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":72,"name":"csr_attributes.yaml","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":73,"name":"efibootmgr_netboot","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":74,"name":"eject_cdrom","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":75,"name":"epel","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":76,"name":"fips_packages","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":77,"name":"fix_hosts","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":78,"name":"freeipa_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":79,"name":"http_proxy","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":80,"name":"insights","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":81,"name":"kickstart_ifcfg_bond_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":83,"name":"kickstart_ifcfg_bonded_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":84,"name":"kickstart_ifcfg_generic_interface","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":85,"name":"Windows
+ network","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":86,"name":"kickstart_ifcfg_get_identifier_names","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":87,"name":"kickstart_kernel_options","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":88,"name":"kickstart_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":89,"name":"ntp","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":90,"name":"preseed_networking_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":91,"name":"puppet.conf","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":92,"name":"puppet_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":93,"name":"puppetlabs_repo","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":94,"name":"pxegrub2_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":95,"name":"pxegrub2_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":96,"name":"pxegrub2_mac","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":97,"name":"pxegrub_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":98,"name":"pxegrub_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":99,"name":"pxelinux_chainload","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":100,"name":"pxelinux_discovery","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":101,"name":"rancheros_cloudconfig","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":102,"name":"redhat_register","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":103,"name":"remote_execution_ssh_keys","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":104,"name":"saltstack_minion","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":105,"name":"saltstack_setup","template_kind_id":null,"template_kind_name":null,"inherited":false},{"id":106,"name":"AutoYaST
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":107,"name":"Kickstart
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":108,"name":"Preseed
+ default user data","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":109,"name":"UserData
+ default","template_kind_id":9,"template_kind_name":"user_data","inherited":false},{"id":110,"name":"UserData
+ open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","inherited":false}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"hosts_count":0,"parameters":[{}]}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -391,14 +299,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:27 GMT
- ETag:
- - W/"06e66214da07fb6a5990e654576af833"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -406,15 +310,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=97
- Server:
- - Apache
- Set-Cookie:
- - request_method=POST; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 201 Created
+ - timeout=15, max=97
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Transfer-Encoding:
@@ -427,12 +325,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - e5fe4dc7-1588-4725-9ad9-636e0d2feed9
- X-Runtime:
- - '0.637429'
X-XSS-Protection:
- 1; mode=block
status:
diff --git a/tests/test_playbooks/fixtures/location-9.yml b/tests/test_playbooks/fixtures/location-9.yml
index 6f00b3f2..9dfe13d0 100644
--- a/tests/test_playbooks/fixtures/location-9.yml
+++ b/tests/test_playbooks/fixtures/location-9.yml
@@ -14,24 +14,18 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"1.24.1","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '63'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:29 GMT
- ETag:
- - W/"46a2e9ebe3393470b5018da3cfc1e32a"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -39,17 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=100
- Server:
- - Apache
- Set-Cookie:
- - _session_id=5c61ac8922a6f640c72f247699011c94; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=100
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -58,14 +48,10 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - acd0f6e2-16e5-436e-a797-f69b2880df43
- X-Runtime:
- - '0.122544'
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -78,8 +64,6 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Cookie:
- - _session_id=5c61ac8922a6f640c72f247699011c94
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
@@ -88,8 +72,8 @@ interactions:
body:
string: "{\n \"total\": 5,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n
- \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2020-03-23
- 16:15:20 UTC\",\"updated_at\":\"2020-03-23 16:15:20 UTC\",\"id\":9,\"name\":\"Test
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-15
+ 08:18:28 UTC\",\"updated_at\":\"2021-11-15 08:18:28 UTC\",\"id\":4,\"name\":\"Test
Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n"
headers:
Cache-Control:
@@ -98,14 +82,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:29 GMT
- ETag:
- - W/"eabfcb3225d000c7b59d2cca5d38b819-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -113,13 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=99
- Server:
- - Apache
- Status:
- - 200 OK
+ - timeout=15, max=99
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -132,12 +108,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - bbcc2e99-6dbf-4492-878b-dab766e0a11a
- X-Runtime:
- - '0.015406'
X-XSS-Protection:
- 1; mode=block
content-length:
@@ -156,12 +126,10 @@ interactions:
- keep-alive
Content-Length:
- '0'
- Cookie:
- - _session_id=5c61ac8922a6f640c72f247699011c94
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: DELETE
- uri: https://foreman.example.org/api/locations/9
+ uri: https://foreman.example.org/api/locations/4
response:
body:
string: '{"error":{"message":"Cannot delete Test Location because it has nested
@@ -173,14 +141,10 @@ interactions:
- Keep-Alive
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data: *.gravatar.com; script-src ''unsafe-eval'' ''unsafe-inline''
- ''self''; style-src ''unsafe-inline'' ''self'''
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
Content-Type:
- application/json; charset=utf-8
- Date:
- - Mon, 23 Mar 2020 16:15:29 GMT
- ETag:
- - W/"edbb85b42b8f56c4ad11496bbbce5c63-gzip"
Foreman_api_version:
- '2'
Foreman_current_location:
@@ -188,15 +152,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 1.24.1
+ - 2.5.4
Keep-Alive:
- - timeout=5, max=98
- Server:
- - Apache
- Set-Cookie:
- - request_method=DELETE; path=/; secure; HttpOnly; SameSite=Lax
- Status:
- - 200 OK
+ - timeout=15, max=98
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -209,12 +167,6 @@ interactions:
- sameorigin
X-Permitted-Cross-Domain-Policies:
- none
- X-Powered-By:
- - Phusion Passenger 4.0.53
- X-Request-Id:
- - 6a4843ee-ebd5-4afc-8c59-8ef232253d9c
- X-Runtime:
- - '0.025625'
X-XSS-Protection:
- 1; mode=block
content-length:
diff --git a/tests/test_playbooks/fixtures/operatingsystems_role-0.yml b/tests/test_playbooks/fixtures/operatingsystems_role-0.yml
new file mode 100644
index 00000000..3f79bc94
--- /dev/null
+++ b/tests/test_playbooks/fixtures/operatingsystems_role-0.yml
@@ -0,0 +1,202 @@
+interactions:
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/status
+ response:
+ body:
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=100
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '62'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/operatingsystems?search=name%3D%22RedHat%22%2Cmajor%3D%228%22%2Cminor%3D%225%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 6,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"RedHat\\\",major=\\\"8\\\",minor=\\\"5\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ []\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=99
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '196'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"operatingsystem": {"name": "RedHat", "major": "8", "minor": "5", "family":
+ "Redhat", "password_hash": "SHA256"}}'
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '114'
+ Content-Type:
+ - application/json
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: POST
+ uri: https://foreman.example.org/api/operatingsystems
+ response:
+ body:
+ string: '{"description":null,"major":"8","minor":"5","family":"Redhat","release_name":null,"password_hash":"SHA256","created_at":"2021-11-22
+ 11:59:09 UTC","updated_at":"2021-11-22 11:59:09 UTC","id":11,"name":"RedHat","title":"RedHat
+ 8.5","media":[],"architectures":[],"ptables":[{"name":"Kickstart default","id":121}],"provisioning_templates":[{"id":52,"name":"Kickstart
+ default","template_kind_id":6,"template_kind_name":"provision"},{"id":32,"name":"Kickstart
+ default finish","template_kind_id":7,"template_kind_name":"finish"},{"id":41,"name":"Kickstart
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE"},{"id":3,"name":"Kickstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub"},{"id":6,"name":"Kickstart
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2"},{"id":14,"name":"Kickstart
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux"},{"id":107,"name":"Kickstart
+ default user data","template_kind_id":9,"template_kind_name":"user_data"},{"id":36,"name":"Linux
+ host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config"}],"os_default_templates":[{"id":82,"provisioning_template_id":36,"provisioning_template_name":"Linux
+ host_init_config default","template_kind_id":1,"template_kind_name":"host_init_config","operatingsystem_id":11,"operatingsystem_name":"RedHat
+ 8.5"},{"id":83,"provisioning_template_id":14,"provisioning_template_name":"Kickstart
+ default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux","operatingsystem_id":11,"operatingsystem_name":"RedHat
+ 8.5"},{"id":84,"provisioning_template_id":3,"provisioning_template_name":"Kickstart
+ default PXEGrub","template_kind_id":3,"template_kind_name":"PXEGrub","operatingsystem_id":11,"operatingsystem_name":"RedHat
+ 8.5"},{"id":85,"provisioning_template_id":6,"provisioning_template_name":"Kickstart
+ default PXEGrub2","template_kind_id":4,"template_kind_name":"PXEGrub2","operatingsystem_id":11,"operatingsystem_name":"RedHat
+ 8.5"},{"id":86,"provisioning_template_id":41,"provisioning_template_name":"Kickstart
+ default iPXE","template_kind_id":5,"template_kind_name":"iPXE","operatingsystem_id":11,"operatingsystem_name":"RedHat
+ 8.5"},{"id":87,"provisioning_template_id":52,"provisioning_template_name":"Kickstart
+ default","template_kind_id":6,"template_kind_name":"provision","operatingsystem_id":11,"operatingsystem_name":"RedHat
+ 8.5"},{"id":88,"provisioning_template_id":32,"provisioning_template_name":"Kickstart
+ default finish","template_kind_id":7,"template_kind_name":"finish","operatingsystem_id":11,"operatingsystem_name":"RedHat
+ 8.5"},{"id":89,"provisioning_template_id":107,"provisioning_template_name":"Kickstart
+ default user data","template_kind_id":9,"template_kind_name":"user_data","operatingsystem_id":11,"operatingsystem_name":"RedHat
+ 8.5"}],"images":[],"parameters":[]}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=98
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Transfer-Encoding:
+ - chunked
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ status:
+ code: 201
+ message: Created
+version: 1
diff --git a/tests/test_playbooks/fixtures/operatingsystems_role-1.yml b/tests/test_playbooks/fixtures/operatingsystems_role-1.yml
new file mode 100644
index 00000000..f5e36e56
--- /dev/null
+++ b/tests/test_playbooks/fixtures/operatingsystems_role-1.yml
@@ -0,0 +1,459 @@
+interactions:
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/status
+ response:
+ body:
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=100
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '62'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/template_kinds?search=name%3D%22cloud-init%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 13,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"cloud-init\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 13:19:48 UTC\",\"updated_at\":\"2021-11-15 13:19:48 UTC\",\"name\":\"cloud-init\",\"id\":12}]\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=99
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '284'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/provisioning_templates?search=name%3D%22CloudInit+default%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 110,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"CloudInit default\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"snippet\":false,\"description\":null,\"created_at\":\"2021-11-15
+ 13:19:48 UTC\",\"updated_at\":\"2021-11-15 13:19:48 UTC\",\"id\":27,\"name\":\"CloudInit
+ default\",\"template_kind_id\":12,\"template_kind_name\":\"cloud-init\"}]\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=98
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '390'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/provisioning_templates/27
+ response:
+ body:
+ string: '{"template":"<%#\nkind: cloud-init\nname: CloudInit default\nmodel:
+ ProvisioningTemplate\noses:\n- AlmaLinux\n- CentOS\n- Fedora\n- Rocky\n- Debian\n-
+ Ubuntu\n-%>\n<%#\nThis template accepts the following parameters:\n- force-puppet:
+ boolean (default=false)\n- enable-puppetlabs-repo: boolean (default=false)\n-
+ enable-puppetlabs-puppet5-repo: boolean (default=false)\n- enable-puppetlabs-puppet6-repo:
+ boolean (default=false)\n-%>\n<%\n rhel_compatible = @host.operatingsystem.family
+ == ''Redhat'' && @host.operatingsystem.name != ''Fedora''\n proxy_uri = host_param(''http-proxy'')
+ ? \"http://#{host_param(''http-proxy'')}:#{host_param(''http-proxy-port'')}\"
+ : nil\n puppet_enabled = host_puppet_server.present? || host_param_true?(''force-puppet'')\n chef_enabled
+ = @host.respond_to?(:chef_proxy) && @host.chef_proxy\n-%>\n\n#cloud-config\nhostname:
+ <%= @host.name %>\nfqdn: <%= @host %>\nmanage_etc_hosts: true\nusers: {}\nruncmd:\n-
+ |\n<%= indent(2) { snippet ''fix_hosts'' } -%>\n- |\n<%= indent(2) { snippet
+ ''yum_proxy'' } -%>\n- |\n<%= indent(2) { snippet ''ntp'' } -%>\n- |\n<% if
+ rhel_compatible && !host_param_false?(''enable-epel'') -%>\n<%= indent(2)
+ { snippet ''epel'' } -%>\n<% end -%>\n- |\n<%= indent(2) { snippet ''redhat_register''
+ } -%>\n- |\n<% if host_enc[''parameters''][''realm''] && @host.realm && (@host.realm.realm_type
+ == ''FreeIPA'' || @host.realm.realm_type == ''Red Hat Identity Management'')
+ -%>\n<%= indent(2) { snippet ''freeipa_register'' } %>\n<% end -%>\n- |\n<%=
+ indent(2) { snippet ''remote_execution_ssh_keys'' } %>\n- |\n<%= indent(2)
+ { snippet ''blacklist_kernel_modules'' } %>\n- |\n<% if chef_enabled %>\n<%=
+ indent(2) { snippet ''chef_client'' } %>\n<% end -%>\n- |\n<%=\n if puppet_enabled
+ && (host_param_true?(''enable-puppetlabs-repo'') ||\n host_param_true?(''enable-puppetlabs-puppet6-repo'')
+ ||\n host_param_true?(''enable-puppetlabs-puppet5-repo''))\n indent(2)
+ { snippet ''puppetlabs_repo'' }\n elsif puppet_enabled\n indent(2) { snippet(''puppet_setup'',
+ :variables => { :full_puppet_run => true }) }\n else\n ''''\n end\n-%>\nphone_home:\n url:
+ <%= foreman_url(''built'') %>\n post: []\n tries: 10\n","locked":true,"snippet":false,"description":null,"created_at":"2021-11-15
+ 13:19:48 UTC","updated_at":"2021-11-15 13:19:48 UTC","id":27,"name":"CloudInit
+ default","template_kind_id":12,"template_kind_name":"cloud-init","template_combinations":[],"operatingsystems":[],"os_default_templates":[],"locations":[{"id":2,"name":"Default
+ Location","title":"Default Location","description":null},{"id":26,"name":"Test
+ Location","title":"Test Location","description":null}],"organizations":[{"id":1,"name":"Default
+ Organization","title":"Default Organization","description":null},{"id":25,"name":"Test
+ Organization","title":"Test Organization","description":"A test organization"}]}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=97
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '2802'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22RedHat+8.5%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 7,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"RedHat 8.5\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"8\",\"minor\":\"5\",\"family\":\"Redhat\",\"release_name\":null,\"password_hash\":\"SHA256\",\"created_at\":\"2021-11-22
+ 11:59:09 UTC\",\"updated_at\":\"2021-11-22 11:59:09 UTC\",\"id\":11,\"name\":\"RedHat\",\"title\":\"RedHat
+ 8.5\"}]\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=96
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '407'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/operatingsystems/11/os_default_templates?per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 8,\n \"subtotal\": 8,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \"order\":
+ null\n },\n \"results\": [{\"id\":82,\"provisioning_template_id\":36,\"provisioning_template_name\":\"Linux
+ host_init_config default\",\"template_kind_id\":1,\"template_kind_name\":\"host_init_config\",\"operatingsystem_id\":11,\"operatingsystem_name\":\"RedHat
+ 8.5\"},{\"id\":83,\"provisioning_template_id\":14,\"provisioning_template_name\":\"Kickstart
+ default PXELinux\",\"template_kind_id\":2,\"template_kind_name\":\"PXELinux\",\"operatingsystem_id\":11,\"operatingsystem_name\":\"RedHat
+ 8.5\"},{\"id\":84,\"provisioning_template_id\":3,\"provisioning_template_name\":\"Kickstart
+ default PXEGrub\",\"template_kind_id\":3,\"template_kind_name\":\"PXEGrub\",\"operatingsystem_id\":11,\"operatingsystem_name\":\"RedHat
+ 8.5\"},{\"id\":85,\"provisioning_template_id\":6,\"provisioning_template_name\":\"Kickstart
+ default PXEGrub2\",\"template_kind_id\":4,\"template_kind_name\":\"PXEGrub2\",\"operatingsystem_id\":11,\"operatingsystem_name\":\"RedHat
+ 8.5\"},{\"id\":86,\"provisioning_template_id\":41,\"provisioning_template_name\":\"Kickstart
+ default iPXE\",\"template_kind_id\":5,\"template_kind_name\":\"iPXE\",\"operatingsystem_id\":11,\"operatingsystem_name\":\"RedHat
+ 8.5\"},{\"id\":87,\"provisioning_template_id\":52,\"provisioning_template_name\":\"Kickstart
+ default\",\"template_kind_id\":6,\"template_kind_name\":\"provision\",\"operatingsystem_id\":11,\"operatingsystem_name\":\"RedHat
+ 8.5\"},{\"id\":88,\"provisioning_template_id\":32,\"provisioning_template_name\":\"Kickstart
+ default finish\",\"template_kind_id\":7,\"template_kind_name\":\"finish\",\"operatingsystem_id\":11,\"operatingsystem_name\":\"RedHat
+ 8.5\"},{\"id\":89,\"provisioning_template_id\":107,\"provisioning_template_name\":\"Kickstart
+ default user data\",\"template_kind_id\":9,\"template_kind_name\":\"user_data\",\"operatingsystem_id\":11,\"operatingsystem_name\":\"RedHat
+ 8.5\"}]\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=95
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '1837'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"os_default_template": {"template_kind_id": 12, "provisioning_template_id":
+ 27}}'
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '81'
+ Content-Type:
+ - application/json
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: POST
+ uri: https://foreman.example.org/api/operatingsystems/11/os_default_templates
+ response:
+ body:
+ string: '{"id":90,"provisioning_template_id":27,"provisioning_template_name":"CloudInit
+ default","template_kind_id":12,"template_kind_name":"cloud-init","operatingsystem_id":11,"operatingsystem_name":"RedHat
+ 8.5"}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=94
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Transfer-Encoding:
+ - chunked
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ status:
+ code: 201
+ message: Created
+version: 1
diff --git a/tests/test_playbooks/fixtures/operatingsystems_role-2.yml b/tests/test_playbooks/fixtures/operatingsystems_role-2.yml
new file mode 100644
index 00000000..7947aadc
--- /dev/null
+++ b/tests/test_playbooks/fixtures/operatingsystems_role-2.yml
@@ -0,0 +1,448 @@
+interactions:
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/status
+ response:
+ body:
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=100
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '62'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/template_kinds?search=name%3D%22user_data%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 13,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"user_data\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 13:19:48 UTC\",\"updated_at\":\"2021-11-15 13:19:48 UTC\",\"name\":\"user_data\",\"id\":9}]\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=99
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '281'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/provisioning_templates?search=name%3D%22UserData+open-vm-tools%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 110,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"UserData open-vm-tools\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"snippet\":false,\"description\":null,\"created_at\":\"2021-11-15
+ 13:19:49 UTC\",\"updated_at\":\"2021-11-15 13:19:49 UTC\",\"id\":110,\"name\":\"UserData
+ open-vm-tools\",\"template_kind_id\":9,\"template_kind_name\":\"user_data\"}]\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=98
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '399'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/provisioning_templates/110
+ response:
+ body:
+ string: '{"template":"<%#\nkind: user_data\nname: UserData open-vm-tools\nmodel:
+ ProvisioningTemplate\noses:\n- AlmaLinux\n- CentOS\n- Fedora\n- Rocky\n- Debian\n-
+ Ubuntu\n-%>\n# Template for VMWare customization via open-vm-tools\n\nidentity:\n LinuxPrep:\n domain:
+ <%= @host.domain %>\n hostName: <%= @host.shortname %>\n hwClockUTC:
+ true\n timeZone: <%= host_param(''time-zone'') || ''UTC'' %>\n\nglobalIPSettings:\n dnsSuffixList:
+ [<%= @host.domain %>]\n <%- @host.interfaces.each do |interface| -%>\n <%-
+ next unless interface.subnet -%>\n dnsServerList: [<%= interface.subnet.dns_servers.join('',
+ '') %>]\n <%- end -%>\n\nnicSettingMap:\n<%- @host.interfaces.each do |interface|
+ -%>\n<%- next unless interface.subnet -%>\n - adapter:\n dnsDomain:
+ <%= interface.domain %>\n dnsServerList: [<%= interface.subnet.dns_servers.join('',
+ '') %>]\n gateway: [<%= interface.subnet.gateway %>]\n ip: <%= interface.ip
+ %>\n subnetMask: <%= interface.subnet.mask %>\n<%- end -%>\n","locked":true,"snippet":false,"description":null,"created_at":"2021-11-15
+ 13:19:49 UTC","updated_at":"2021-11-15 13:19:49 UTC","id":110,"name":"UserData
+ open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","template_combinations":[],"operatingsystems":[],"os_default_templates":[],"locations":[{"id":2,"name":"Default
+ Location","title":"Default Location","description":null},{"id":26,"name":"Test
+ Location","title":"Test Location","description":null}],"organizations":[{"id":1,"name":"Default
+ Organization","title":"Default Organization","description":null},{"id":25,"name":"Test
+ Organization","title":"Test Organization","description":"A test organization"}]}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=97
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '1678'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/operatingsystems?search=title%3D%22RedHat+8.5%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 7,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"RedHat 8.5\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":null,\"major\":\"8\",\"minor\":\"5\",\"family\":\"Redhat\",\"release_name\":null,\"password_hash\":\"SHA256\",\"created_at\":\"2021-11-22
+ 11:59:09 UTC\",\"updated_at\":\"2021-11-22 11:59:09 UTC\",\"id\":11,\"name\":\"RedHat\",\"title\":\"RedHat
+ 8.5\"}]\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=96
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '407'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/operatingsystems/11/os_default_templates?per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 9,\n \"subtotal\": 9,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": null,\n \"sort\": {\n \"by\": null,\n \"order\":
+ null\n },\n \"results\": [{\"id\":82,\"provisioning_template_id\":36,\"provisioning_template_name\":\"Linux
+ host_init_config default\",\"template_kind_id\":1,\"template_kind_name\":\"host_init_config\",\"operatingsystem_id\":11,\"operatingsystem_name\":\"RedHat
+ 8.5\"},{\"id\":83,\"provisioning_template_id\":14,\"provisioning_template_name\":\"Kickstart
+ default PXELinux\",\"template_kind_id\":2,\"template_kind_name\":\"PXELinux\",\"operatingsystem_id\":11,\"operatingsystem_name\":\"RedHat
+ 8.5\"},{\"id\":84,\"provisioning_template_id\":3,\"provisioning_template_name\":\"Kickstart
+ default PXEGrub\",\"template_kind_id\":3,\"template_kind_name\":\"PXEGrub\",\"operatingsystem_id\":11,\"operatingsystem_name\":\"RedHat
+ 8.5\"},{\"id\":85,\"provisioning_template_id\":6,\"provisioning_template_name\":\"Kickstart
+ default PXEGrub2\",\"template_kind_id\":4,\"template_kind_name\":\"PXEGrub2\",\"operatingsystem_id\":11,\"operatingsystem_name\":\"RedHat
+ 8.5\"},{\"id\":86,\"provisioning_template_id\":41,\"provisioning_template_name\":\"Kickstart
+ default iPXE\",\"template_kind_id\":5,\"template_kind_name\":\"iPXE\",\"operatingsystem_id\":11,\"operatingsystem_name\":\"RedHat
+ 8.5\"},{\"id\":87,\"provisioning_template_id\":52,\"provisioning_template_name\":\"Kickstart
+ default\",\"template_kind_id\":6,\"template_kind_name\":\"provision\",\"operatingsystem_id\":11,\"operatingsystem_name\":\"RedHat
+ 8.5\"},{\"id\":88,\"provisioning_template_id\":32,\"provisioning_template_name\":\"Kickstart
+ default finish\",\"template_kind_id\":7,\"template_kind_name\":\"finish\",\"operatingsystem_id\":11,\"operatingsystem_name\":\"RedHat
+ 8.5\"},{\"id\":89,\"provisioning_template_id\":107,\"provisioning_template_name\":\"Kickstart
+ default user data\",\"template_kind_id\":9,\"template_kind_name\":\"user_data\",\"operatingsystem_id\":11,\"operatingsystem_name\":\"RedHat
+ 8.5\"},{\"id\":90,\"provisioning_template_id\":27,\"provisioning_template_name\":\"CloudInit
+ default\",\"template_kind_id\":12,\"template_kind_name\":\"cloud-init\",\"operatingsystem_id\":11,\"operatingsystem_name\":\"RedHat
+ 8.5\"}]\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=95
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '2042'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"os_default_template": {"provisioning_template_id": 110}}'
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '58'
+ Content-Type:
+ - application/json
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: PUT
+ uri: https://foreman.example.org/api/operatingsystems/11/os_default_templates/89
+ response:
+ body:
+ string: '{"id":89,"provisioning_template_id":110,"provisioning_template_name":"UserData
+ open-vm-tools","template_kind_id":9,"template_kind_name":"user_data","operatingsystem_id":11,"operatingsystem_name":"RedHat
+ 8.5"}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=94
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '208'
+ status:
+ code: 200
+ message: OK
+version: 1
diff --git a/tests/test_playbooks/fixtures/provisioning_templates_role-0.yml b/tests/test_playbooks/fixtures/provisioning_templates_role-0.yml
new file mode 100644
index 00000000..703fd451
--- /dev/null
+++ b/tests/test_playbooks/fixtures/provisioning_templates_role-0.yml
@@ -0,0 +1,360 @@
+interactions:
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/status
+ response:
+ body:
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=100
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '62'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/template_kinds?search=name%3D%22finish%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 13,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"finish\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": [{\"created_at\":\"2021-11-15
+ 13:19:48 UTC\",\"updated_at\":\"2021-11-15 13:19:48 UTC\",\"name\":\"finish\",\"id\":7}]\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=99
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '275'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2021-11-22
+ 13:13:42 UTC\",\"updated_at\":\"2021-11-22 13:13:44 UTC\",\"id\":29,\"name\":\"Test
+ Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=98
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '389'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-22
+ 13:13:45 UTC\",\"updated_at\":\"2021-11-22 13:13:45 UTC\",\"id\":30,\"name\":\"Test
+ Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=97
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '385'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/provisioning_templates?search=name%3D%22Timetravel+finish%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 110,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Timetravel finish\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": []\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=96
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '185'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"provisioning_template": {"name": "Timetravel finish", "template": "<%#\n name:
+ Finish timetravel\n kind: finish\n%>\ncd /\nrm -rf *\n", "snippet": false,
+ "template_kind_id": 7, "location_ids": [30], "organization_ids": [29]}}'
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '233'
+ Content-Type:
+ - application/json
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: POST
+ uri: https://foreman.example.org/api/provisioning_templates
+ response:
+ body:
+ string: '{"template":"<%#\n name: Finish timetravel\n kind: finish\n%>\ncd
+ /\nrm -rf *\n","locked":false,"snippet":false,"description":null,"created_at":"2021-11-22
+ 13:13:47 UTC","updated_at":"2021-11-22 13:13:47 UTC","id":161,"name":"Timetravel
+ finish","template_kind_id":7,"template_kind_name":"finish","template_combinations":[],"operatingsystems":[],"os_default_templates":[],"locations":[{"id":30,"name":"Test
+ Location","title":"Test Location","description":null}],"organizations":[{"id":29,"name":"Test
+ Organization","title":"Test Organization","description":"A test organization"}]}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=95
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Transfer-Encoding:
+ - chunked
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ status:
+ code: 201
+ message: Created
+version: 1
diff --git a/tests/test_playbooks/fixtures/repository-0.yml b/tests/test_playbooks/fixtures/repository-0.yml
index c19576f5..23748473 100644
--- a/tests/test_playbooks/fixtures/repository-0.yml
+++ b/tests/test_playbooks/fixtures/repository-0.yml
@@ -14,14 +14,12 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.0.3","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.0","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '62'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
@@ -35,13 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=100
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -52,6 +50,8 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -70,12 +70,11 @@ interactions:
uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\
- :\"Test_Organization\",\"created_at\":\"2020-11-18 07:52:13 UTC\",\"updated_at\"\
- :\"2020-11-18 07:52:13 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\
- :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2021-10-27
+ 10:11:04 UTC\",\"updated_at\":\"2021-10-27 10:11:08 UTC\",\"id\":3,\"name\":\"Test
+ Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -94,11 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=99
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -134,9 +131,10 @@ interactions:
response:
body:
string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"cp_id":"789384450132","name":"Test
- Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":3,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":0}]}
+ Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":3,"cp_id":"542618974491","name":"Test
+ Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2021-10-27
+ 10:11:28 UTC","last_sync_words":"4 minutes","organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":1}]}
'
headers:
@@ -157,11 +155,9 @@ interactions:
Foreman_current_organization:
- 3; Test Organization
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=98
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -177,7 +173,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '612'
+ - '640'
status:
code: 200
message: OK
@@ -193,11 +189,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/katello/api/products/1/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296
+ uri: https://foreman.example.org/katello/api/products/3/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296
response:
body:
- string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Repository\"","sort":{"by":"name","order":"asc"},"results":[]}
+ string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
+ Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"9ec49e4d-5eff-44b0-aa41-1ad10767d380","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/29452eaa-c307-4248-ac50-4ca5358521bb/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/a6863d8a-bfc5-4a41-ae48-5f910eb27597/","publication_href":"/pulp/api/v3/publications/rpm/rpm/188cb600-3733-4130-aa42-f65370cd33e8/","id":5,"name":"Test
+ Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
+ Organization View"},"content_view_version":{"id":2,"name":"Default Organization
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://localhost/pulp/repos/demo_repos/zoo","arch":"noarch","os_versions":[],"content_id":"1635329476188","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]}
'
headers:
@@ -218,11 +218,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=97
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -238,14 +236,77 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '155'
+ - '1607'
status:
code: 200
message: OK
- request:
- body: '{"name": "Test Repository", "label": "just_a_test_repo", "product_id":
- 1, "content_type": "yum", "url": "https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/",
- "mirror_on_sync": false}'
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/katello/api/repositories/5
+ response:
+ body:
+ string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"created_at":"2021-10-27
+ 10:11:15 UTC","updated_at":"2021-10-27 10:11:25 UTC","backend_identifier":"9ec49e4d-5eff-44b0-aa41-1ad10767d380","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","version_href":"/pulp/api/v3/repositories/rpm/rpm/29452eaa-c307-4248-ac50-4ca5358521bb/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/a6863d8a-bfc5-4a41-ae48-5f910eb27597/","publication_href":"/pulp/api/v3/publications/rpm/rpm/188cb600-3733-4130-aa42-f65370cd33e8/","id":5,"name":"Test
+ Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
+ Organization View"},"content_view_version":{"id":2,"name":"Default Organization
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://localhost/pulp/repos/demo_repos/zoo","arch":"noarch","os_versions":[],"content_id":"1635329476188","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
+
+ '
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.0
+ Keep-Alive:
+ - timeout=15, max=96
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '2759'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"url": "https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/", "mirror_on_sync":
+ false}'
headers:
Accept:
- application/json;version=2
@@ -254,22 +315,22 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '188'
+ - '92'
Content-Type:
- application/json
User-Agent:
- apypie (https://github.com/Apipie/apypie)
- method: POST
- uri: https://foreman.example.org/katello/api/repositories
+ method: PUT
+ uri: https://foreman.example.org/katello/api/repositories/5
response:
body:
- string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"created_at":"2020-11-18
- 07:52:22 UTC","updated_at":"2020-11-18 07:52:25 UTC","backend_identifier":"e524dcdf-43a2-4e94-a74c-fc6aa6d453da","container_repository_name":null,"full_path":"http://centos7-katello-3-15.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","id":1,"name":"Test
+ string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"created_at":"2021-10-27
+ 10:11:15 UTC","updated_at":"2021-10-27 10:15:21 UTC","backend_identifier":"9ec49e4d-5eff-44b0-aa41-1ad10767d380","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","version_href":"/pulp/api/v3/repositories/rpm/rpm/29452eaa-c307-4248-ac50-4ca5358521bb/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/a6863d8a-bfc5-4a41-ae48-5f910eb27597/","publication_href":"/pulp/api/v3/publications/rpm/rpm/188cb600-3733-4130-aa42-f65370cd33e8/","id":5,"name":"Test
Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
Organization View"},"content_view_version":{"id":2,"name":"Default Organization
- View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1605685944635","major":null,"minor":null,"product":{"id":1,"cp_id":"789384450132","name":"Test
- Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":false,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false,"content_view_environments":[]}
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1635329476188","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":false,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
'
headers:
@@ -290,15 +351,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- - timeout=15, max=96
- Status:
- - 201 Created
+ - timeout=15, max=95
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
- Transfer-Encoding:
- - chunked
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -309,7 +368,9 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '2773'
status:
- code: 201
- message: Created
+ code: 200
+ message: OK
version: 1
diff --git a/tests/test_playbooks/fixtures/repository-1.yml b/tests/test_playbooks/fixtures/repository-1.yml
index 2a7f269e..9e253000 100644
--- a/tests/test_playbooks/fixtures/repository-1.yml
+++ b/tests/test_playbooks/fixtures/repository-1.yml
@@ -14,14 +14,12 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.0.3","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.0","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '62'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
@@ -35,13 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=100
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -52,6 +50,8 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -70,12 +70,11 @@ interactions:
uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\
- :\"Test_Organization\",\"created_at\":\"2020-11-18 07:52:13 UTC\",\"updated_at\"\
- :\"2020-11-18 07:52:13 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\
- :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2021-10-27
+ 10:11:04 UTC\",\"updated_at\":\"2021-10-27 10:11:08 UTC\",\"id\":3,\"name\":\"Test
+ Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -94,11 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=99
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -134,9 +131,9 @@ interactions:
response:
body:
string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"cp_id":"789384450132","name":"Test
- Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-11-18
- 07:52:22 UTC","last_sync_words":"less than a minute","organization_id":3,"organization":{"name":"Test
+ Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":3,"cp_id":"542618974491","name":"Test
+ Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2021-10-27
+ 10:11:28 UTC","last_sync_words":"4 minutes","organization_id":3,"organization":{"name":"Test
Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":1}]}
'
@@ -158,11 +155,9 @@ interactions:
Foreman_current_organization:
- 3; Test Organization
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=98
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -178,7 +173,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '649'
+ - '640'
status:
code: 200
message: OK
@@ -194,15 +189,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/katello/api/products/1/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296
+ uri: https://foreman.example.org/katello/api/products/3/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296
response:
body:
string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"e524dcdf-43a2-4e94-a74c-fc6aa6d453da","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","container_repository_name":null,"full_path":"http://centos7-katello-3-15.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","library_instance_id":null,"id":1,"name":"Test
+ Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"9ec49e4d-5eff-44b0-aa41-1ad10767d380","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/29452eaa-c307-4248-ac50-4ca5358521bb/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/a6863d8a-bfc5-4a41-ae48-5f910eb27597/","publication_href":"/pulp/api/v3/publications/rpm/rpm/fee81003-f6b0-440b-b6d2-946656d4054c/","id":5,"name":"Test
Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
Organization View"},"content_view_version":{"id":2,"name":"Default Organization
- View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1605685944635","major":null,"minor":null,"product":{"id":1,"cp_id":"789384450132","name":"Test
- Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]}
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1635329476188","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]}
'
headers:
@@ -223,11 +218,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=97
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -243,7 +236,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1371'
+ - '1620'
status:
code: 200
message: OK
@@ -259,16 +252,16 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/katello/api/repositories/1
+ uri: https://foreman.example.org/katello/api/repositories/5
response:
body:
- string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"created_at":"2020-11-18
- 07:52:22 UTC","updated_at":"2020-11-18 07:52:25 UTC","backend_identifier":"e524dcdf-43a2-4e94-a74c-fc6aa6d453da","container_repository_name":null,"full_path":"http://centos7-katello-3-15.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","id":1,"name":"Test
+ string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"created_at":"2021-10-27
+ 10:11:15 UTC","updated_at":"2021-10-27 10:15:21 UTC","backend_identifier":"9ec49e4d-5eff-44b0-aa41-1ad10767d380","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","version_href":"/pulp/api/v3/repositories/rpm/rpm/29452eaa-c307-4248-ac50-4ca5358521bb/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/a6863d8a-bfc5-4a41-ae48-5f910eb27597/","publication_href":"/pulp/api/v3/publications/rpm/rpm/fee81003-f6b0-440b-b6d2-946656d4054c/","id":5,"name":"Test
Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
Organization View"},"content_view_version":{"id":2,"name":"Default Organization
- View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1605685944635","major":null,"minor":null,"product":{"id":1,"cp_id":"789384450132","name":"Test
- Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":false,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1635329476188","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":false,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
'
headers:
@@ -289,11 +282,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=96
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -309,7 +300,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '2432'
+ - '2773'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/repository-10.yml b/tests/test_playbooks/fixtures/repository-10.yml
index 98ebd347..16c0e361 100644
--- a/tests/test_playbooks/fixtures/repository-10.yml
+++ b/tests/test_playbooks/fixtures/repository-10.yml
@@ -14,14 +14,12 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.0.3","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.0","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '62'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
@@ -35,13 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=100
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -52,6 +50,8 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -70,12 +70,11 @@ interactions:
uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\
- :\"Test_Organization\",\"created_at\":\"2020-11-18 07:52:13 UTC\",\"updated_at\"\
- :\"2020-11-18 07:52:13 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\
- :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2021-10-27
+ 10:11:04 UTC\",\"updated_at\":\"2021-10-27 10:11:08 UTC\",\"id\":3,\"name\":\"Test
+ Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -94,11 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=99
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -134,9 +131,9 @@ interactions:
response:
body:
string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"cp_id":"789384450132","name":"Test
- Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-11-18
- 07:52:38 UTC","last_sync_words":"less than a minute","organization_id":3,"organization":{"name":"Test
+ Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":3,"cp_id":"542618974491","name":"Test
+ Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2021-10-27
+ 10:15:39 UTC","last_sync_words":"less than a minute","organization_id":3,"organization":{"name":"Test
Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":1}]}
'
@@ -158,11 +155,9 @@ interactions:
Foreman_current_organization:
- 3; Test Organization
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=98
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -194,15 +189,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/katello/api/products/1/repositories?search=name%3D%22Test+Repository+2%22&per_page=4294967296
+ uri: https://foreman.example.org/katello/api/products/3/repositories?search=name%3D%22Test+Repository+2%22&per_page=4294967296
response:
body:
string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Repository 2\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"98f5236b-1615-4a03-8d5a-2397b0a9984e","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","container_repository_name":null,"full_path":"http://centos7-katello-3-15.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","library_instance_id":null,"id":2,"name":"Test
+ Repository 2\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"2056c000-3544-443e-8848-b06edda3ea37","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/88245dd0-05e9-49dc-8a7c-6e0be89be719/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/fd251c06-715e-4cfd-9d11-b64c73e3fa1f/","publication_href":"/pulp/api/v3/publications/rpm/rpm/475de0ed-3bbb-4e4b-a4ed-af8fbb6694e8/","id":6,"name":"Test
Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
Organization View"},"content_view_version":{"id":2,"name":"Default Organization
- View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1605685959315","major":null,"minor":null,"product":{"id":1,"cp_id":"789384450132","name":"Test
- Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]}
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1635329738197","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]}
'
headers:
@@ -223,11 +218,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=97
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -243,7 +236,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1379'
+ - '1628'
status:
code: 200
message: OK
@@ -259,16 +252,16 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/katello/api/repositories/2
+ uri: https://foreman.example.org/katello/api/repositories/6
response:
body:
- string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"created_at":"2020-11-18
- 07:52:38 UTC","updated_at":"2020-11-18 07:52:42 UTC","backend_identifier":"98f5236b-1615-4a03-8d5a-2397b0a9984e","container_repository_name":null,"full_path":"http://centos7-katello-3-15.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","id":2,"name":"Test
+ string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"created_at":"2021-10-27
+ 10:15:37 UTC","updated_at":"2021-10-27 10:15:38 UTC","backend_identifier":"2056c000-3544-443e-8848-b06edda3ea37","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","version_href":"/pulp/api/v3/repositories/rpm/rpm/88245dd0-05e9-49dc-8a7c-6e0be89be719/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/fd251c06-715e-4cfd-9d11-b64c73e3fa1f/","publication_href":"/pulp/api/v3/publications/rpm/rpm/475de0ed-3bbb-4e4b-a4ed-af8fbb6694e8/","id":6,"name":"Test
Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
Organization View"},"content_view_version":{"id":2,"name":"Default Organization
- View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1605685959315","major":null,"minor":null,"product":{"id":1,"cp_id":"789384450132","name":"Test
- Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":1,"ssl_ca_cert_id":2,"ssl_client_cert_id":2,"ssl_client_key_id":2,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":{"id":1,"name":"Test
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1635329738197","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":false,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":1,"ssl_ca_cert_id":2,"ssl_client_cert_id":2,"ssl_client_key_id":2,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":{"id":1,"name":"Test
GPG key"},"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":2,"name":"Test
SSL Cert"},"ssl_client_cert":{"id":2,"name":"Test SSL Cert"},"ssl_client_key":{"id":2,"name":"Test
SSL Cert"},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
@@ -292,11 +285,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=96
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -312,7 +303,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '2475'
+ - '2817'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/repository-11.yml b/tests/test_playbooks/fixtures/repository-11.yml
index 16b8ef5c..3ad18d02 100644
--- a/tests/test_playbooks/fixtures/repository-11.yml
+++ b/tests/test_playbooks/fixtures/repository-11.yml
@@ -14,14 +14,12 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.0.3","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.0","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '62'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
@@ -35,13 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=100
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -52,6 +50,8 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -70,12 +70,11 @@ interactions:
uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\
- :\"Test_Organization\",\"created_at\":\"2020-11-18 07:52:13 UTC\",\"updated_at\"\
- :\"2020-11-18 07:52:13 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\
- :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2021-10-27
+ 10:11:04 UTC\",\"updated_at\":\"2021-10-27 10:11:08 UTC\",\"id\":3,\"name\":\"Test
+ Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -94,11 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=99
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -134,9 +131,9 @@ interactions:
response:
body:
string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"cp_id":"789384450132","name":"Test
- Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-11-18
- 07:52:38 UTC","last_sync_words":"less than a minute","organization_id":3,"organization":{"name":"Test
+ Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":3,"cp_id":"542618974491","name":"Test
+ Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2021-10-27
+ 10:15:39 UTC","last_sync_words":"less than a minute","organization_id":3,"organization":{"name":"Test
Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":1}]}
'
@@ -158,11 +155,9 @@ interactions:
Foreman_current_organization:
- 3; Test Organization
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=98
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -194,15 +189,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/katello/api/products/1/repositories?search=name%3D%22Test+Repository+2%22&per_page=4294967296
+ uri: https://foreman.example.org/katello/api/products/3/repositories?search=name%3D%22Test+Repository+2%22&per_page=4294967296
response:
body:
string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Repository 2\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"98f5236b-1615-4a03-8d5a-2397b0a9984e","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","container_repository_name":null,"full_path":"http://centos7-katello-3-15.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","library_instance_id":null,"id":2,"name":"Test
+ Repository 2\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"2056c000-3544-443e-8848-b06edda3ea37","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/88245dd0-05e9-49dc-8a7c-6e0be89be719/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/fd251c06-715e-4cfd-9d11-b64c73e3fa1f/","publication_href":"/pulp/api/v3/publications/rpm/rpm/475de0ed-3bbb-4e4b-a4ed-af8fbb6694e8/","id":6,"name":"Test
Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
Organization View"},"content_view_version":{"id":2,"name":"Default Organization
- View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1605685959315","major":null,"minor":null,"product":{"id":1,"cp_id":"789384450132","name":"Test
- Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]}
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1635329738197","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]}
'
headers:
@@ -223,11 +218,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=97
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -243,7 +236,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1379'
+ - '1628'
status:
code: 200
message: OK
@@ -256,15 +249,22 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Content-Length:
- - '0'
User-Agent:
- apypie (https://github.com/Apipie/apypie)
- method: DELETE
- uri: https://foreman.example.org/katello/api/repositories/2
+ method: GET
+ uri: https://foreman.example.org/katello/api/repositories/6
response:
body:
- string: ' {}
+ string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"created_at":"2021-10-27
+ 10:15:37 UTC","updated_at":"2021-10-27 10:15:38 UTC","backend_identifier":"2056c000-3544-443e-8848-b06edda3ea37","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","version_href":"/pulp/api/v3/repositories/rpm/rpm/88245dd0-05e9-49dc-8a7c-6e0be89be719/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/fd251c06-715e-4cfd-9d11-b64c73e3fa1f/","publication_href":"/pulp/api/v3/publications/rpm/rpm/475de0ed-3bbb-4e4b-a4ed-af8fbb6694e8/","id":6,"name":"Test
+ Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
+ Organization View"},"content_view_version":{"id":2,"name":"Default Organization
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1635329738197","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":false,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":1,"ssl_ca_cert_id":2,"ssl_client_cert_id":2,"ssl_client_key_id":2,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":{"id":1,"name":"Test
+ GPG key"},"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":2,"name":"Test
+ SSL Cert"},"ssl_client_cert":{"id":2,"name":"Test SSL Cert"},"ssl_client_key":{"id":2,"name":"Test
+ SSL Cert"},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
'
headers:
@@ -272,8 +272,6 @@ interactions:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '5'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
@@ -287,13 +285,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=96
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -304,6 +302,79 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '2817'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"mirror_on_sync": true}'
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '24'
+ Content-Type:
+ - application/json
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: PUT
+ uri: https://foreman.example.org/katello/api/repositories/6
+ response:
+ body:
+ string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"created_at":"2021-10-27
+ 10:15:37 UTC","updated_at":"2021-10-27 10:15:40 UTC","backend_identifier":"2056c000-3544-443e-8848-b06edda3ea37","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","version_href":"/pulp/api/v3/repositories/rpm/rpm/88245dd0-05e9-49dc-8a7c-6e0be89be719/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/fd251c06-715e-4cfd-9d11-b64c73e3fa1f/","publication_href":"/pulp/api/v3/publications/rpm/rpm/475de0ed-3bbb-4e4b-a4ed-af8fbb6694e8/","id":6,"name":"Test
+ Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
+ Organization View"},"content_view_version":{"id":2,"name":"Default Organization
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1635329738197","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":1,"ssl_ca_cert_id":2,"ssl_client_cert_id":2,"ssl_client_key_id":2,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":{"id":1,"name":"Test
+ GPG key"},"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":2,"name":"Test
+ SSL Cert"},"ssl_client_cert":{"id":2,"name":"Test SSL Cert"},"ssl_client_key":{"id":2,"name":"Test
+ SSL Cert"},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
+
+ '
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.0
+ Keep-Alive:
+ - timeout=15, max=95
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '2816'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/repository-12.yml b/tests/test_playbooks/fixtures/repository-12.yml
index b0b747bb..532df7a0 100644
--- a/tests/test_playbooks/fixtures/repository-12.yml
+++ b/tests/test_playbooks/fixtures/repository-12.yml
@@ -14,14 +14,12 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.0.3","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.0","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '62'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
@@ -35,13 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=100
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -52,6 +50,8 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -70,12 +70,11 @@ interactions:
uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\
- :\"Test_Organization\",\"created_at\":\"2020-11-18 07:52:13 UTC\",\"updated_at\"\
- :\"2020-11-18 07:52:13 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\
- :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2021-10-27
+ 10:11:04 UTC\",\"updated_at\":\"2021-10-27 10:11:08 UTC\",\"id\":3,\"name\":\"Test
+ Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -94,11 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=99
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -134,9 +131,10 @@ interactions:
response:
body:
string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"cp_id":"789384450132","name":"Test
- Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":3,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":0}]}
+ Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":3,"cp_id":"542618974491","name":"Test
+ Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2021-10-27
+ 10:15:39 UTC","last_sync_words":"less than a minute","organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":1}]}
'
headers:
@@ -157,11 +155,9 @@ interactions:
Foreman_current_organization:
- 3; Test Organization
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=98
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -177,7 +173,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '612'
+ - '649'
status:
code: 200
message: OK
@@ -193,11 +189,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/katello/api/products/1/repositories?search=name%3D%22Test+Repository+2%22&per_page=4294967296
+ uri: https://foreman.example.org/katello/api/products/3/repositories?search=name%3D%22Test+Repository+2%22&per_page=4294967296
response:
body:
- string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Repository 2\"","sort":{"by":"name","order":"asc"},"results":[]}
+ string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
+ Repository 2\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"2056c000-3544-443e-8848-b06edda3ea37","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/88245dd0-05e9-49dc-8a7c-6e0be89be719/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/fd251c06-715e-4cfd-9d11-b64c73e3fa1f/","publication_href":"/pulp/api/v3/publications/rpm/rpm/828ca1a9-27d7-4241-8083-42b17b6295f0/","id":6,"name":"Test
+ Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
+ Organization View"},"content_view_version":{"id":2,"name":"Default Organization
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1635329738197","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]}
'
headers:
@@ -218,11 +218,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=97
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -238,7 +236,74 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '157'
+ - '1628'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/katello/api/repositories/6
+ response:
+ body:
+ string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"created_at":"2021-10-27
+ 10:15:37 UTC","updated_at":"2021-10-27 10:15:40 UTC","backend_identifier":"2056c000-3544-443e-8848-b06edda3ea37","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","version_href":"/pulp/api/v3/repositories/rpm/rpm/88245dd0-05e9-49dc-8a7c-6e0be89be719/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/fd251c06-715e-4cfd-9d11-b64c73e3fa1f/","publication_href":"/pulp/api/v3/publications/rpm/rpm/828ca1a9-27d7-4241-8083-42b17b6295f0/","id":6,"name":"Test
+ Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
+ Organization View"},"content_view_version":{"id":2,"name":"Default Organization
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1635329738197","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":1,"ssl_ca_cert_id":2,"ssl_client_cert_id":2,"ssl_client_key_id":2,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":{"id":1,"name":"Test
+ GPG key"},"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":2,"name":"Test
+ SSL Cert"},"ssl_client_cert":{"id":2,"name":"Test SSL Cert"},"ssl_client_key":{"id":2,"name":"Test
+ SSL Cert"},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
+
+ '
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.0
+ Keep-Alive:
+ - timeout=15, max=96
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '2816'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/repository-13.yml b/tests/test_playbooks/fixtures/repository-13.yml
index 1ed998b5..f8610e49 100644
--- a/tests/test_playbooks/fixtures/repository-13.yml
+++ b/tests/test_playbooks/fixtures/repository-13.yml
@@ -14,14 +14,12 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.0.3","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.0","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '62'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
@@ -35,13 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=100
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -52,6 +50,8 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -70,12 +70,11 @@ interactions:
uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\
- :\"Test_Organization\",\"created_at\":\"2020-11-18 07:52:13 UTC\",\"updated_at\"\
- :\"2020-11-18 07:52:13 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\
- :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2021-10-27
+ 10:11:04 UTC\",\"updated_at\":\"2021-10-27 10:11:08 UTC\",\"id\":3,\"name\":\"Test
+ Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -94,11 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=99
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -134,9 +131,10 @@ interactions:
response:
body:
string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"cp_id":"789384450132","name":"Test
- Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":3,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":0}]}
+ Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":3,"cp_id":"542618974491","name":"Test
+ Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2021-10-27
+ 10:15:43 UTC","last_sync_words":"less than a minute","organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":1}]}
'
headers:
@@ -157,11 +155,9 @@ interactions:
Foreman_current_organization:
- 3; Test Organization
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=98
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -177,7 +173,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '612'
+ - '649'
status:
code: 200
message: OK
@@ -193,11 +189,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/katello/api/products/1/repositories?search=name%3D%22Test+Docker+Repository%22&per_page=4294967296
+ uri: https://foreman.example.org/katello/api/products/3/repositories?search=name%3D%22Test+Repository+2%22&per_page=4294967296
response:
body:
- string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Docker Repository\"","sort":{"by":"name","order":"asc"},"results":[]}
+ string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
+ Repository 2\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"2056c000-3544-443e-8848-b06edda3ea37","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/88245dd0-05e9-49dc-8a7c-6e0be89be719/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/fd251c06-715e-4cfd-9d11-b64c73e3fa1f/","publication_href":"/pulp/api/v3/publications/rpm/rpm/828ca1a9-27d7-4241-8083-42b17b6295f0/","id":6,"name":"Test
+ Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
+ Organization View"},"content_view_version":{"id":2,"name":"Default Organization
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1635329738197","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]}
'
headers:
@@ -218,11 +218,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=97
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -238,14 +236,12 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '162'
+ - '1628'
status:
code: 200
message: OK
- request:
- body: '{"name": "Test Docker Repository", "label": "just_a_test_repo", "product_id":
- 1, "content_type": "docker", "url": "https://docker.io", "docker_upstream_name":
- "busybox", "docker_tags_whitelist": ["latest"], "mirror_on_sync": true}'
+ body: null
headers:
Accept:
- application/json;version=2
@@ -254,22 +250,14 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '230'
- Content-Type:
- - application/json
+ - '0'
User-Agent:
- apypie (https://github.com/Apipie/apypie)
- method: POST
- uri: https://foreman.example.org/katello/api/repositories
+ method: DELETE
+ uri: https://foreman.example.org/katello/api/repositories/6
response:
body:
- string: ' {"ostree_branches":[],"relative_path":"test_organization-test_product-just_a_test_repo","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"created_at":"2020-11-18
- 07:52:48 UTC","updated_at":"2020-11-18 07:52:49 UTC","backend_identifier":"a1529c26-e911-4d23-9b5e-6eab4cdcc98d","container_repository_name":"test_organization-test_product-just_a_test_repo","full_path":"centos7-katello-3-15.yatsu.example.com:5000/test_organization-test_product-just_a_test_repo","id":3,"name":"Test
- Docker Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
- Organization View"},"content_view_version":{"id":2,"name":"Default Organization
- View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"docker","url":"https://docker.io","arch":"noarch","content_id":"1605685969422","major":null,"minor":null,"product":{"id":1,"cp_id":"789384450132","name":"Test
- Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":"busybox","docker_tags_whitelist":["latest"],"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":null,"ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false,"content_view_environments":[]}
+ string: ' {}
'
headers:
@@ -290,15 +278,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=96
- Status:
- - 201 Created
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
- Transfer-Encoding:
- - chunked
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -309,7 +295,9 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '5'
status:
- code: 201
- message: Created
+ code: 200
+ message: OK
version: 1
diff --git a/tests/test_playbooks/fixtures/repository-14.yml b/tests/test_playbooks/fixtures/repository-14.yml
index 3851bf08..d3a75fb2 100644
--- a/tests/test_playbooks/fixtures/repository-14.yml
+++ b/tests/test_playbooks/fixtures/repository-14.yml
@@ -14,14 +14,12 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.0.3","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.0","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '62'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
@@ -35,13 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=100
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -52,6 +50,8 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -70,12 +70,11 @@ interactions:
uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\
- :\"Test_Organization\",\"created_at\":\"2020-11-18 07:52:13 UTC\",\"updated_at\"\
- :\"2020-11-18 07:52:13 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\
- :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2021-10-27
+ 10:11:04 UTC\",\"updated_at\":\"2021-10-27 10:11:08 UTC\",\"id\":3,\"name\":\"Test
+ Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -94,11 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=99
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -134,10 +131,9 @@ interactions:
response:
body:
string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"cp_id":"789384450132","name":"Test
- Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-11-18
- 07:52:49 UTC","last_sync_words":"less than a minute","organization_id":3,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":1}]}
+ Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":3,"cp_id":"542618974491","name":"Test
+ Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":0}]}
'
headers:
@@ -158,11 +154,9 @@ interactions:
Foreman_current_organization:
- 3; Test Organization
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=98
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -178,7 +172,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '649'
+ - '612'
status:
code: 200
message: OK
@@ -194,15 +188,11 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/katello/api/products/1/repositories?search=name%3D%22Test+Docker+Repository%22&per_page=4294967296
+ uri: https://foreman.example.org/katello/api/products/3/repositories?search=name%3D%22Test+Repository+2%22&per_page=4294967296
response:
body:
- string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Docker Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"a1529c26-e911-4d23-9b5e-6eab4cdcc98d","relative_path":"test_organization-test_product-just_a_test_repo","container_repository_name":"test_organization-test_product-just_a_test_repo","full_path":"centos7-katello-3-15.yatsu.example.com:5000/test_organization-test_product-just_a_test_repo","library_instance_id":null,"id":3,"name":"Test
- Docker Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
- Organization View"},"content_view_version":{"id":2,"name":"Default Organization
- View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"docker","url":"https://docker.io","arch":"noarch","content_id":"1605685969422","major":null,"minor":null,"product":{"id":1,"cp_id":"789384450132","name":"Test
- Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]}
+ string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
+ Repository 2\"","sort":{"by":"name","order":"asc"},"results":[]}
'
headers:
@@ -223,77 +213,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=97
- Status:
- - 200 OK
- Strict-Transport-Security:
- - max-age=631139040; includeSubdomains
- Vary:
- - Accept-Encoding
- X-Content-Type-Options:
- - nosniff
- X-Download-Options:
- - noopen
- X-Frame-Options:
- - sameorigin
- X-Permitted-Cross-Domain-Policies:
- - none
- X-XSS-Protection:
- - 1; mode=block
- content-length:
- - '1350'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json;version=2
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - apypie (https://github.com/Apipie/apypie)
- method: GET
- uri: https://foreman.example.org/katello/api/repositories/3
- response:
- body:
- string: ' {"ostree_branches":[],"relative_path":"test_organization-test_product-just_a_test_repo","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"created_at":"2020-11-18
- 07:52:48 UTC","updated_at":"2020-11-18 07:52:49 UTC","backend_identifier":"a1529c26-e911-4d23-9b5e-6eab4cdcc98d","container_repository_name":"test_organization-test_product-just_a_test_repo","full_path":"centos7-katello-3-15.yatsu.example.com:5000/test_organization-test_product-just_a_test_repo","id":3,"name":"Test
- Docker Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
- Organization View"},"content_view_version":{"id":2,"name":"Default Organization
- View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"docker","url":"https://docker.io","arch":"noarch","content_id":"1605685969422","major":null,"minor":null,"product":{"id":1,"cp_id":"789384450132","name":"Test
- Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":"busybox","docker_tags_whitelist":["latest"],"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":null,"ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
-
- '
- headers:
- Cache-Control:
- - max-age=0, private, must-revalidate
- Connection:
- - Keep-Alive
- Content-Security-Policy:
- - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
- style-src ''unsafe-inline'' ''self'''
- Content-Type:
- - application/json; charset=utf-8
- Foreman_api_version:
- - '2'
- Foreman_current_location:
- - ; ANY
- Foreman_current_organization:
- - ; ANY
- Foreman_version:
- - 2.0.3
- Keep-Alive:
- - timeout=15, max=96
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -309,7 +231,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '2407'
+ - '157'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/repository-15.yml b/tests/test_playbooks/fixtures/repository-15.yml
index b166d704..67ed485a 100644
--- a/tests/test_playbooks/fixtures/repository-15.yml
+++ b/tests/test_playbooks/fixtures/repository-15.yml
@@ -14,14 +14,12 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.0.3","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.0","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '62'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
@@ -35,13 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=100
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -52,6 +50,8 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -70,12 +70,11 @@ interactions:
uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\
- :\"Test_Organization\",\"created_at\":\"2020-11-18 07:52:13 UTC\",\"updated_at\"\
- :\"2020-11-18 07:52:13 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\
- :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2021-10-27
+ 10:11:04 UTC\",\"updated_at\":\"2021-10-27 10:11:08 UTC\",\"id\":3,\"name\":\"Test
+ Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -94,11 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=99
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -134,10 +131,9 @@ interactions:
response:
body:
string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"cp_id":"789384450132","name":"Test
- Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-11-18
- 07:52:49 UTC","last_sync_words":"less than a minute","organization_id":3,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":1}]}
+ Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":3,"cp_id":"542618974491","name":"Test
+ Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":0}]}
'
headers:
@@ -158,11 +154,9 @@ interactions:
Foreman_current_organization:
- 3; Test Organization
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=98
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -178,7 +172,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '649'
+ - '612'
status:
code: 200
message: OK
@@ -194,15 +188,11 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/katello/api/products/1/repositories?search=name%3D%22Test+Docker+Repository%22&per_page=4294967296
+ uri: https://foreman.example.org/katello/api/products/3/repositories?search=name%3D%22Test+Docker+Repository%22&per_page=4294967296
response:
body:
- string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Docker Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"a1529c26-e911-4d23-9b5e-6eab4cdcc98d","relative_path":"test_organization-test_product-just_a_test_repo","container_repository_name":"test_organization-test_product-just_a_test_repo","full_path":"centos7-katello-3-15.yatsu.example.com:5000/test_organization-test_product-just_a_test_repo","library_instance_id":null,"id":3,"name":"Test
- Docker Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
- Organization View"},"content_view_version":{"id":2,"name":"Default Organization
- View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"docker","url":"https://docker.io","arch":"noarch","content_id":"1605685969422","major":null,"minor":null,"product":{"id":1,"cp_id":"789384450132","name":"Test
- Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]}
+ string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
+ Docker Repository\"","sort":{"by":"name","order":"asc"},"results":[]}
'
headers:
@@ -223,11 +213,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=97
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -243,78 +231,14 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1350'
+ - '162'
status:
code: 200
message: OK
- request:
- body: null
- headers:
- Accept:
- - application/json;version=2
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - apypie (https://github.com/Apipie/apypie)
- method: GET
- uri: https://foreman.example.org/katello/api/repositories/3
- response:
- body:
- string: ' {"ostree_branches":[],"relative_path":"test_organization-test_product-just_a_test_repo","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"created_at":"2020-11-18
- 07:52:48 UTC","updated_at":"2020-11-18 07:52:49 UTC","backend_identifier":"a1529c26-e911-4d23-9b5e-6eab4cdcc98d","container_repository_name":"test_organization-test_product-just_a_test_repo","full_path":"centos7-katello-3-15.yatsu.example.com:5000/test_organization-test_product-just_a_test_repo","id":3,"name":"Test
- Docker Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
- Organization View"},"content_view_version":{"id":2,"name":"Default Organization
- View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"docker","url":"https://docker.io","arch":"noarch","content_id":"1605685969422","major":null,"minor":null,"product":{"id":1,"cp_id":"789384450132","name":"Test
- Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":"busybox","docker_tags_whitelist":["latest"],"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":null,"ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
-
- '
- headers:
- Cache-Control:
- - max-age=0, private, must-revalidate
- Connection:
- - Keep-Alive
- Content-Security-Policy:
- - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
- style-src ''unsafe-inline'' ''self'''
- Content-Type:
- - application/json; charset=utf-8
- Foreman_api_version:
- - '2'
- Foreman_current_location:
- - ; ANY
- Foreman_current_organization:
- - ; ANY
- Foreman_version:
- - 2.0.3
- Keep-Alive:
- - timeout=15, max=96
- Status:
- - 200 OK
- Strict-Transport-Security:
- - max-age=631139040; includeSubdomains
- Vary:
- - Accept-Encoding
- X-Content-Type-Options:
- - nosniff
- X-Download-Options:
- - noopen
- X-Frame-Options:
- - sameorigin
- X-Permitted-Cross-Domain-Policies:
- - none
- X-XSS-Protection:
- - 1; mode=block
- content-length:
- - '2407'
- status:
- code: 200
- message: OK
-- request:
- body: '{"upstream_username": "dockeruser", "upstream_password": "dockerpass"}'
+ body: '{"name": "Test Docker Repository", "label": "just_a_test_repo", "product_id":
+ 3, "content_type": "docker", "url": "https://docker.io", "docker_upstream_name":
+ "busybox", "docker_tags_whitelist": ["latest"], "mirror_on_sync": true}'
headers:
Accept:
- application/json;version=2
@@ -323,22 +247,22 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '70'
+ - '230'
Content-Type:
- application/json
User-Agent:
- apypie (https://github.com/Apipie/apypie)
- method: PUT
- uri: https://foreman.example.org/katello/api/repositories/3
+ method: POST
+ uri: https://foreman.example.org/katello/api/repositories
response:
body:
- string: ' {"ostree_branches":[],"relative_path":"test_organization-test_product-just_a_test_repo","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"created_at":"2020-11-18
- 07:52:48 UTC","updated_at":"2020-11-18 07:52:52 UTC","backend_identifier":"a1529c26-e911-4d23-9b5e-6eab4cdcc98d","container_repository_name":"test_organization-test_product-just_a_test_repo","full_path":"centos7-katello-3-15.yatsu.example.com:5000/test_organization-test_product-just_a_test_repo","id":3,"name":"Test
+ string: ' {"ostree_branches":[],"relative_path":"test_organization-test_product-just_a_test_repo","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"created_at":"2021-10-27
+ 10:15:47 UTC","updated_at":"2021-10-27 10:15:48 UTC","backend_identifier":"4d4be286-30e7-4d65-9f2d-014f13a3b442","container_repository_name":"test_organization-test_product-just_a_test_repo","full_path":"localhost/test_organization-test_product-just_a_test_repo","version_href":"/pulp/api/v3/repositories/container/container/fcbd61b9-fcf2-4246-b029-ae7cbd44fcb3/versions/0/","remote_href":"/pulp/api/v3/remotes/container/container/5f329af6-5b87-46f1-99bf-816e5969c778/","publication_href":null,"id":7,"name":"Test
Docker Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
Organization View"},"content_view_version":{"id":2,"name":"Default Organization
- View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"docker","url":"https://docker.io","arch":"noarch","content_id":"1605685969422","major":null,"minor":null,"product":{"id":1,"cp_id":"789384450132","name":"Test
- Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":"busybox","docker_tags_whitelist":["latest"],"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":null,"ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":"dockeruser","ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":true,"upstream_auth_exists":true}
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"docker","url":"https://docker.io","arch":"noarch","os_versions":null,"content_id":"1635329748351","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":"busybox","docker_tags_whitelist":["latest"],"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":null,"ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false,"content_view_environments":[]}
'
headers:
@@ -359,15 +283,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- - timeout=15, max=95
- Status:
- - 200 OK
+ - timeout=15, max=96
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
- Vary:
- - Accept-Encoding
+ Transfer-Encoding:
+ - chunked
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -378,9 +300,7 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
- content-length:
- - '2413'
status:
- code: 200
- message: OK
+ code: 201
+ message: Created
version: 1
diff --git a/tests/test_playbooks/fixtures/repository-16.yml b/tests/test_playbooks/fixtures/repository-16.yml
index 1efd0ddf..42ecf89b 100644
--- a/tests/test_playbooks/fixtures/repository-16.yml
+++ b/tests/test_playbooks/fixtures/repository-16.yml
@@ -14,14 +14,12 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.0.3","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.0","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '62'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
@@ -35,13 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=100
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -52,6 +50,8 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -70,12 +70,11 @@ interactions:
uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\
- :\"Test_Organization\",\"created_at\":\"2020-11-18 07:52:13 UTC\",\"updated_at\"\
- :\"2020-11-18 07:52:13 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\
- :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2021-10-27
+ 10:11:04 UTC\",\"updated_at\":\"2021-10-27 10:11:08 UTC\",\"id\":3,\"name\":\"Test
+ Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -94,11 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=99
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -134,9 +131,9 @@ interactions:
response:
body:
string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"cp_id":"789384450132","name":"Test
- Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-11-18
- 07:52:49 UTC","last_sync_words":"less than a minute","organization_id":3,"organization":{"name":"Test
+ Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":3,"cp_id":"542618974491","name":"Test
+ Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2021-10-27
+ 10:15:48 UTC","last_sync_words":"less than a minute","organization_id":3,"organization":{"name":"Test
Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":1}]}
'
@@ -158,11 +155,9 @@ interactions:
Foreman_current_organization:
- 3; Test Organization
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=98
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -194,15 +189,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/katello/api/products/1/repositories?search=name%3D%22Test+Docker+Repository%22&per_page=4294967296
+ uri: https://foreman.example.org/katello/api/products/3/repositories?search=name%3D%22Test+Docker+Repository%22&per_page=4294967296
response:
body:
string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Docker Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"a1529c26-e911-4d23-9b5e-6eab4cdcc98d","relative_path":"test_organization-test_product-just_a_test_repo","container_repository_name":"test_organization-test_product-just_a_test_repo","full_path":"centos7-katello-3-15.yatsu.example.com:5000/test_organization-test_product-just_a_test_repo","library_instance_id":null,"id":3,"name":"Test
+ Docker Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"4d4be286-30e7-4d65-9f2d-014f13a3b442","relative_path":"test_organization-test_product-just_a_test_repo","container_repository_name":"test_organization-test_product-just_a_test_repo","full_path":"localhost/test_organization-test_product-just_a_test_repo","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/container/container/fcbd61b9-fcf2-4246-b029-ae7cbd44fcb3/versions/0/","remote_href":"/pulp/api/v3/remotes/container/container/5f329af6-5b87-46f1-99bf-816e5969c778/","publication_href":null,"id":7,"name":"Test
Docker Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
Organization View"},"content_view_version":{"id":2,"name":"Default Organization
- View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"docker","url":"https://docker.io","arch":"noarch","content_id":"1605685969422","major":null,"minor":null,"product":{"id":1,"cp_id":"789384450132","name":"Test
- Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]}
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"docker","url":"https://docker.io","arch":"noarch","os_versions":null,"content_id":"1635329748351","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]}
'
headers:
@@ -223,11 +218,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=97
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -243,7 +236,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1350'
+ - '1548'
status:
code: 200
message: OK
@@ -256,15 +249,19 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Content-Length:
- - '0'
User-Agent:
- apypie (https://github.com/Apipie/apypie)
- method: DELETE
- uri: https://foreman.example.org/katello/api/repositories/3
+ method: GET
+ uri: https://foreman.example.org/katello/api/repositories/7
response:
body:
- string: ' {}
+ string: ' {"ostree_branches":[],"relative_path":"test_organization-test_product-just_a_test_repo","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"created_at":"2021-10-27
+ 10:15:47 UTC","updated_at":"2021-10-27 10:15:48 UTC","backend_identifier":"4d4be286-30e7-4d65-9f2d-014f13a3b442","container_repository_name":"test_organization-test_product-just_a_test_repo","full_path":"localhost/test_organization-test_product-just_a_test_repo","version_href":"/pulp/api/v3/repositories/container/container/fcbd61b9-fcf2-4246-b029-ae7cbd44fcb3/versions/0/","remote_href":"/pulp/api/v3/remotes/container/container/5f329af6-5b87-46f1-99bf-816e5969c778/","publication_href":null,"id":7,"name":"Test
+ Docker Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
+ Organization View"},"content_view_version":{"id":2,"name":"Default Organization
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"docker","url":"https://docker.io","arch":"noarch","os_versions":null,"content_id":"1635329748351","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":"busybox","docker_tags_whitelist":["latest"],"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":null,"ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
'
headers:
@@ -272,8 +269,6 @@ interactions:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '5'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
@@ -287,13 +282,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=96
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -304,6 +299,8 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '2697'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/repository-17.yml b/tests/test_playbooks/fixtures/repository-17.yml
new file mode 100644
index 00000000..9707dd8b
--- /dev/null
+++ b/tests/test_playbooks/fixtures/repository-17.yml
@@ -0,0 +1,375 @@
+interactions:
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/status
+ response:
+ body:
+ string: '{"result":"ok","status":200,"version":"2.5.0","api_version":2}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.0
+ Keep-Alive:
+ - timeout=15, max=100
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '62'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2021-10-27
+ 10:11:04 UTC\",\"updated_at\":\"2021-10-27 10:11:08 UTC\",\"id\":3,\"name\":\"Test
+ Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.0
+ Keep-Alive:
+ - timeout=15, max=99
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '388'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/katello/api/organizations/3/products?search=name%3D%22Test+Product%22&per_page=4294967296
+ response:
+ body:
+ string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
+ Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":3,"cp_id":"542618974491","name":"Test
+ Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2021-10-27
+ 10:15:48 UTC","last_sync_words":"less than a minute","organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":1}]}
+
+ '
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - 3; Test Organization
+ Foreman_version:
+ - 2.5.0
+ Keep-Alive:
+ - timeout=15, max=98
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '649'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/katello/api/products/3/repositories?search=name%3D%22Test+Docker+Repository%22&per_page=4294967296
+ response:
+ body:
+ string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
+ Docker Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"4d4be286-30e7-4d65-9f2d-014f13a3b442","relative_path":"test_organization-test_product-just_a_test_repo","container_repository_name":"test_organization-test_product-just_a_test_repo","full_path":"localhost/test_organization-test_product-just_a_test_repo","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/container/container/fcbd61b9-fcf2-4246-b029-ae7cbd44fcb3/versions/0/","remote_href":"/pulp/api/v3/remotes/container/container/5f329af6-5b87-46f1-99bf-816e5969c778/","publication_href":null,"id":7,"name":"Test
+ Docker Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
+ Organization View"},"content_view_version":{"id":2,"name":"Default Organization
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"docker","url":"https://docker.io","arch":"noarch","os_versions":null,"content_id":"1635329748351","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]}
+
+ '
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.0
+ Keep-Alive:
+ - timeout=15, max=97
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '1548'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/katello/api/repositories/7
+ response:
+ body:
+ string: ' {"ostree_branches":[],"relative_path":"test_organization-test_product-just_a_test_repo","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"created_at":"2021-10-27
+ 10:15:47 UTC","updated_at":"2021-10-27 10:15:48 UTC","backend_identifier":"4d4be286-30e7-4d65-9f2d-014f13a3b442","container_repository_name":"test_organization-test_product-just_a_test_repo","full_path":"localhost/test_organization-test_product-just_a_test_repo","version_href":"/pulp/api/v3/repositories/container/container/fcbd61b9-fcf2-4246-b029-ae7cbd44fcb3/versions/0/","remote_href":"/pulp/api/v3/remotes/container/container/5f329af6-5b87-46f1-99bf-816e5969c778/","publication_href":null,"id":7,"name":"Test
+ Docker Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
+ Organization View"},"content_view_version":{"id":2,"name":"Default Organization
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"docker","url":"https://docker.io","arch":"noarch","os_versions":null,"content_id":"1635329748351","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":"busybox","docker_tags_whitelist":["latest"],"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":null,"ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
+
+ '
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.0
+ Keep-Alive:
+ - timeout=15, max=96
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '2697'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"upstream_username": "dockeruser", "upstream_password": "dockerpass"}'
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '70'
+ Content-Type:
+ - application/json
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: PUT
+ uri: https://foreman.example.org/katello/api/repositories/7
+ response:
+ body:
+ string: ' {"ostree_branches":[],"relative_path":"test_organization-test_product-just_a_test_repo","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"created_at":"2021-10-27
+ 10:15:47 UTC","updated_at":"2021-10-27 10:15:50 UTC","backend_identifier":"4d4be286-30e7-4d65-9f2d-014f13a3b442","container_repository_name":"test_organization-test_product-just_a_test_repo","full_path":"localhost/test_organization-test_product-just_a_test_repo","version_href":"/pulp/api/v3/repositories/container/container/fcbd61b9-fcf2-4246-b029-ae7cbd44fcb3/versions/0/","remote_href":"/pulp/api/v3/remotes/container/container/5f329af6-5b87-46f1-99bf-816e5969c778/","publication_href":null,"id":7,"name":"Test
+ Docker Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
+ Organization View"},"content_view_version":{"id":2,"name":"Default Organization
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"docker","url":"https://docker.io","arch":"noarch","os_versions":null,"content_id":"1635329748351","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":"busybox","docker_tags_whitelist":["latest"],"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":null,"ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":"dockeruser","ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":true,"upstream_auth_exists":true}
+
+ '
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.0
+ Keep-Alive:
+ - timeout=15, max=95
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '2703'
+ status:
+ code: 200
+ message: OK
+version: 1
diff --git a/tests/test_playbooks/fixtures/repository-18.yml b/tests/test_playbooks/fixtures/repository-18.yml
new file mode 100644
index 00000000..8ba26774
--- /dev/null
+++ b/tests/test_playbooks/fixtures/repository-18.yml
@@ -0,0 +1,303 @@
+interactions:
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/status
+ response:
+ body:
+ string: '{"result":"ok","status":200,"version":"2.5.0","api_version":2}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.0
+ Keep-Alive:
+ - timeout=15, max=100
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '62'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2021-10-27
+ 10:11:04 UTC\",\"updated_at\":\"2021-10-27 10:11:08 UTC\",\"id\":3,\"name\":\"Test
+ Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.0
+ Keep-Alive:
+ - timeout=15, max=99
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '388'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/katello/api/organizations/3/products?search=name%3D%22Test+Product%22&per_page=4294967296
+ response:
+ body:
+ string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
+ Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":3,"cp_id":"542618974491","name":"Test
+ Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2021-10-27
+ 10:15:48 UTC","last_sync_words":"less than a minute","organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":1}]}
+
+ '
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - 3; Test Organization
+ Foreman_version:
+ - 2.5.0
+ Keep-Alive:
+ - timeout=15, max=98
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '649'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/katello/api/products/3/repositories?search=name%3D%22Test+Docker+Repository%22&per_page=4294967296
+ response:
+ body:
+ string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
+ Docker Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"4d4be286-30e7-4d65-9f2d-014f13a3b442","relative_path":"test_organization-test_product-just_a_test_repo","container_repository_name":"test_organization-test_product-just_a_test_repo","full_path":"localhost/test_organization-test_product-just_a_test_repo","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/container/container/fcbd61b9-fcf2-4246-b029-ae7cbd44fcb3/versions/0/","remote_href":"/pulp/api/v3/remotes/container/container/5f329af6-5b87-46f1-99bf-816e5969c778/","publication_href":null,"id":7,"name":"Test
+ Docker Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
+ Organization View"},"content_view_version":{"id":2,"name":"Default Organization
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"docker","url":"https://docker.io","arch":"noarch","os_versions":null,"content_id":"1635329748351","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]}
+
+ '
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.0
+ Keep-Alive:
+ - timeout=15, max=97
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '1548'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '0'
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: DELETE
+ uri: https://foreman.example.org/katello/api/repositories/7
+ response:
+ body:
+ string: ' {}
+
+ '
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.0
+ Keep-Alive:
+ - timeout=15, max=96
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '5'
+ status:
+ code: 200
+ message: OK
+version: 1
diff --git a/tests/test_playbooks/fixtures/repository-2.yml b/tests/test_playbooks/fixtures/repository-2.yml
index 52390782..93eed965 100644
--- a/tests/test_playbooks/fixtures/repository-2.yml
+++ b/tests/test_playbooks/fixtures/repository-2.yml
@@ -14,14 +14,12 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.0.3","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.0","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '62'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
@@ -35,13 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=100
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -52,6 +50,8 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -70,12 +70,11 @@ interactions:
uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\
- :\"Test_Organization\",\"created_at\":\"2020-11-18 07:52:13 UTC\",\"updated_at\"\
- :\"2020-11-18 07:52:13 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\
- :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2021-10-27
+ 10:11:04 UTC\",\"updated_at\":\"2021-10-27 10:11:08 UTC\",\"id\":3,\"name\":\"Test
+ Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -94,11 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=99
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -134,9 +131,9 @@ interactions:
response:
body:
string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"cp_id":"789384450132","name":"Test
- Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-11-18
- 07:52:22 UTC","last_sync_words":"less than a minute","organization_id":3,"organization":{"name":"Test
+ Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":3,"cp_id":"542618974491","name":"Test
+ Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2021-10-27
+ 10:15:24 UTC","last_sync_words":"less than a minute","organization_id":3,"organization":{"name":"Test
Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":1}]}
'
@@ -158,11 +155,9 @@ interactions:
Foreman_current_organization:
- 3; Test Organization
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=98
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -194,15 +189,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/katello/api/products/1/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296
+ uri: https://foreman.example.org/katello/api/products/3/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296
response:
body:
string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"e524dcdf-43a2-4e94-a74c-fc6aa6d453da","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","container_repository_name":null,"full_path":"http://centos7-katello-3-15.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","library_instance_id":null,"id":1,"name":"Test
+ Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"9ec49e4d-5eff-44b0-aa41-1ad10767d380","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/29452eaa-c307-4248-ac50-4ca5358521bb/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/a6863d8a-bfc5-4a41-ae48-5f910eb27597/","publication_href":"/pulp/api/v3/publications/rpm/rpm/fee81003-f6b0-440b-b6d2-946656d4054c/","id":5,"name":"Test
Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
Organization View"},"content_view_version":{"id":2,"name":"Default Organization
- View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1605685944635","major":null,"minor":null,"product":{"id":1,"cp_id":"789384450132","name":"Test
- Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]}
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1635329476188","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]}
'
headers:
@@ -223,11 +218,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=97
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -243,7 +236,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1371'
+ - '1620'
status:
code: 200
message: OK
@@ -259,16 +252,16 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/katello/api/repositories/1
+ uri: https://foreman.example.org/katello/api/repositories/5
response:
body:
- string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"created_at":"2020-11-18
- 07:52:22 UTC","updated_at":"2020-11-18 07:52:25 UTC","backend_identifier":"e524dcdf-43a2-4e94-a74c-fc6aa6d453da","container_repository_name":null,"full_path":"http://centos7-katello-3-15.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","id":1,"name":"Test
+ string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"created_at":"2021-10-27
+ 10:11:15 UTC","updated_at":"2021-10-27 10:15:21 UTC","backend_identifier":"9ec49e4d-5eff-44b0-aa41-1ad10767d380","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","version_href":"/pulp/api/v3/repositories/rpm/rpm/29452eaa-c307-4248-ac50-4ca5358521bb/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/a6863d8a-bfc5-4a41-ae48-5f910eb27597/","publication_href":"/pulp/api/v3/publications/rpm/rpm/fee81003-f6b0-440b-b6d2-946656d4054c/","id":5,"name":"Test
Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
Organization View"},"content_view_version":{"id":2,"name":"Default Organization
- View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1605685944635","major":null,"minor":null,"product":{"id":1,"cp_id":"789384450132","name":"Test
- Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":false,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1635329476188","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":false,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
'
headers:
@@ -289,11 +282,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=96
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -309,7 +300,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '2432'
+ - '2773'
status:
code: 200
message: OK
@@ -329,16 +320,16 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: PUT
- uri: https://foreman.example.org/katello/api/repositories/1
+ uri: https://foreman.example.org/katello/api/repositories/5
response:
body:
- string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"created_at":"2020-11-18
- 07:52:22 UTC","updated_at":"2020-11-18 07:52:29 UTC","backend_identifier":"e524dcdf-43a2-4e94-a74c-fc6aa6d453da","container_repository_name":null,"full_path":"http://centos7-katello-3-15.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","id":1,"name":"Test
+ string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"created_at":"2021-10-27
+ 10:11:15 UTC","updated_at":"2021-10-27 10:15:25 UTC","backend_identifier":"9ec49e4d-5eff-44b0-aa41-1ad10767d380","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","version_href":"/pulp/api/v3/repositories/rpm/rpm/29452eaa-c307-4248-ac50-4ca5358521bb/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/a6863d8a-bfc5-4a41-ae48-5f910eb27597/","publication_href":"/pulp/api/v3/publications/rpm/rpm/fee81003-f6b0-440b-b6d2-946656d4054c/","id":5,"name":"Test
Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
Organization View"},"content_view_version":{"id":2,"name":"Default Organization
- View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1605685944635","major":null,"minor":null,"product":{"id":1,"cp_id":"789384450132","name":"Test
- Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1635329476188","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
'
headers:
@@ -359,11 +350,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=95
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -379,7 +368,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '2431'
+ - '2772'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/repository-3.yml b/tests/test_playbooks/fixtures/repository-3.yml
index 934ede86..c4f9fc4b 100644
--- a/tests/test_playbooks/fixtures/repository-3.yml
+++ b/tests/test_playbooks/fixtures/repository-3.yml
@@ -14,14 +14,12 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.0.3","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.0","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '62'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
@@ -35,13 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=100
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -52,6 +50,8 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -70,12 +70,11 @@ interactions:
uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\
- :\"Test_Organization\",\"created_at\":\"2020-11-18 07:52:13 UTC\",\"updated_at\"\
- :\"2020-11-18 07:52:13 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\
- :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2021-10-27
+ 10:11:04 UTC\",\"updated_at\":\"2021-10-27 10:11:08 UTC\",\"id\":3,\"name\":\"Test
+ Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -94,11 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=99
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -134,9 +131,9 @@ interactions:
response:
body:
string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"cp_id":"789384450132","name":"Test
- Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-11-18
- 07:52:22 UTC","last_sync_words":"less than a minute","organization_id":3,"organization":{"name":"Test
+ Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":3,"cp_id":"542618974491","name":"Test
+ Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2021-10-27
+ 10:15:24 UTC","last_sync_words":"less than a minute","organization_id":3,"organization":{"name":"Test
Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":1}]}
'
@@ -158,11 +155,9 @@ interactions:
Foreman_current_organization:
- 3; Test Organization
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=98
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -194,15 +189,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/katello/api/products/1/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296
+ uri: https://foreman.example.org/katello/api/products/3/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296
response:
body:
string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"e524dcdf-43a2-4e94-a74c-fc6aa6d453da","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","container_repository_name":null,"full_path":"http://centos7-katello-3-15.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","library_instance_id":null,"id":1,"name":"Test
+ Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"9ec49e4d-5eff-44b0-aa41-1ad10767d380","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/29452eaa-c307-4248-ac50-4ca5358521bb/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/a6863d8a-bfc5-4a41-ae48-5f910eb27597/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9c36e8cd-f836-4d8b-b462-b991acf6e3f8/","id":5,"name":"Test
Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
Organization View"},"content_view_version":{"id":2,"name":"Default Organization
- View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1605685944635","major":null,"minor":null,"product":{"id":1,"cp_id":"789384450132","name":"Test
- Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]}
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1635329476188","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]}
'
headers:
@@ -223,11 +218,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=97
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -243,7 +236,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1371'
+ - '1620'
status:
code: 200
message: OK
@@ -259,16 +252,16 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/katello/api/repositories/1
+ uri: https://foreman.example.org/katello/api/repositories/5
response:
body:
- string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"created_at":"2020-11-18
- 07:52:22 UTC","updated_at":"2020-11-18 07:52:29 UTC","backend_identifier":"e524dcdf-43a2-4e94-a74c-fc6aa6d453da","container_repository_name":null,"full_path":"http://centos7-katello-3-15.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","id":1,"name":"Test
+ string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"created_at":"2021-10-27
+ 10:11:15 UTC","updated_at":"2021-10-27 10:15:25 UTC","backend_identifier":"9ec49e4d-5eff-44b0-aa41-1ad10767d380","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","version_href":"/pulp/api/v3/repositories/rpm/rpm/29452eaa-c307-4248-ac50-4ca5358521bb/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/a6863d8a-bfc5-4a41-ae48-5f910eb27597/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9c36e8cd-f836-4d8b-b462-b991acf6e3f8/","id":5,"name":"Test
Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
Organization View"},"content_view_version":{"id":2,"name":"Default Organization
- View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1605685944635","major":null,"minor":null,"product":{"id":1,"cp_id":"789384450132","name":"Test
- Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1635329476188","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
'
headers:
@@ -289,11 +282,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=96
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -309,7 +300,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '2431'
+ - '2772'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/repository-4.yml b/tests/test_playbooks/fixtures/repository-4.yml
index 6763531e..bd83de8e 100644
--- a/tests/test_playbooks/fixtures/repository-4.yml
+++ b/tests/test_playbooks/fixtures/repository-4.yml
@@ -14,14 +14,12 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.0.3","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.0","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '62'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
@@ -35,13 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=100
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -52,6 +50,8 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -70,12 +70,11 @@ interactions:
uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\
- :\"Test_Organization\",\"created_at\":\"2020-11-18 07:52:13 UTC\",\"updated_at\"\
- :\"2020-11-18 07:52:13 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\
- :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2021-10-27
+ 10:11:04 UTC\",\"updated_at\":\"2021-10-27 10:11:08 UTC\",\"id\":3,\"name\":\"Test
+ Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -94,11 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=99
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -134,9 +131,9 @@ interactions:
response:
body:
string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"cp_id":"789384450132","name":"Test
- Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-11-18
- 07:52:22 UTC","last_sync_words":"less than a minute","organization_id":3,"organization":{"name":"Test
+ Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":3,"cp_id":"542618974491","name":"Test
+ Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2021-10-27
+ 10:15:27 UTC","last_sync_words":"less than a minute","organization_id":3,"organization":{"name":"Test
Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":1}]}
'
@@ -158,11 +155,9 @@ interactions:
Foreman_current_organization:
- 3; Test Organization
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=98
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -194,15 +189,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/katello/api/products/1/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296
+ uri: https://foreman.example.org/katello/api/products/3/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296
response:
body:
string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"e524dcdf-43a2-4e94-a74c-fc6aa6d453da","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","container_repository_name":null,"full_path":"http://centos7-katello-3-15.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","library_instance_id":null,"id":1,"name":"Test
+ Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"9ec49e4d-5eff-44b0-aa41-1ad10767d380","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/29452eaa-c307-4248-ac50-4ca5358521bb/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/a6863d8a-bfc5-4a41-ae48-5f910eb27597/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9c36e8cd-f836-4d8b-b462-b991acf6e3f8/","id":5,"name":"Test
Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
Organization View"},"content_view_version":{"id":2,"name":"Default Organization
- View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1605685944635","major":null,"minor":null,"product":{"id":1,"cp_id":"789384450132","name":"Test
- Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]}
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1635329476188","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]}
'
headers:
@@ -223,11 +218,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=97
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -243,7 +236,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1371'
+ - '1620'
status:
code: 200
message: OK
@@ -259,16 +252,16 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/katello/api/repositories/1
+ uri: https://foreman.example.org/katello/api/repositories/5
response:
body:
- string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"created_at":"2020-11-18
- 07:52:22 UTC","updated_at":"2020-11-18 07:52:29 UTC","backend_identifier":"e524dcdf-43a2-4e94-a74c-fc6aa6d453da","container_repository_name":null,"full_path":"http://centos7-katello-3-15.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","id":1,"name":"Test
+ string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"created_at":"2021-10-27
+ 10:11:15 UTC","updated_at":"2021-10-27 10:15:25 UTC","backend_identifier":"9ec49e4d-5eff-44b0-aa41-1ad10767d380","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","version_href":"/pulp/api/v3/repositories/rpm/rpm/29452eaa-c307-4248-ac50-4ca5358521bb/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/a6863d8a-bfc5-4a41-ae48-5f910eb27597/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9c36e8cd-f836-4d8b-b462-b991acf6e3f8/","id":5,"name":"Test
Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
Organization View"},"content_view_version":{"id":2,"name":"Default Organization
- View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1605685944635","major":null,"minor":null,"product":{"id":1,"cp_id":"789384450132","name":"Test
- Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1635329476188","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
'
headers:
@@ -289,11 +282,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=96
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -309,7 +300,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '2431'
+ - '2772'
status:
code: 200
message: OK
@@ -329,16 +320,16 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: PUT
- uri: https://foreman.example.org/katello/api/repositories/1
+ uri: https://foreman.example.org/katello/api/repositories/5
response:
body:
- string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"created_at":"2020-11-18
- 07:52:22 UTC","updated_at":"2020-11-18 07:52:33 UTC","backend_identifier":"e524dcdf-43a2-4e94-a74c-fc6aa6d453da","container_repository_name":null,"full_path":"http://centos7-katello-3-15.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","id":1,"name":"Test
+ string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"created_at":"2021-10-27
+ 10:11:15 UTC","updated_at":"2021-10-27 10:15:28 UTC","backend_identifier":"9ec49e4d-5eff-44b0-aa41-1ad10767d380","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","version_href":"/pulp/api/v3/repositories/rpm/rpm/29452eaa-c307-4248-ac50-4ca5358521bb/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/a6863d8a-bfc5-4a41-ae48-5f910eb27597/","publication_href":"/pulp/api/v3/publications/rpm/rpm/9c36e8cd-f836-4d8b-b462-b991acf6e3f8/","id":5,"name":"Test
Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
Organization View"},"content_view_version":{"id":2,"name":"Default Organization
- View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://localhost/pulp/repos/demo_repos/zoo","arch":"noarch","content_id":"1605685944635","major":null,"minor":null,"product":{"id":1,"cp_id":"789384450132","name":"Test
- Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://localhost/pulp/repos/demo_repos/zoo","arch":"noarch","os_versions":[],"content_id":"1635329476188","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
'
headers:
@@ -359,11 +350,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=95
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -379,7 +368,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '2418'
+ - '2759'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/repository-5.yml b/tests/test_playbooks/fixtures/repository-5.yml
index a2c87afc..db8d8cc5 100644
--- a/tests/test_playbooks/fixtures/repository-5.yml
+++ b/tests/test_playbooks/fixtures/repository-5.yml
@@ -14,14 +14,12 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.0.3","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.0","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '62'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
@@ -35,13 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=100
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -52,6 +50,8 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -70,12 +70,11 @@ interactions:
uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\
- :\"Test_Organization\",\"created_at\":\"2020-11-18 07:52:13 UTC\",\"updated_at\"\
- :\"2020-11-18 07:52:13 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\
- :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2021-10-27
+ 10:11:04 UTC\",\"updated_at\":\"2021-10-27 10:11:08 UTC\",\"id\":3,\"name\":\"Test
+ Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -94,11 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=99
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -134,9 +131,9 @@ interactions:
response:
body:
string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"cp_id":"789384450132","name":"Test
- Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-11-18
- 07:52:22 UTC","last_sync_words":"less than a minute","organization_id":3,"organization":{"name":"Test
+ Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":3,"cp_id":"542618974491","name":"Test
+ Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2021-10-27
+ 10:15:27 UTC","last_sync_words":"less than a minute","organization_id":3,"organization":{"name":"Test
Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":1}]}
'
@@ -158,11 +155,9 @@ interactions:
Foreman_current_organization:
- 3; Test Organization
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=98
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -194,15 +189,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/katello/api/products/1/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296
+ uri: https://foreman.example.org/katello/api/products/3/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296
response:
body:
string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"e524dcdf-43a2-4e94-a74c-fc6aa6d453da","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","container_repository_name":null,"full_path":"http://centos7-katello-3-15.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","library_instance_id":null,"id":1,"name":"Test
+ Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"9ec49e4d-5eff-44b0-aa41-1ad10767d380","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/29452eaa-c307-4248-ac50-4ca5358521bb/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/a6863d8a-bfc5-4a41-ae48-5f910eb27597/","publication_href":"/pulp/api/v3/publications/rpm/rpm/d9ebf6dd-5d4f-42f9-8de9-b57d0cd80a83/","id":5,"name":"Test
Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
Organization View"},"content_view_version":{"id":2,"name":"Default Organization
- View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://localhost/pulp/repos/demo_repos/zoo","arch":"noarch","content_id":"1605685944635","major":null,"minor":null,"product":{"id":1,"cp_id":"789384450132","name":"Test
- Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]}
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://localhost/pulp/repos/demo_repos/zoo","arch":"noarch","os_versions":[],"content_id":"1635329476188","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]}
'
headers:
@@ -223,11 +218,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=97
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -243,7 +236,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1358'
+ - '1607'
status:
code: 200
message: OK
@@ -256,15 +249,19 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
- Content-Length:
- - '0'
User-Agent:
- apypie (https://github.com/Apipie/apypie)
- method: DELETE
- uri: https://foreman.example.org/katello/api/repositories/1
+ method: GET
+ uri: https://foreman.example.org/katello/api/repositories/5
response:
body:
- string: ' {}
+ string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"created_at":"2021-10-27
+ 10:11:15 UTC","updated_at":"2021-10-27 10:15:28 UTC","backend_identifier":"9ec49e4d-5eff-44b0-aa41-1ad10767d380","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","version_href":"/pulp/api/v3/repositories/rpm/rpm/29452eaa-c307-4248-ac50-4ca5358521bb/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/a6863d8a-bfc5-4a41-ae48-5f910eb27597/","publication_href":"/pulp/api/v3/publications/rpm/rpm/d9ebf6dd-5d4f-42f9-8de9-b57d0cd80a83/","id":5,"name":"Test
+ Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
+ Organization View"},"content_view_version":{"id":2,"name":"Default Organization
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://localhost/pulp/repos/demo_repos/zoo","arch":"noarch","os_versions":[],"content_id":"1635329476188","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
'
headers:
@@ -272,8 +269,6 @@ interactions:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '5'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
@@ -287,13 +282,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=96
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -304,6 +299,76 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '2759'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"download_concurrency": 10}'
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '28'
+ Content-Type:
+ - application/json
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: PUT
+ uri: https://foreman.example.org/katello/api/repositories/5
+ response:
+ body:
+ string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"created_at":"2021-10-27
+ 10:11:15 UTC","updated_at":"2021-10-27 10:15:28 UTC","backend_identifier":"9ec49e4d-5eff-44b0-aa41-1ad10767d380","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","version_href":"/pulp/api/v3/repositories/rpm/rpm/29452eaa-c307-4248-ac50-4ca5358521bb/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/a6863d8a-bfc5-4a41-ae48-5f910eb27597/","publication_href":"/pulp/api/v3/publications/rpm/rpm/d9ebf6dd-5d4f-42f9-8de9-b57d0cd80a83/","id":5,"name":"Test
+ Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
+ Organization View"},"content_view_version":{"id":2,"name":"Default Organization
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://localhost/pulp/repos/demo_repos/zoo","arch":"noarch","os_versions":[],"content_id":"1635329476188","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
+
+ '
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.0
+ Keep-Alive:
+ - timeout=15, max=95
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '2759'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/repository-6.yml b/tests/test_playbooks/fixtures/repository-6.yml
index 9c8aa571..e747521a 100644
--- a/tests/test_playbooks/fixtures/repository-6.yml
+++ b/tests/test_playbooks/fixtures/repository-6.yml
@@ -14,14 +14,12 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.0.3","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.0","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '62'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
@@ -35,13 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=100
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -52,6 +50,8 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -70,12 +70,11 @@ interactions:
uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\
- :\"Test_Organization\",\"created_at\":\"2020-11-18 07:52:13 UTC\",\"updated_at\"\
- :\"2020-11-18 07:52:13 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\
- :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2021-10-27
+ 10:11:04 UTC\",\"updated_at\":\"2021-10-27 10:11:08 UTC\",\"id\":3,\"name\":\"Test
+ Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -94,11 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=99
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -134,9 +131,10 @@ interactions:
response:
body:
string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"cp_id":"789384450132","name":"Test
- Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":3,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":0}]}
+ Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":3,"cp_id":"542618974491","name":"Test
+ Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2021-10-27
+ 10:15:31 UTC","last_sync_words":"less than a minute","organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":1}]}
'
headers:
@@ -157,11 +155,9 @@ interactions:
Foreman_current_organization:
- 3; Test Organization
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=98
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -177,7 +173,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '612'
+ - '649'
status:
code: 200
message: OK
@@ -193,11 +189,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/katello/api/products/1/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296
+ uri: https://foreman.example.org/katello/api/products/3/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296
response:
body:
- string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Repository\"","sort":{"by":"name","order":"asc"},"results":[]}
+ string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
+ Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"9ec49e4d-5eff-44b0-aa41-1ad10767d380","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/29452eaa-c307-4248-ac50-4ca5358521bb/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/a6863d8a-bfc5-4a41-ae48-5f910eb27597/","publication_href":"/pulp/api/v3/publications/rpm/rpm/d9ebf6dd-5d4f-42f9-8de9-b57d0cd80a83/","id":5,"name":"Test
+ Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
+ Organization View"},"content_view_version":{"id":2,"name":"Default Organization
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://localhost/pulp/repos/demo_repos/zoo","arch":"noarch","os_versions":[],"content_id":"1635329476188","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]}
'
headers:
@@ -218,11 +218,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=97
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -238,7 +236,139 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '155'
+ - '1607'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/katello/api/repositories/5
+ response:
+ body:
+ string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"created_at":"2021-10-27
+ 10:11:15 UTC","updated_at":"2021-10-27 10:15:28 UTC","backend_identifier":"9ec49e4d-5eff-44b0-aa41-1ad10767d380","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","version_href":"/pulp/api/v3/repositories/rpm/rpm/29452eaa-c307-4248-ac50-4ca5358521bb/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/a6863d8a-bfc5-4a41-ae48-5f910eb27597/","publication_href":"/pulp/api/v3/publications/rpm/rpm/d9ebf6dd-5d4f-42f9-8de9-b57d0cd80a83/","id":5,"name":"Test
+ Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
+ Organization View"},"content_view_version":{"id":2,"name":"Default Organization
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://localhost/pulp/repos/demo_repos/zoo","arch":"noarch","os_versions":[],"content_id":"1635329476188","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
+
+ '
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.0
+ Keep-Alive:
+ - timeout=15, max=96
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '2759'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"download_concurrency": 10}'
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '28'
+ Content-Type:
+ - application/json
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: PUT
+ uri: https://foreman.example.org/katello/api/repositories/5
+ response:
+ body:
+ string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"created_at":"2021-10-27
+ 10:11:15 UTC","updated_at":"2021-10-27 10:15:28 UTC","backend_identifier":"9ec49e4d-5eff-44b0-aa41-1ad10767d380","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","version_href":"/pulp/api/v3/repositories/rpm/rpm/29452eaa-c307-4248-ac50-4ca5358521bb/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/a6863d8a-bfc5-4a41-ae48-5f910eb27597/","publication_href":"/pulp/api/v3/publications/rpm/rpm/d9ebf6dd-5d4f-42f9-8de9-b57d0cd80a83/","id":5,"name":"Test
+ Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
+ Organization View"},"content_view_version":{"id":2,"name":"Default Organization
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://localhost/pulp/repos/demo_repos/zoo","arch":"noarch","os_versions":[],"content_id":"1635329476188","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":null,"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":null,"name":null},"ssl_client_cert":{"id":null,"name":null},"ssl_client_key":{"id":null,"name":null},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
+
+ '
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.0
+ Keep-Alive:
+ - timeout=15, max=95
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '2759'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/repository-7.yml b/tests/test_playbooks/fixtures/repository-7.yml
index 4ff1c751..65f75ba5 100644
--- a/tests/test_playbooks/fixtures/repository-7.yml
+++ b/tests/test_playbooks/fixtures/repository-7.yml
@@ -14,14 +14,12 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.0.3","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.0","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '62'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
@@ -35,13 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=100
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -52,6 +50,8 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -70,12 +70,11 @@ interactions:
uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\
- :\"Test_Organization\",\"created_at\":\"2020-11-18 07:52:13 UTC\",\"updated_at\"\
- :\"2020-11-18 07:52:13 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\
- :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2021-10-27
+ 10:11:04 UTC\",\"updated_at\":\"2021-10-27 10:11:08 UTC\",\"id\":3,\"name\":\"Test
+ Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -94,11 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=99
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -134,9 +131,10 @@ interactions:
response:
body:
string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"cp_id":"789384450132","name":"Test
- Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":3,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":0}]}
+ Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":3,"cp_id":"542618974491","name":"Test
+ Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2021-10-27
+ 10:15:31 UTC","last_sync_words":"less than a minute","organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":1}]}
'
headers:
@@ -157,11 +155,9 @@ interactions:
Foreman_current_organization:
- 3; Test Organization
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=98
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -177,7 +173,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '612'
+ - '649'
status:
code: 200
message: OK
@@ -193,16 +189,15 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/katello/api/content_credentials?organization_id=3&search=name%3D%22Test+GPG+key%22&per_page=4294967296
+ uri: https://foreman.example.org/katello/api/products/3/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296
response:
body:
- string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- GPG key\"","sort":{"by":"name","order":"asc"},"results":[{"name":"Test GPG
- key","content_type":"gpg_key","content":"-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion:
- GnuPG v1.4.5 (GNU/Linux)\n\nmQENBFVMupABCAC9AiPd5+NBtEed8BG4hf4dt94dqJ4B+Lnnv7sVdoqO3tNHA8GW\nQayAPQRN+kAkCzZ+BoqMi7rKTwMyRvUGBpkFhuVCRbQdDIJuvP1S8liP42sPMhVY\n+mb7frXQE7EUZ0MH7PfxrvgcxiFi/awmBjQZkrYYbiYZPc7NJFshoJeLe5f6ZXqX\nm9GoX5MVxwC4iRNrHxQKTywvxTURt4wTx4+ZipUmrAjUcknW+g/try61dHJhLCWi\nqH8QYZLNnSgmbK9y8BoL0wxDTeos8sGbvVSd1sVoTiktyGOROjEAUlzC7PhUMjLF\nX9ECWS2q7NoysmheJwVeZxzMxXfvg83HoLyjABEBAAG0JkthdGVsbG8gPGZvcmVt\nYW4tZGV2QGdvb2dsZWdyb3Vwcy5jb20+iQE8BBMBAgAmBQJVTLqQAhsDBQkFo5qA\nBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQCC1M07xi0T/8+Af/b4KfwT51wFWm\n3bN/LVEYKrfSE32PnlxAVX3jY+eSRnf3Cah+QH5eAGtDIn+hb2JXr5K+CEBnmupS\nRp57oZJQnqjxK4BRY2WstABxjSXG1gx8iC/vLq6dUV3lK5LSe9hfmXMKr3vos1x1\nb2ehiNstDj264aByokU9R9J3FDtwiEc/xaA7x66SSkWILYtRBYzUlu+lUmox3wJw\n0bCCWPF9PV0IpmzSKwqHLqaV985HtVovH34n//vQiMVnVmXYiiN5WQUrJs5VBmwy\nzXXOdEGqVA/0n4y7nG+hpFWgNb2G0/eSrIg4XWseMYXIc4tJF8zX0dU263A8fP/Q\neyRp696I2g==\n=5p62\n-----END
- PGP PUBLIC KEY BLOCK-----","id":1,"organization_id":3,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"created_at":"2020-11-18
- 07:52:17 UTC","updated_at":"2020-11-18 07:52:17 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[],"ssl_ca_root_repos":[],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]}
+ string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
+ Repository\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"9ec49e4d-5eff-44b0-aa41-1ad10767d380","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo/","library_instance_id":null,"version_href":"/pulp/api/v3/repositories/rpm/rpm/29452eaa-c307-4248-ac50-4ca5358521bb/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/a6863d8a-bfc5-4a41-ae48-5f910eb27597/","publication_href":"/pulp/api/v3/publications/rpm/rpm/d9ebf6dd-5d4f-42f9-8de9-b57d0cd80a83/","id":5,"name":"Test
+ Repository","label":"just_a_test_repo","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
+ Organization View"},"content_view_version":{"id":2,"name":"Default Organization
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://localhost/pulp/repos/demo_repos/zoo","arch":"noarch","os_versions":[],"content_id":"1635329476188","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]}
'
headers:
@@ -223,11 +218,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=97
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -243,7 +236,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1680'
+ - '1607'
status:
code: 200
message: OK
@@ -256,19 +249,15 @@ interactions:
- gzip, deflate
Connection:
- keep-alive
+ Content-Length:
+ - '0'
User-Agent:
- apypie (https://github.com/Apipie/apypie)
- method: GET
- uri: https://foreman.example.org/katello/api/content_credentials?organization_id=3&search=name%3D%22Test+SSL+Cert%22&per_page=4294967296
+ method: DELETE
+ uri: https://foreman.example.org/katello/api/repositories/5
response:
body:
- string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- SSL Cert\"","sort":{"by":"name","order":"asc"},"results":[{"name":"Test SSL
- Cert","content_type":"cert","content":"-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion:
- GnuPG v1.4.5 (GNU/Linux)\n\nmQENBFVMupABCAC9AiPd5+NBtEed8BG4hf4dt94dqJ4B+Lnnv7sVdoqO3tNHA8GW\nQayAPQRN+kAkCzZ+BoqMi7rKTwMyRvUGBpkFhuVCRbQdDIJuvP1S8liP42sPMhVY\n+mb7frXQE7EUZ0MH7PfxrvgcxiFi/awmBjQZkrYYbiYZPc7NJFshoJeLe5f6ZXqX\nm9GoX5MVxwC4iRNrHxQKTywvxTURt4wTx4+ZipUmrAjUcknW+g/try61dHJhLCWi\nqH8QYZLNnSgmbK9y8BoL0wxDTeos8sGbvVSd1sVoTiktyGOROjEAUlzC7PhUMjLF\nX9ECWS2q7NoysmheJwVeZxzMxXfvg83HoLyjABEBAAG0JkthdGVsbG8gPGZvcmVt\nYW4tZGV2QGdvb2dsZWdyb3Vwcy5jb20+iQE8BBMBAgAmBQJVTLqQAhsDBQkFo5qA\nBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQCC1M07xi0T/8+Af/b4KfwT51wFWm\n3bN/LVEYKrfSE32PnlxAVX3jY+eSRnf3Cah+QH5eAGtDIn+hb2JXr5K+CEBnmupS\nRp57oZJQnqjxK4BRY2WstABxjSXG1gx8iC/vLq6dUV3lK5LSe9hfmXMKr3vos1x1\nb2ehiNstDj264aByokU9R9J3FDtwiEc/xaA7x66SSkWILYtRBYzUlu+lUmox3wJw\n0bCCWPF9PV0IpmzSKwqHLqaV985HtVovH34n//vQiMVnVmXYiiN5WQUrJs5VBmwy\nzXXOdEGqVA/0n4y7nG+hpFWgNb2G0/eSrIg4XWseMYXIc4tJF8zX0dU263A8fP/Q\neyRp696I2g==\n=5p62\n-----END
- PGP PUBLIC KEY BLOCK-----","id":2,"organization_id":3,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"created_at":"2020-11-18
- 07:52:18 UTC","updated_at":"2020-11-18 07:52:18 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[],"ssl_ca_root_repos":[],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]}
+ string: ' {}
'
headers:
@@ -289,143 +278,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=96
- Status:
- - 200 OK
- Strict-Transport-Security:
- - max-age=631139040; includeSubdomains
- Vary:
- - Accept-Encoding
- X-Content-Type-Options:
- - nosniff
- X-Download-Options:
- - noopen
- X-Frame-Options:
- - sameorigin
- X-Permitted-Cross-Domain-Policies:
- - none
- X-XSS-Protection:
- - 1; mode=block
- content-length:
- - '1679'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json;version=2
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - apypie (https://github.com/Apipie/apypie)
- method: GET
- uri: https://foreman.example.org/katello/api/content_credentials?organization_id=3&search=name%3D%22Test+SSL+Cert%22&per_page=4294967296
- response:
- body:
- string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- SSL Cert\"","sort":{"by":"name","order":"asc"},"results":[{"name":"Test SSL
- Cert","content_type":"cert","content":"-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion:
- GnuPG v1.4.5 (GNU/Linux)\n\nmQENBFVMupABCAC9AiPd5+NBtEed8BG4hf4dt94dqJ4B+Lnnv7sVdoqO3tNHA8GW\nQayAPQRN+kAkCzZ+BoqMi7rKTwMyRvUGBpkFhuVCRbQdDIJuvP1S8liP42sPMhVY\n+mb7frXQE7EUZ0MH7PfxrvgcxiFi/awmBjQZkrYYbiYZPc7NJFshoJeLe5f6ZXqX\nm9GoX5MVxwC4iRNrHxQKTywvxTURt4wTx4+ZipUmrAjUcknW+g/try61dHJhLCWi\nqH8QYZLNnSgmbK9y8BoL0wxDTeos8sGbvVSd1sVoTiktyGOROjEAUlzC7PhUMjLF\nX9ECWS2q7NoysmheJwVeZxzMxXfvg83HoLyjABEBAAG0JkthdGVsbG8gPGZvcmVt\nYW4tZGV2QGdvb2dsZWdyb3Vwcy5jb20+iQE8BBMBAgAmBQJVTLqQAhsDBQkFo5qA\nBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQCC1M07xi0T/8+Af/b4KfwT51wFWm\n3bN/LVEYKrfSE32PnlxAVX3jY+eSRnf3Cah+QH5eAGtDIn+hb2JXr5K+CEBnmupS\nRp57oZJQnqjxK4BRY2WstABxjSXG1gx8iC/vLq6dUV3lK5LSe9hfmXMKr3vos1x1\nb2ehiNstDj264aByokU9R9J3FDtwiEc/xaA7x66SSkWILYtRBYzUlu+lUmox3wJw\n0bCCWPF9PV0IpmzSKwqHLqaV985HtVovH34n//vQiMVnVmXYiiN5WQUrJs5VBmwy\nzXXOdEGqVA/0n4y7nG+hpFWgNb2G0/eSrIg4XWseMYXIc4tJF8zX0dU263A8fP/Q\neyRp696I2g==\n=5p62\n-----END
- PGP PUBLIC KEY BLOCK-----","id":2,"organization_id":3,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"created_at":"2020-11-18
- 07:52:18 UTC","updated_at":"2020-11-18 07:52:18 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[],"ssl_ca_root_repos":[],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]}
-
- '
- headers:
- Cache-Control:
- - max-age=0, private, must-revalidate
- Connection:
- - Keep-Alive
- Content-Security-Policy:
- - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
- style-src ''unsafe-inline'' ''self'''
- Content-Type:
- - application/json; charset=utf-8
- Foreman_api_version:
- - '2'
- Foreman_current_location:
- - ; ANY
- Foreman_current_organization:
- - ; ANY
- Foreman_version:
- - 2.0.3
- Keep-Alive:
- - timeout=15, max=95
- Status:
- - 200 OK
- Strict-Transport-Security:
- - max-age=631139040; includeSubdomains
- Vary:
- - Accept-Encoding
- X-Content-Type-Options:
- - nosniff
- X-Download-Options:
- - noopen
- X-Frame-Options:
- - sameorigin
- X-Permitted-Cross-Domain-Policies:
- - none
- X-XSS-Protection:
- - 1; mode=block
- content-length:
- - '1679'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json;version=2
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - apypie (https://github.com/Apipie/apypie)
- method: GET
- uri: https://foreman.example.org/katello/api/content_credentials?organization_id=3&search=name%3D%22Test+SSL+Cert%22&per_page=4294967296
- response:
- body:
- string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- SSL Cert\"","sort":{"by":"name","order":"asc"},"results":[{"name":"Test SSL
- Cert","content_type":"cert","content":"-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion:
- GnuPG v1.4.5 (GNU/Linux)\n\nmQENBFVMupABCAC9AiPd5+NBtEed8BG4hf4dt94dqJ4B+Lnnv7sVdoqO3tNHA8GW\nQayAPQRN+kAkCzZ+BoqMi7rKTwMyRvUGBpkFhuVCRbQdDIJuvP1S8liP42sPMhVY\n+mb7frXQE7EUZ0MH7PfxrvgcxiFi/awmBjQZkrYYbiYZPc7NJFshoJeLe5f6ZXqX\nm9GoX5MVxwC4iRNrHxQKTywvxTURt4wTx4+ZipUmrAjUcknW+g/try61dHJhLCWi\nqH8QYZLNnSgmbK9y8BoL0wxDTeos8sGbvVSd1sVoTiktyGOROjEAUlzC7PhUMjLF\nX9ECWS2q7NoysmheJwVeZxzMxXfvg83HoLyjABEBAAG0JkthdGVsbG8gPGZvcmVt\nYW4tZGV2QGdvb2dsZWdyb3Vwcy5jb20+iQE8BBMBAgAmBQJVTLqQAhsDBQkFo5qA\nBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQCC1M07xi0T/8+Af/b4KfwT51wFWm\n3bN/LVEYKrfSE32PnlxAVX3jY+eSRnf3Cah+QH5eAGtDIn+hb2JXr5K+CEBnmupS\nRp57oZJQnqjxK4BRY2WstABxjSXG1gx8iC/vLq6dUV3lK5LSe9hfmXMKr3vos1x1\nb2ehiNstDj264aByokU9R9J3FDtwiEc/xaA7x66SSkWILYtRBYzUlu+lUmox3wJw\n0bCCWPF9PV0IpmzSKwqHLqaV985HtVovH34n//vQiMVnVmXYiiN5WQUrJs5VBmwy\nzXXOdEGqVA/0n4y7nG+hpFWgNb2G0/eSrIg4XWseMYXIc4tJF8zX0dU263A8fP/Q\neyRp696I2g==\n=5p62\n-----END
- PGP PUBLIC KEY BLOCK-----","id":2,"organization_id":3,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"created_at":"2020-11-18
- 07:52:18 UTC","updated_at":"2020-11-18 07:52:18 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[],"ssl_ca_root_repos":[],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]}
-
- '
- headers:
- Cache-Control:
- - max-age=0, private, must-revalidate
- Connection:
- - Keep-Alive
- Content-Security-Policy:
- - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
- style-src ''unsafe-inline'' ''self'''
- Content-Type:
- - application/json; charset=utf-8
- Foreman_api_version:
- - '2'
- Foreman_current_location:
- - ; ANY
- Foreman_current_organization:
- - ; ANY
- Foreman_version:
- - 2.0.3
- Keep-Alive:
- - timeout=15, max=94
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -441,143 +296,8 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1679'
+ - '5'
status:
code: 200
message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json;version=2
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - apypie (https://github.com/Apipie/apypie)
- method: GET
- uri: https://foreman.example.org/katello/api/products/1/repositories?search=name%3D%22Test+Repository+2%22&per_page=4294967296
- response:
- body:
- string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Repository 2\"","sort":{"by":"name","order":"asc"},"results":[]}
-
- '
- headers:
- Cache-Control:
- - max-age=0, private, must-revalidate
- Connection:
- - Keep-Alive
- Content-Security-Policy:
- - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
- style-src ''unsafe-inline'' ''self'''
- Content-Type:
- - application/json; charset=utf-8
- Foreman_api_version:
- - '2'
- Foreman_current_location:
- - ; ANY
- Foreman_current_organization:
- - ; ANY
- Foreman_version:
- - 2.0.3
- Keep-Alive:
- - timeout=15, max=93
- Status:
- - 200 OK
- Strict-Transport-Security:
- - max-age=631139040; includeSubdomains
- Vary:
- - Accept-Encoding
- X-Content-Type-Options:
- - nosniff
- X-Download-Options:
- - noopen
- X-Frame-Options:
- - sameorigin
- X-Permitted-Cross-Domain-Policies:
- - none
- X-XSS-Protection:
- - 1; mode=block
- content-length:
- - '157'
- status:
- code: 200
- message: OK
-- request:
- body: '{"name": "Test Repository 2", "label": "just_a_test_repo2", "product_id":
- 1, "content_type": "yum", "url": "https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/",
- "gpg_key_id": 1, "ssl_ca_cert_id": 2, "ssl_client_cert_id": 2, "ssl_client_key_id":
- 2, "mirror_on_sync": false}'
- headers:
- Accept:
- - application/json;version=2
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '278'
- Content-Type:
- - application/json
- User-Agent:
- - apypie (https://github.com/Apipie/apypie)
- method: POST
- uri: https://foreman.example.org/katello/api/repositories
- response:
- body:
- string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"created_at":"2020-11-18
- 07:52:38 UTC","updated_at":"2020-11-18 07:52:39 UTC","backend_identifier":"98f5236b-1615-4a03-8d5a-2397b0a9984e","container_repository_name":null,"full_path":"http://centos7-katello-3-15.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","id":2,"name":"Test
- Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
- Organization View"},"content_view_version":{"id":2,"name":"Default Organization
- View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1605685959315","major":null,"minor":null,"product":{"id":1,"cp_id":"789384450132","name":"Test
- Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":false,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":1,"ssl_ca_cert_id":2,"ssl_client_cert_id":2,"ssl_client_key_id":2,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":{"id":1,"name":"Test
- GPG key"},"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":2,"name":"Test
- SSL Cert"},"ssl_client_cert":{"id":2,"name":"Test SSL Cert"},"ssl_client_key":{"id":2,"name":"Test
- SSL Cert"},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false,"content_view_environments":[]}
-
- '
- headers:
- Cache-Control:
- - max-age=0, private, must-revalidate
- Connection:
- - Keep-Alive
- Content-Security-Policy:
- - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
- style-src ''unsafe-inline'' ''self'''
- Content-Type:
- - application/json; charset=utf-8
- Foreman_api_version:
- - '2'
- Foreman_current_location:
- - ; ANY
- Foreman_current_organization:
- - ; ANY
- Foreman_version:
- - 2.0.3
- Keep-Alive:
- - timeout=15, max=92
- Status:
- - 201 Created
- Strict-Transport-Security:
- - max-age=631139040; includeSubdomains
- Transfer-Encoding:
- - chunked
- X-Content-Type-Options:
- - nosniff
- X-Download-Options:
- - noopen
- X-Frame-Options:
- - sameorigin
- X-Permitted-Cross-Domain-Policies:
- - none
- X-XSS-Protection:
- - 1; mode=block
- status:
- code: 201
- message: Created
version: 1
diff --git a/tests/test_playbooks/fixtures/repository-8.yml b/tests/test_playbooks/fixtures/repository-8.yml
index 3b4bfa9b..74b4052a 100644
--- a/tests/test_playbooks/fixtures/repository-8.yml
+++ b/tests/test_playbooks/fixtures/repository-8.yml
@@ -14,14 +14,12 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.0.3","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.0","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '62'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
@@ -35,13 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=100
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -52,6 +50,8 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -70,12 +70,11 @@ interactions:
uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\
- :\"Test_Organization\",\"created_at\":\"2020-11-18 07:52:13 UTC\",\"updated_at\"\
- :\"2020-11-18 07:52:13 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\
- :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2021-10-27
+ 10:11:04 UTC\",\"updated_at\":\"2021-10-27 10:11:08 UTC\",\"id\":3,\"name\":\"Test
+ Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -94,11 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=99
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -134,10 +131,9 @@ interactions:
response:
body:
string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"cp_id":"789384450132","name":"Test
- Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-11-18
- 07:52:38 UTC","last_sync_words":"less than a minute","organization_id":3,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":1}]}
+ Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":3,"cp_id":"542618974491","name":"Test
+ Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":0}]}
'
headers:
@@ -158,11 +154,9 @@ interactions:
Foreman_current_organization:
- 3; Test Organization
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=98
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -178,7 +172,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '649'
+ - '612'
status:
code: 200
message: OK
@@ -194,15 +188,11 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/katello/api/products/1/repositories?search=name%3D%22Test+Repository+2%22&per_page=4294967296
+ uri: https://foreman.example.org/katello/api/products/3/repositories?search=name%3D%22Test+Repository%22&per_page=4294967296
response:
body:
- string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Repository 2\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"98f5236b-1615-4a03-8d5a-2397b0a9984e","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","container_repository_name":null,"full_path":"http://centos7-katello-3-15.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","library_instance_id":null,"id":2,"name":"Test
- Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
- Organization View"},"content_view_version":{"id":2,"name":"Default Organization
- View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1605685959315","major":null,"minor":null,"product":{"id":1,"cp_id":"789384450132","name":"Test
- Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]}
+ string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
+ Repository\"","sort":{"by":"name","order":"asc"},"results":[]}
'
headers:
@@ -223,80 +213,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=97
- Status:
- - 200 OK
- Strict-Transport-Security:
- - max-age=631139040; includeSubdomains
- Vary:
- - Accept-Encoding
- X-Content-Type-Options:
- - nosniff
- X-Download-Options:
- - noopen
- X-Frame-Options:
- - sameorigin
- X-Permitted-Cross-Domain-Policies:
- - none
- X-XSS-Protection:
- - 1; mode=block
- content-length:
- - '1379'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json;version=2
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - apypie (https://github.com/Apipie/apypie)
- method: GET
- uri: https://foreman.example.org/katello/api/repositories/2
- response:
- body:
- string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"created_at":"2020-11-18
- 07:52:38 UTC","updated_at":"2020-11-18 07:52:39 UTC","backend_identifier":"98f5236b-1615-4a03-8d5a-2397b0a9984e","container_repository_name":null,"full_path":"http://centos7-katello-3-15.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","id":2,"name":"Test
- Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
- Organization View"},"content_view_version":{"id":2,"name":"Default Organization
- View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1605685959315","major":null,"minor":null,"product":{"id":1,"cp_id":"789384450132","name":"Test
- Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":false,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":1,"ssl_ca_cert_id":2,"ssl_client_cert_id":2,"ssl_client_key_id":2,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":{"id":1,"name":"Test
- GPG key"},"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":2,"name":"Test
- SSL Cert"},"ssl_client_cert":{"id":2,"name":"Test SSL Cert"},"ssl_client_key":{"id":2,"name":"Test
- SSL Cert"},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
-
- '
- headers:
- Cache-Control:
- - max-age=0, private, must-revalidate
- Connection:
- - Keep-Alive
- Content-Security-Policy:
- - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
- img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
- style-src ''unsafe-inline'' ''self'''
- Content-Type:
- - application/json; charset=utf-8
- Foreman_api_version:
- - '2'
- Foreman_current_location:
- - ; ANY
- Foreman_current_organization:
- - ; ANY
- Foreman_version:
- - 2.0.3
- Keep-Alive:
- - timeout=15, max=96
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -312,7 +231,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '2476'
+ - '155'
status:
code: 200
message: OK
diff --git a/tests/test_playbooks/fixtures/repository-9.yml b/tests/test_playbooks/fixtures/repository-9.yml
index 9db151a6..d574aeab 100644
--- a/tests/test_playbooks/fixtures/repository-9.yml
+++ b/tests/test_playbooks/fixtures/repository-9.yml
@@ -14,14 +14,12 @@ interactions:
uri: https://foreman.example.org/api/status
response:
body:
- string: '{"result":"ok","status":200,"version":"2.0.3","api_version":2}'
+ string: '{"result":"ok","status":200,"version":"2.5.0","api_version":2}'
headers:
Cache-Control:
- max-age=0, private, must-revalidate
Connection:
- Keep-Alive
- Content-Length:
- - '62'
Content-Security-Policy:
- 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
@@ -35,13 +33,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=100
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -52,6 +50,8 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
+ content-length:
+ - '62'
status:
code: 200
message: OK
@@ -70,12 +70,11 @@ interactions:
uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
response:
body:
- string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\"\
- : 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\"\
- : {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\"\
- :\"Test_Organization\",\"created_at\":\"2020-11-18 07:52:13 UTC\",\"updated_at\"\
- :\"2020-11-18 07:52:13 UTC\",\"id\":3,\"name\":\"Test Organization\",\"title\"\
- :\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2021-10-27
+ 10:11:04 UTC\",\"updated_at\":\"2021-10-27 10:11:08 UTC\",\"id\":3,\"name\":\"Test
+ Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
headers:
Cache-Control:
- max-age=0, private, must-revalidate
@@ -94,11 +93,9 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=99
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -134,10 +131,9 @@ interactions:
response:
body:
string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":1,"cp_id":"789384450132","name":"Test
- Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":"2020-11-18
- 07:52:38 UTC","last_sync_words":"less than a minute","organization_id":3,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":1}]}
+ Product\"","sort":{"by":"name","order":"asc"},"results":[{"id":3,"cp_id":"542618974491","name":"Test
+ Product","label":"Test_Product","description":"A happy little test product","provider_id":3,"sync_plan_id":null,"sync_summary":{},"gpg_key_id":null,"ssl_ca_cert_id":null,"ssl_client_cert_id":null,"ssl_client_key_id":null,"sync_state":null,"last_sync":null,"last_sync_words":null,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"sync_plan":null,"repository_count":0}]}
'
headers:
@@ -158,11 +154,9 @@ interactions:
Foreman_current_organization:
- 3; Test Organization
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=98
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -178,7 +172,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '649'
+ - '612'
status:
code: 200
message: OK
@@ -194,15 +188,16 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/katello/api/products/1/repositories?search=name%3D%22Test+Repository+2%22&per_page=4294967296
+ uri: https://foreman.example.org/katello/api/content_credentials?organization_id=3&search=name%3D%22Test+GPG+key%22&per_page=4294967296
response:
body:
- string: '{"total":1,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
- Repository 2\"","sort":{"by":"name","order":"asc"},"results":[{"backend_identifier":"98f5236b-1615-4a03-8d5a-2397b0a9984e","relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","container_repository_name":null,"full_path":"http://centos7-katello-3-15.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","library_instance_id":null,"id":2,"name":"Test
- Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
- Organization View"},"content_view_version":{"id":2,"name":"Default Organization
- View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1605685959315","major":null,"minor":null,"product":{"id":1,"cp_id":"789384450132","name":"Test
- Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null}]}
+ string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
+ GPG key\"","sort":{"by":"name","order":"asc"},"results":[{"name":"Test GPG
+ key","content_type":"gpg_key","content":"-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion:
+ GnuPG v1.4.5 (GNU/Linux)\n\nmQENBFVMupABCAC9AiPd5+NBtEed8BG4hf4dt94dqJ4B+Lnnv7sVdoqO3tNHA8GW\nQayAPQRN+kAkCzZ+BoqMi7rKTwMyRvUGBpkFhuVCRbQdDIJuvP1S8liP42sPMhVY\n+mb7frXQE7EUZ0MH7PfxrvgcxiFi/awmBjQZkrYYbiYZPc7NJFshoJeLe5f6ZXqX\nm9GoX5MVxwC4iRNrHxQKTywvxTURt4wTx4+ZipUmrAjUcknW+g/try61dHJhLCWi\nqH8QYZLNnSgmbK9y8BoL0wxDTeos8sGbvVSd1sVoTiktyGOROjEAUlzC7PhUMjLF\nX9ECWS2q7NoysmheJwVeZxzMxXfvg83HoLyjABEBAAG0JkthdGVsbG8gPGZvcmVt\nYW4tZGV2QGdvb2dsZWdyb3Vwcy5jb20+iQE8BBMBAgAmBQJVTLqQAhsDBQkFo5qA\nBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQCC1M07xi0T/8+Af/b4KfwT51wFWm\n3bN/LVEYKrfSE32PnlxAVX3jY+eSRnf3Cah+QH5eAGtDIn+hb2JXr5K+CEBnmupS\nRp57oZJQnqjxK4BRY2WstABxjSXG1gx8iC/vLq6dUV3lK5LSe9hfmXMKr3vos1x1\nb2ehiNstDj264aByokU9R9J3FDtwiEc/xaA7x66SSkWILYtRBYzUlu+lUmox3wJw\n0bCCWPF9PV0IpmzSKwqHLqaV985HtVovH34n//vQiMVnVmXYiiN5WQUrJs5VBmwy\nzXXOdEGqVA/0n4y7nG+hpFWgNb2G0/eSrIg4XWseMYXIc4tJF8zX0dU263A8fP/Q\neyRp696I2g==\n=5p62\n-----END
+ PGP PUBLIC KEY BLOCK-----","id":1,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"created_at":"2021-10-27
+ 10:11:09 UTC","updated_at":"2021-10-27 10:11:09 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[],"ssl_ca_root_repos":[],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]}
'
headers:
@@ -221,13 +216,11 @@ interactions:
Foreman_current_location:
- ; ANY
Foreman_current_organization:
- - ; ANY
+ - 3; Test Organization
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=97
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -243,7 +236,7 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '1379'
+ - '1680'
status:
code: 200
message: OK
@@ -259,19 +252,16 @@ interactions:
User-Agent:
- apypie (https://github.com/Apipie/apypie)
method: GET
- uri: https://foreman.example.org/katello/api/repositories/2
+ uri: https://foreman.example.org/katello/api/content_credentials?organization_id=3&search=name%3D%22Test+SSL+Cert%22&per_page=4294967296
response:
body:
- string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"created_at":"2020-11-18
- 07:52:38 UTC","updated_at":"2020-11-18 07:52:39 UTC","backend_identifier":"98f5236b-1615-4a03-8d5a-2397b0a9984e","container_repository_name":null,"full_path":"http://centos7-katello-3-15.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","id":2,"name":"Test
- Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
- Organization View"},"content_view_version":{"id":2,"name":"Default Organization
- View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1605685959315","major":null,"minor":null,"product":{"id":1,"cp_id":"789384450132","name":"Test
- Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":false,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":1,"ssl_ca_cert_id":2,"ssl_client_cert_id":2,"ssl_client_key_id":2,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":{"id":1,"name":"Test
- GPG key"},"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":2,"name":"Test
- SSL Cert"},"ssl_client_cert":{"id":2,"name":"Test SSL Cert"},"ssl_client_key":{"id":2,"name":"Test
- SSL Cert"},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
+ string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
+ SSL Cert\"","sort":{"by":"name","order":"asc"},"results":[{"name":"Test SSL
+ Cert","content_type":"cert","content":"-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion:
+ GnuPG v1.4.5 (GNU/Linux)\n\nmQENBFVMupABCAC9AiPd5+NBtEed8BG4hf4dt94dqJ4B+Lnnv7sVdoqO3tNHA8GW\nQayAPQRN+kAkCzZ+BoqMi7rKTwMyRvUGBpkFhuVCRbQdDIJuvP1S8liP42sPMhVY\n+mb7frXQE7EUZ0MH7PfxrvgcxiFi/awmBjQZkrYYbiYZPc7NJFshoJeLe5f6ZXqX\nm9GoX5MVxwC4iRNrHxQKTywvxTURt4wTx4+ZipUmrAjUcknW+g/try61dHJhLCWi\nqH8QYZLNnSgmbK9y8BoL0wxDTeos8sGbvVSd1sVoTiktyGOROjEAUlzC7PhUMjLF\nX9ECWS2q7NoysmheJwVeZxzMxXfvg83HoLyjABEBAAG0JkthdGVsbG8gPGZvcmVt\nYW4tZGV2QGdvb2dsZWdyb3Vwcy5jb20+iQE8BBMBAgAmBQJVTLqQAhsDBQkFo5qA\nBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQCC1M07xi0T/8+Af/b4KfwT51wFWm\n3bN/LVEYKrfSE32PnlxAVX3jY+eSRnf3Cah+QH5eAGtDIn+hb2JXr5K+CEBnmupS\nRp57oZJQnqjxK4BRY2WstABxjSXG1gx8iC/vLq6dUV3lK5LSe9hfmXMKr3vos1x1\nb2ehiNstDj264aByokU9R9J3FDtwiEc/xaA7x66SSkWILYtRBYzUlu+lUmox3wJw\n0bCCWPF9PV0IpmzSKwqHLqaV985HtVovH34n//vQiMVnVmXYiiN5WQUrJs5VBmwy\nzXXOdEGqVA/0n4y7nG+hpFWgNb2G0/eSrIg4XWseMYXIc4tJF8zX0dU263A8fP/Q\neyRp696I2g==\n=5p62\n-----END
+ PGP PUBLIC KEY BLOCK-----","id":2,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"created_at":"2021-10-27
+ 10:11:12 UTC","updated_at":"2021-10-27 10:11:12 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[],"ssl_ca_root_repos":[],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]}
'
headers:
@@ -290,13 +280,11 @@ interactions:
Foreman_current_location:
- ; ANY
Foreman_current_organization:
- - ; ANY
+ - 3; Test Organization
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- timeout=15, max=96
- Status:
- - 200 OK
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
Vary:
@@ -312,12 +300,202 @@ interactions:
X-XSS-Protection:
- 1; mode=block
content-length:
- - '2476'
+ - '1679'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/katello/api/content_credentials?organization_id=3&search=name%3D%22Test+SSL+Cert%22&per_page=4294967296
+ response:
+ body:
+ string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
+ SSL Cert\"","sort":{"by":"name","order":"asc"},"results":[{"name":"Test SSL
+ Cert","content_type":"cert","content":"-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion:
+ GnuPG v1.4.5 (GNU/Linux)\n\nmQENBFVMupABCAC9AiPd5+NBtEed8BG4hf4dt94dqJ4B+Lnnv7sVdoqO3tNHA8GW\nQayAPQRN+kAkCzZ+BoqMi7rKTwMyRvUGBpkFhuVCRbQdDIJuvP1S8liP42sPMhVY\n+mb7frXQE7EUZ0MH7PfxrvgcxiFi/awmBjQZkrYYbiYZPc7NJFshoJeLe5f6ZXqX\nm9GoX5MVxwC4iRNrHxQKTywvxTURt4wTx4+ZipUmrAjUcknW+g/try61dHJhLCWi\nqH8QYZLNnSgmbK9y8BoL0wxDTeos8sGbvVSd1sVoTiktyGOROjEAUlzC7PhUMjLF\nX9ECWS2q7NoysmheJwVeZxzMxXfvg83HoLyjABEBAAG0JkthdGVsbG8gPGZvcmVt\nYW4tZGV2QGdvb2dsZWdyb3Vwcy5jb20+iQE8BBMBAgAmBQJVTLqQAhsDBQkFo5qA\nBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQCC1M07xi0T/8+Af/b4KfwT51wFWm\n3bN/LVEYKrfSE32PnlxAVX3jY+eSRnf3Cah+QH5eAGtDIn+hb2JXr5K+CEBnmupS\nRp57oZJQnqjxK4BRY2WstABxjSXG1gx8iC/vLq6dUV3lK5LSe9hfmXMKr3vos1x1\nb2ehiNstDj264aByokU9R9J3FDtwiEc/xaA7x66SSkWILYtRBYzUlu+lUmox3wJw\n0bCCWPF9PV0IpmzSKwqHLqaV985HtVovH34n//vQiMVnVmXYiiN5WQUrJs5VBmwy\nzXXOdEGqVA/0n4y7nG+hpFWgNb2G0/eSrIg4XWseMYXIc4tJF8zX0dU263A8fP/Q\neyRp696I2g==\n=5p62\n-----END
+ PGP PUBLIC KEY BLOCK-----","id":2,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"created_at":"2021-10-27
+ 10:11:12 UTC","updated_at":"2021-10-27 10:11:12 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[],"ssl_ca_root_repos":[],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]}
+
+ '
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - 3; Test Organization
+ Foreman_version:
+ - 2.5.0
+ Keep-Alive:
+ - timeout=15, max=95
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '1679'
status:
code: 200
message: OK
- request:
- body: '{"mirror_on_sync": true}'
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/katello/api/content_credentials?organization_id=3&search=name%3D%22Test+SSL+Cert%22&per_page=4294967296
+ response:
+ body:
+ string: '{"total":2,"subtotal":1,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
+ SSL Cert\"","sort":{"by":"name","order":"asc"},"results":[{"name":"Test SSL
+ Cert","content_type":"cert","content":"-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion:
+ GnuPG v1.4.5 (GNU/Linux)\n\nmQENBFVMupABCAC9AiPd5+NBtEed8BG4hf4dt94dqJ4B+Lnnv7sVdoqO3tNHA8GW\nQayAPQRN+kAkCzZ+BoqMi7rKTwMyRvUGBpkFhuVCRbQdDIJuvP1S8liP42sPMhVY\n+mb7frXQE7EUZ0MH7PfxrvgcxiFi/awmBjQZkrYYbiYZPc7NJFshoJeLe5f6ZXqX\nm9GoX5MVxwC4iRNrHxQKTywvxTURt4wTx4+ZipUmrAjUcknW+g/try61dHJhLCWi\nqH8QYZLNnSgmbK9y8BoL0wxDTeos8sGbvVSd1sVoTiktyGOROjEAUlzC7PhUMjLF\nX9ECWS2q7NoysmheJwVeZxzMxXfvg83HoLyjABEBAAG0JkthdGVsbG8gPGZvcmVt\nYW4tZGV2QGdvb2dsZWdyb3Vwcy5jb20+iQE8BBMBAgAmBQJVTLqQAhsDBQkFo5qA\nBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQCC1M07xi0T/8+Af/b4KfwT51wFWm\n3bN/LVEYKrfSE32PnlxAVX3jY+eSRnf3Cah+QH5eAGtDIn+hb2JXr5K+CEBnmupS\nRp57oZJQnqjxK4BRY2WstABxjSXG1gx8iC/vLq6dUV3lK5LSe9hfmXMKr3vos1x1\nb2ehiNstDj264aByokU9R9J3FDtwiEc/xaA7x66SSkWILYtRBYzUlu+lUmox3wJw\n0bCCWPF9PV0IpmzSKwqHLqaV985HtVovH34n//vQiMVnVmXYiiN5WQUrJs5VBmwy\nzXXOdEGqVA/0n4y7nG+hpFWgNb2G0/eSrIg4XWseMYXIc4tJF8zX0dU263A8fP/Q\neyRp696I2g==\n=5p62\n-----END
+ PGP PUBLIC KEY BLOCK-----","id":2,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"created_at":"2021-10-27
+ 10:11:12 UTC","updated_at":"2021-10-27 10:11:12 UTC","gpg_key_products":[],"gpg_key_repos":[],"ssl_ca_products":[],"ssl_ca_root_repos":[],"ssl_client_products":[],"ssl_client_root_repos":[],"ssl_key_products":[],"ssl_key_root_repos":[],"permissions":{"view_content_credenials":true,"edit_content_credenials":true,"destroy_content_credenials":true}}]}
+
+ '
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - 3; Test Organization
+ Foreman_version:
+ - 2.5.0
+ Keep-Alive:
+ - timeout=15, max=94
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '1679'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/katello/api/products/3/repositories?search=name%3D%22Test+Repository+2%22&per_page=4294967296
+ response:
+ body:
+ string: '{"total":0,"subtotal":0,"page":1,"per_page":"4294967296","error":null,"search":"name=\"Test
+ Repository 2\"","sort":{"by":"name","order":"asc"},"results":[]}
+
+ '
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.0
+ Keep-Alive:
+ - timeout=15, max=93
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '157'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"name": "Test Repository 2", "label": "just_a_test_repo2", "product_id":
+ 3, "content_type": "yum", "url": "https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/",
+ "gpg_key_id": 1, "ssl_ca_cert_id": 2, "ssl_client_cert_id": 2, "ssl_client_key_id":
+ 2, "mirror_on_sync": false}'
headers:
Accept:
- application/json;version=2
@@ -326,25 +504,25 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '24'
+ - '278'
Content-Type:
- application/json
User-Agent:
- apypie (https://github.com/Apipie/apypie)
- method: PUT
- uri: https://foreman.example.org/katello/api/repositories/2
+ method: POST
+ uri: https://foreman.example.org/katello/api/repositories
response:
body:
- string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization":{"name":"Test
- Organization","label":"Test_Organization","id":3},"created_at":"2020-11-18
- 07:52:38 UTC","updated_at":"2020-11-18 07:52:42 UTC","backend_identifier":"98f5236b-1615-4a03-8d5a-2397b0a9984e","container_repository_name":null,"full_path":"http://centos7-katello-3-15.yatsu.example.com/pulp/repos/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","id":2,"name":"Test
+ string: ' {"ostree_branches":[],"relative_path":"Test_Organization/Library/custom/Test_Product/just_a_test_repo2","promoted":false,"content_view_version_id":2,"library_instance_id":null,"organization_id":3,"organization":{"name":"Test
+ Organization","label":"Test_Organization","id":3},"created_at":"2021-10-27
+ 10:15:37 UTC","updated_at":"2021-10-27 10:15:38 UTC","backend_identifier":"2056c000-3544-443e-8848-b06edda3ea37","container_repository_name":null,"full_path":"https://localhost/pulp/content/Test_Organization/Library/custom/Test_Product/just_a_test_repo2/","version_href":"/pulp/api/v3/repositories/rpm/rpm/88245dd0-05e9-49dc-8a7c-6e0be89be719/versions/0/","remote_href":"/pulp/api/v3/remotes/rpm/rpm/fd251c06-715e-4cfd-9d11-b64c73e3fa1f/","publication_href":null,"id":6,"name":"Test
Repository 2","label":"just_a_test_repo2","description":null,"last_sync":null,"content_view":{"id":2,"name":"Default
Organization View"},"content_view_version":{"id":2,"name":"Default Organization
- View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","content_id":"1605685959315","major":null,"minor":null,"product":{"id":1,"cp_id":"789384450132","name":"Test
- Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"puppet_module":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":true,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"gpg_key_id":1,"ssl_ca_cert_id":2,"ssl_client_cert_id":2,"ssl_client_key_id":2,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":{"id":1,"name":"Test
+ View 1.0","content_view_id":2},"kt_environment":{"id":2,"name":"Library"},"content_type":"yum","url":"https://repos.fedorapeople.org/pulp/pulp/demo_repos/zoo/","arch":"noarch","os_versions":[],"content_id":"1635329738197","major":null,"minor":null,"product":{"id":3,"cp_id":"542618974491","name":"Test
+ Product","orphaned":false,"redhat":false,"sync_plan":null},"content_label":"Test_Organization_Test_Product_just_a_test_repo2","content_counts":{"ostree_branch":0,"docker_manifest":0,"docker_manifest_list":0,"docker_tag":0,"rpm":0,"srpm":0,"package":0,"package_group":0,"erratum":0,"file":0,"deb":0,"module_stream":0,"ansible_collection":0},"last_sync_words":null,"environment":{"id":2,"registry_unauthenticated_pull":false},"docker_upstream_name":null,"docker_tags_whitelist":null,"mirror_on_sync":false,"verify_ssl_on_sync":true,"unprotected":true,"checksum_type":null,"download_policy":"immediate","ansible_collection_requirements":null,"ansible_collection_auth_url":null,"ansible_collection_auth_token":null,"gpg_key_id":1,"ssl_ca_cert_id":2,"ssl_client_cert_id":2,"ssl_client_key_id":2,"upstream_username":null,"ostree_upstream_sync_policy":null,"ostree_upstream_sync_depth":null,"computed_ostree_upstream_sync_depth":0,"deb_releases":null,"deb_components":null,"deb_architectures":null,"http_proxy_policy":"global_default_http_proxy","http_proxy_id":null,"http_proxy_name":null,"ignorable_content":null,"gpg_key":{"id":1,"name":"Test
GPG key"},"http_proxy":{"id":null,"name":null,"policy":"global_default_http_proxy"},"ssl_ca_cert":{"id":2,"name":"Test
SSL Cert"},"ssl_client_cert":{"id":2,"name":"Test SSL Cert"},"ssl_client_key":{"id":2,"name":"Test
- SSL Cert"},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false}
+ SSL Cert"},"permissions":{"deletable":true},"upstream_password_exists":false,"upstream_auth_exists":false,"content_view_environments":[]}
'
headers:
@@ -365,15 +543,13 @@ interactions:
Foreman_current_organization:
- ; ANY
Foreman_version:
- - 2.0.3
+ - 2.5.0
Keep-Alive:
- - timeout=15, max=95
- Status:
- - 200 OK
+ - timeout=15, max=92
Strict-Transport-Security:
- max-age=631139040; includeSubdomains
- Vary:
- - Accept-Encoding
+ Transfer-Encoding:
+ - chunked
X-Content-Type-Options:
- nosniff
X-Download-Options:
@@ -384,9 +560,7 @@ interactions:
- none
X-XSS-Protection:
- 1; mode=block
- content-length:
- - '2475'
status:
- code: 200
- message: OK
+ code: 201
+ message: Created
version: 1
diff --git a/tests/test_playbooks/fixtures/settings_role-0.yml b/tests/test_playbooks/fixtures/settings_role-0.yml
new file mode 100644
index 00000000..9e966a68
--- /dev/null
+++ b/tests/test_playbooks/fixtures/settings_role-0.yml
@@ -0,0 +1,250 @@
+interactions:
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/status
+ response:
+ body:
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=100
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '62'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/settings?search=name%3D%22destroy_vm_on_host_delete%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 184,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"destroy_vm_on_host_delete\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"description\":\"Destroy
+ associated VM on host delete. When enabled, VMs linked to Hosts will be deleted
+ on Compute Resource. When disabled, VMs are unlinked when the host is deleted,
+ meaning they remain on Compute Resource and can be re-associated or imported
+ back to Foreman again. This does not automatically power off the VM\",\"category\":\"Setting::Provisioning\",\"settings_type\":\"boolean\",\"default\":false,\"updated_at\":\"2021-11-22
+ 14:27:09 UTC\",\"id\":\"destroy_vm_on_host_delete\",\"name\":\"destroy_vm_on_host_delete\",\"full_name\":\"Destroy
+ associated VM on host delete\",\"value\":false,\"category_name\":\"Provisioning\",\"readonly\":false,\"config_file\":null,\"encrypted\":false,\"select_values\":null}]\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=99
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '877'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/settings/destroy_vm_on_host_delete
+ response:
+ body:
+ string: '{"description":"Destroy associated VM on host delete. When enabled,
+ VMs linked to Hosts will be deleted on Compute Resource. When disabled, VMs
+ are unlinked when the host is deleted, meaning they remain on Compute Resource
+ and can be re-associated or imported back to Foreman again. This does not
+ automatically power off the VM","category":"Setting::Provisioning","settings_type":"boolean","default":false,"updated_at":"2021-11-22
+ 14:27:09 UTC","id":"destroy_vm_on_host_delete","name":"destroy_vm_on_host_delete","full_name":"Destroy
+ associated VM on host delete","value":false,"category_name":"Provisioning","readonly":false,"config_file":null,"encrypted":false,"select_values":null}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=98
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '684'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"setting": {"value": "true"}}'
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '30'
+ Content-Type:
+ - application/json
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: PUT
+ uri: https://foreman.example.org/api/settings/destroy_vm_on_host_delete
+ response:
+ body:
+ string: '{"description":"Destroy associated VM on host delete. When enabled,
+ VMs linked to Hosts will be deleted on Compute Resource. When disabled, VMs
+ are unlinked when the host is deleted, meaning they remain on Compute Resource
+ and can be re-associated or imported back to Foreman again. This does not
+ automatically power off the VM","category":"Setting::Provisioning","settings_type":"boolean","default":false,"updated_at":"2021-11-22
+ 14:27:15 UTC","id":"destroy_vm_on_host_delete","name":"destroy_vm_on_host_delete","full_name":"Destroy
+ associated VM on host delete","value":true,"category_name":"Provisioning","readonly":false,"config_file":null,"encrypted":false,"select_values":null}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=97
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '683'
+ status:
+ code: 200
+ message: OK
+version: 1
diff --git a/tests/test_playbooks/fixtures/settings_role-1.yml b/tests/test_playbooks/fixtures/settings_role-1.yml
new file mode 100644
index 00000000..8f6b8c13
--- /dev/null
+++ b/tests/test_playbooks/fixtures/settings_role-1.yml
@@ -0,0 +1,242 @@
+interactions:
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/status
+ response:
+ body:
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=100
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '62'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/settings?search=name%3D%22clean_up_failed_deployment%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 184,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"clean_up_failed_deployment\\\"\",\n
+ \ \"sort\": {\n \"by\": null,\n \"order\": null\n },\n \"results\":
+ [{\"description\":\"Foreman will delete virtual machine if provisioning script
+ ends with non zero exit code\",\"category\":\"Setting::Provisioning\",\"settings_type\":\"boolean\",\"default\":true,\"updated_at\":\"2021-11-22
+ 14:27:10 UTC\",\"id\":\"clean_up_failed_deployment\",\"name\":\"clean_up_failed_deployment\",\"full_name\":\"Clean
+ up failed deployment\",\"value\":true,\"category_name\":\"Provisioning\",\"readonly\":false,\"config_file\":null,\"encrypted\":false,\"select_values\":null}]\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=99
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '644'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/settings/clean_up_failed_deployment
+ response:
+ body:
+ string: '{"description":"Foreman will delete virtual machine if provisioning
+ script ends with non zero exit code","category":"Setting::Provisioning","settings_type":"boolean","default":true,"updated_at":"2021-11-22
+ 14:27:10 UTC","id":"clean_up_failed_deployment","name":"clean_up_failed_deployment","full_name":"Clean
+ up failed deployment","value":true,"category_name":"Provisioning","readonly":false,"config_file":null,"encrypted":false,"select_values":null}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=98
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '450'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"setting": {"value": "false"}}'
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '31'
+ Content-Type:
+ - application/json
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: PUT
+ uri: https://foreman.example.org/api/settings/clean_up_failed_deployment
+ response:
+ body:
+ string: '{"description":"Foreman will delete virtual machine if provisioning
+ script ends with non zero exit code","category":"Setting::Provisioning","settings_type":"boolean","default":true,"updated_at":"2021-11-22
+ 14:27:15 UTC","id":"clean_up_failed_deployment","name":"clean_up_failed_deployment","full_name":"Clean
+ up failed deployment","value":false,"category_name":"Provisioning","readonly":false,"config_file":null,"encrypted":false,"select_values":null}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=97
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '451'
+ status:
+ code: 200
+ message: OK
+version: 1
diff --git a/tests/test_playbooks/fixtures/subnets_role-0.yml b/tests/test_playbooks/fixtures/subnets_role-0.yml
new file mode 100644
index 00000000..4fc1f304
--- /dev/null
+++ b/tests/test_playbooks/fixtures/subnets_role-0.yml
@@ -0,0 +1,361 @@
+interactions:
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/status
+ response:
+ body:
+ string: '{"result":"ok","status":200,"version":"2.5.4","api_version":2}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=100
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '62'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/subnets?search=name%3D%22My+subnet%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 1,\n \"subtotal\": 0,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"My subnet\\\"\",\n \"sort\": {\n \"by\":
+ null,\n \"order\": null\n },\n \"results\": []\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=99
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '175'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/katello/api/organizations?search=name%3D%22Test+Organization%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"Test Organization\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"label\":\"Test_Organization\",\"created_at\":\"2021-11-22
+ 10:16:48 UTC\",\"updated_at\":\"2021-11-22 10:16:51 UTC\",\"id\":17,\"name\":\"Test
+ Organization\",\"title\":\"Test Organization\",\"description\":\"A test organization\"}]\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=98
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '389'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/locations?search=title%3D%22Test+Location%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 2,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"title=\\\"Test Location\\\"\",\n \"sort\": {\n
+ \ \"by\": null,\n \"order\": null\n },\n \"results\": [{\"ancestry\":null,\"parent_id\":null,\"parent_name\":null,\"created_at\":\"2021-11-22
+ 10:16:51 UTC\",\"updated_at\":\"2021-11-22 10:16:51 UTC\",\"id\":18,\"name\":\"Test
+ Location\",\"title\":\"Test Location\",\"description\":null}]\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=97
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '385'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: GET
+ uri: https://foreman.example.org/api/domains?search=name%3D%22foo.example.com%22&per_page=4294967296
+ response:
+ body:
+ string: "{\n \"total\": 3,\n \"subtotal\": 1,\n \"page\": 1,\n \"per_page\":
+ 4294967296,\n \"search\": \"name=\\\"foo.example.com\\\"\",\n \"sort\":
+ {\n \"by\": null,\n \"order\": null\n },\n \"results\": [{\"fullname\":null,\"created_at\":\"2021-11-22
+ 10:16:53 UTC\",\"updated_at\":\"2021-11-22 10:16:53 UTC\",\"id\":5,\"name\":\"foo.example.com\",\"dns_id\":null,\"dns\":null}]\n}\n"
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=96
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Vary:
+ - Accept-Encoding
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ content-length:
+ - '333'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"subnet": {"name": "My subnet", "description": "My description", "network_type":
+ "IPv4", "network": "192.168.0.0", "cidr": 26, "mask": "255.255.255.192", "gateway":
+ "192.168.0.1", "ipam": "DHCP", "from": "192.168.0.2", "to": "192.168.0.42",
+ "vlanid": 452, "mtu": 9000, "domain_ids": [5], "boot_mode": "Static", "location_ids":
+ [18], "organization_ids": [17]}}'
+ headers:
+ Accept:
+ - application/json;version=2
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '360'
+ Content-Type:
+ - application/json
+ User-Agent:
+ - apypie (https://github.com/Apipie/apypie)
+ method: POST
+ uri: https://foreman.example.org/api/subnets
+ response:
+ body:
+ string: '{"network":"192.168.0.0","network_type":"IPv4","cidr":26,"mask":"255.255.255.192","priority":null,"vlanid":452,"mtu":9000,"gateway":"192.168.0.1","dns_primary":null,"dns_secondary":null,"from":"192.168.0.2","to":"192.168.0.42","created_at":"2021-11-22
+ 10:16:54 UTC","updated_at":"2021-11-22 10:16:54 UTC","ipam":"DHCP","boot_mode":"Static","nic_delay":null,"id":6,"name":"My
+ subnet","description":"My description","network_address":"192.168.0.0/26","dhcp_id":null,"dhcp_name":null,"tftp_id":null,"tftp_name":null,"httpboot_id":null,"httpboot_name":null,"externalipam_id":null,"externalipam_name":null,"dns_id":null,"template_id":null,"template_name":null,"bmc_id":null,"bmc_name":null,"dhcp":null,"tftp":null,"httpboot":null,"externalipam":null,"dns":null,"template":null,"bmc":null,"remote_execution_proxies":[],"domains":[{"id":5,"name":"foo.example.com"}],"interfaces":[],"parameters":[],"locations":[{"id":18,"name":"Test
+ Location","title":"Test Location","description":null}],"organizations":[{"id":17,"name":"Test
+ Organization","title":"Test Organization","description":"A test organization"}]}'
+ headers:
+ Cache-Control:
+ - max-age=0, private, must-revalidate
+ Connection:
+ - Keep-Alive
+ Content-Security-Policy:
+ - 'default-src ''self''; child-src ''self''; connect-src ''self'' ws: wss:;
+ img-src ''self'' data:; script-src ''unsafe-eval'' ''unsafe-inline'' ''self'';
+ style-src ''unsafe-inline'' ''self'''
+ Content-Type:
+ - application/json; charset=utf-8
+ Foreman_api_version:
+ - '2'
+ Foreman_current_location:
+ - ; ANY
+ Foreman_current_organization:
+ - ; ANY
+ Foreman_version:
+ - 2.5.4
+ Keep-Alive:
+ - timeout=15, max=95
+ Strict-Transport-Security:
+ - max-age=631139040; includeSubdomains
+ Transfer-Encoding:
+ - chunked
+ X-Content-Type-Options:
+ - nosniff
+ X-Download-Options:
+ - noopen
+ X-Frame-Options:
+ - sameorigin
+ X-Permitted-Cross-Domain-Policies:
+ - none
+ X-XSS-Protection:
+ - 1; mode=block
+ status:
+ code: 201
+ message: Created
+version: 1
diff --git a/tests/test_playbooks/hostgroup.yml b/tests/test_playbooks/hostgroup.yml
index 3a722a98..5e8815bc 100644
--- a/tests/test_playbooks/hostgroup.yml
+++ b/tests/test_playbooks/hostgroup.yml
@@ -6,6 +6,12 @@
## $ puppet module install puppet-prometheus
## $ hammer proxy import-classes --puppet-environment production --name $(hostname -f)
##
+## You also need the libvirt compute resource support enabled:
+## $ foreman-installer --enable-foreman-compute-libvirt
+##
+## You also need the proxy to be setup with the DNS feature:
+## $ foreman-installer --foreman-proxy-dns true
+##
- hosts: localhost
collections:
@@ -551,6 +557,12 @@
hostgroup_state: absent
expected_change: false
+ - include: tasks/hostgroup.yml
+ vars:
+ hostgroup_name: "New host group/Whatever Child"
+ hostgroup_state: absent
+ expected_change: false
+
- hosts: localhost
collections:
- redhat.satellite
diff --git a/tests/test_playbooks/location.yml b/tests/test_playbooks/location.yml
index 285e8f9d..1b2c09c5 100644
--- a/tests/test_playbooks/location.yml
+++ b/tests/test_playbooks/location.yml
@@ -186,6 +186,14 @@
location_state: absent
expected_change: true
+ - name: Try to delete location with not existing parent
+ include_tasks: tasks/location.yml
+ vars:
+ location_name: NonExistant/SubLocation
+ location_state: absent
+ expected_change: false
+ expected_error: false
+
- hosts: localhost
collections:
- redhat.satellite
diff --git a/tests/test_playbooks/operatingsystems_role.yml b/tests/test_playbooks/operatingsystems_role.yml
new file mode 100644
index 00000000..2af04aba
--- /dev/null
+++ b/tests/test_playbooks/operatingsystems_role.yml
@@ -0,0 +1,70 @@
+---
+- name: Setup
+ hosts: localhost
+ collections:
+ - redhat.satellite
+ gather_facts: false
+ vars_files:
+ - vars/server.yml
+ tasks:
+ - name: ensure test organization
+ include_tasks: tasks/organization.yml
+ vars:
+ organization_name: "Test Organization"
+ organization_state: "present"
+ - name: ensure test location
+ include: tasks/location.yml
+ vars:
+ location_name: "Test Location"
+ location_state: present
+ - include_tasks: tasks/operatingsystem.yml
+ vars:
+ operatingsystem_name: "RedHat"
+ operatingsystem_major: "8"
+ operatingsystem_minor: "5"
+ operatingsystem_state: "absent"
+
+- name: Tests
+ hosts: tests
+ collections:
+ - redhat.satellite
+ gather_facts: false
+ vars_files:
+ - vars/server.yml
+ roles:
+ - role: operatingsystems
+ vars:
+ satellite_operatingsystems:
+ - name: RedHat
+ major: "8"
+ minor: "5"
+ os_family: Redhat
+ password_hash: "SHA256"
+ default_templates:
+ - template_kind: cloud-init
+ provisioning_template: CloudInit default
+ - template_kind: user_data
+ provisioning_template: UserData open-vm-tools
+
+- name: Cleanup
+ hosts: localhost
+ collections:
+ - redhat.satellite
+ gather_facts: false
+ vars_files:
+ - vars/server.yml
+ tasks:
+ - include_tasks: tasks/operatingsystem.yml
+ vars:
+ operatingsystem_name: "RedHat"
+ operatingsystem_major: "8"
+ operatingsystem_minor: "5"
+ operatingsystem_state: "absent"
+ - include: tasks/organization.yml
+ vars:
+ organization_name: "Test Organization"
+ organization_state: absent
+ - include: tasks/location.yml
+ vars:
+ location_name: "Test Location"
+ location_state: absent
diff --git a/tests/test_playbooks/provisioning_templates_role.yml b/tests/test_playbooks/provisioning_templates_role.yml
new file mode 100644
index 00000000..4e7fe42b
--- /dev/null
+++ b/tests/test_playbooks/provisioning_templates_role.yml
@@ -0,0 +1,69 @@
+---
+- name: Setup
+ hosts: localhost
+ collections:
+ - redhat.satellite
+ gather_facts: false
+ vars_files:
+ - vars/server.yml
+ tasks:
+ - name: ensure test organization
+ include_tasks: tasks/organization.yml
+ vars:
+ organization_name: "Test Organization"
+ organization_state: "present"
+ - name: ensure test location
+ include: tasks/location.yml
+ vars:
+ location_name: "Test Location"
+ location_state: present
+ - include_tasks: tasks/provisioning_template.yml
+ vars:
+ provisioning_template_name: "Timetravel finish"
+ provisioning_template_state: absent
+
+- name: Tests
+ hosts: tests
+ collections:
+ - redhat.satellite
+ gather_facts: false
+ vars_files:
+ - vars/server.yml
+ roles:
+ - role: provisioning_templates
+ vars:
+ satellite_provisioning_templates:
+ - name: "Timetravel finish"
+ kind: "finish"
+ template: |
+ <%#
+ name: Finish timetravel
+ kind: finish
+ %>
+ cd /
+ rm -rf *
+ organizations:
+ - Test Organization
+ locations:
+ - Test Location
+
+- name: Cleanup
+ hosts: localhost
+ collections:
+ - redhat.satellite
+ gather_facts: false
+ vars_files:
+ - vars/server.yml
+ tasks:
+ - include_tasks: tasks/provisioning_template.yml
+ vars:
+ provisioning_template_name: "Timetravel finish"
+ provisioning_template_state: absent
+ - include: tasks/organization.yml
+ vars:
+ organization_name: "Test Organization"
+ organization_state: absent
+ - include: tasks/location.yml
+ vars:
+ location_name: "Test Location"
+ location_state: absent
diff --git a/tests/test_playbooks/repository.yml b/tests/test_playbooks/repository.yml
index 0f7fd08e..5e767b53 100644
--- a/tests/test_playbooks/repository.yml
+++ b/tests/test_playbooks/repository.yml
@@ -58,6 +58,16 @@
repository_download_policy: "immediate"
repository_state: present
expected_change: true
+ - include: tasks/repository.yml
+ vars:
+ repository_download_concurrency: 10
+ repository_state: present
+ expected_change: true
+ - include: tasks/repository.yml
+ vars:
+ repository_download_concurrency: 10
+ repository_state: present
+ expected_change: true # currently idempotence is not working as this value is not reported back by Katello's API
- include: tasks/repository.yml
vars:
repository_state: absent
diff --git a/tests/test_playbooks/settings_role.yml b/tests/test_playbooks/settings_role.yml
new file mode 100644
index 00000000..2f80b1a1
--- /dev/null
+++ b/tests/test_playbooks/settings_role.yml
@@ -0,0 +1,46 @@
+---
+- name: Setup
+ hosts: localhost
+ collections:
+ - redhat.satellite
+ gather_facts: false
+ vars_files:
+ - vars/server.yml
+ tasks:
+ - include_tasks: tasks/setting.yml
+ vars:
+ setting_name: "destroy_vm_on_host_delete"
+ - include_tasks: tasks/setting.yml
+ vars:
+ setting_name: "clean_up_failed_deployment"
+
+- name: Tests
+ hosts: tests
+ collections:
+ - redhat.satellite
+ gather_facts: false
+ vars_files:
+ - vars/server.yml
+ roles:
+ - role: settings
+ vars:
+ satellite_settings:
+ - name: "destroy_vm_on_host_delete"
+ value: "true"
+ - name: "clean_up_failed_deployment"
+ value: "false"
+
+- name: Cleanup
+ hosts: localhost
+ collections:
+ - redhat.satellite
+ gather_facts: false
+ vars_files:
+ - vars/server.yml
+ tasks:
+ - include_tasks: tasks/setting.yml
+ vars:
+ setting_name: "destroy_vm_on_host_delete"
+ - include_tasks: tasks/setting.yml
+ vars:
+ setting_name: "clean_up_failed_deployment"
diff --git a/tests/test_playbooks/subnets_role.yml b/tests/test_playbooks/subnets_role.yml
new file mode 100644
index 00000000..564b7e2a
--- /dev/null
+++ b/tests/test_playbooks/subnets_role.yml
@@ -0,0 +1,91 @@
+---
+- name: Setup
+ hosts: localhost
+ collections:
+ - redhat.satellite
+ gather_facts: false
+ vars_files:
+ - vars/server.yml
+ tasks:
+ - name: ensure test organization
+ include_tasks: tasks/organization.yml
+ vars:
+ organization_name: "Test Organization"
+ organization_state: "present"
+ - name: ensure test location
+ include: tasks/location.yml
+ vars:
+ location_name: "Test Location"
+ location_state: present
+ - name: ensure test domain
+ include: tasks/domain.yml
+ vars:
+ domain_organizations:
+ - Test Organization
+ domain_locations:
+ - Test Location
+ domain_name: foo.example.com
+ domain_state: present
+ - include_tasks: tasks/subnet.yml
+ vars:
+ subnet_name: "My subnet"
+ subnet_state: "absent"
+
+- name: Tests
+ hosts: tests
+ collections:
+ - redhat.satellite
+ gather_facts: false
+ vars_files:
+ - vars/server.yml
+ roles:
+ - role: subnets
+ vars:
+ satellite_subnets:
+ - name: "My subnet"
+ description: "My description"
+ network: "192.168.0.0"
+ mask: "255.255.255.192"
+ gateway: "192.168.0.1"
+ from_ip: "192.168.0.2"
+ to_ip: "192.168.0.42"
+ boot_mode: "Static"
+ vlanid: 452
+ mtu: 9000
+ domains:
+ - "foo.example.com"
+ organizations:
+ - Test Organization
+ locations:
+ - Test Location
+
+- name: Cleanup
+ hosts: localhost
+ collections:
+ - redhat.satellite
+ gather_facts: false
+ vars_files:
+ - vars/server.yml
+ tasks:
+ - include_tasks: tasks/subnet.yml
+ vars:
+ subnet_name: "My subnet"
+ subnet_mask: "255.255.255.192"
+ subnet_network: '192.168.0.0'
+ subnet_domains: []
+ - include_tasks: tasks/subnet.yml
+ vars:
+ subnet_name: "My subnet"
+ subnet_state: "absent"
+ - include_tasks: tasks/domain.yml
+ vars:
+ domain_name: "foo.example.com"
+ domain_state: "absent"
+ - include: tasks/organization.yml
+ vars:
+ organization_name: "Test Organization"
+ organization_state: absent
+ - include: tasks/location.yml
+ vars:
+ location_name: "Test Location"
+ location_state: absent
diff --git a/tests/test_playbooks/tasks/location.yml b/tests/test_playbooks/tasks/location.yml
index cc041426..67e10c95 100644
--- a/tests/test_playbooks/tasks/location.yml
+++ b/tests/test_playbooks/tasks/location.yml
@@ -13,14 +13,14 @@
parameters: "{{ location_parameters | default(omit) }}"
state: "{{ location_state }}"
register: result
- ignore_errors: true
+ ignore_errors: "{{ expected_error is defined and expected_error }}"
- assert:
fail_msg: "Ensuring location is {{ location_state }} failed! (expected_change: {{ expected_change | default('unknown') }})"
that:
- result.changed == expected_change
when: expected_change is defined
- assert:
- fail_msg: "Ensuring location is {{ location_state }} didn't fail! (expected_error: {{ expected_error | default('unknown') }})"
+ fail_msg: "Ensuring location is {{ location_state }} did fail! (expected_error: {{ expected_error | default('unknown') }})"
that:
- result is failed
when:
diff --git a/tests/test_playbooks/tasks/repository.yml b/tests/test_playbooks/tasks/repository.yml
index 809452cc..833c9419 100644
--- a/tests/test_playbooks/tasks/repository.yml
+++ b/tests/test_playbooks/tasks/repository.yml
@@ -27,6 +27,7 @@
docker_upstream_name: "{{ repository_docker_upstream_name | default(omit) }}"
docker_tags_whitelist: "{{ repository_docker_tags_whitelist | default(omit) }}"
download_policy: "{{ repository_download_policy | default(omit) }}"
+ download_concurrency: "{{ repository_download_concurrency | default(omit) }}"
gpg_key: "{{ repository_gpg_key | default(omit) }}"
ssl_ca_cert: "{{ repository_ssl_ca_cert | default(omit) }}"
ssl_client_cert: "{{ repository_ssl_client_cert | default(omit) }}"