Bug #22450
closedAPI results for GET job_templates do not include 'updated_at' value
Description
Description of problem:
The API call to list provisioning_templates and partition tables returns a list of templates and includes the time-stamp that the template was last updated.
The same call for job_templates does not contain that information.
API results should be consistent.
Version-Release number of selected component (if applicable):
6.2.13
How reproducible:
Always
Steps to Reproduce:
1. curl -X GET -s -u admin:changeme -k https://satellite.example.com/api/v2/job_templates // Does not include updated_at timestamp
2.curl -X GET -s -u admin:changeme -k https://satellite.example.com/api/v2/provisioning_templates // Includes updated_at timestamp
Actual results:
API results are not consistent. No updated_at field present
Expected results:
API Should be consistent, hence created_at, updated_at needs to be added
Additional info:
Add these attributes (created_at, updated_at) to the file views/api/v2/job_templates/base.json.rabl in foreman_remote_execution github repository