Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-34617 "POST /api/job_templates/:id/clone" fails to clone a job-template
  3. SAT-35386

[QE][Automation] "POST /api/job_templates/:id/clone" fails to clone a job-template

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • 0

      Description of problem:

       

      How reproducible:

      Always

      Is this issue a regression from an earlier version:

      No

      Steps to Reproduce:

      1. Prepare Satellite 6.18/stream and fetch the ID of any job-template to clone, for example "Ansible Roles - Ansible Default"

      2. 

      1. curl -X POST -k -H 'Accept: application/json' -H 'Content-Type: application/json' -H 'Authorization: Basic YWRtaW46Y2hhbmdlbWU=' -i 'https://example.redhat.com/api/job_templates/235/clone' --data '{"name": "Cloned Template Name"}'
        .

      .

      {
        "error": {"id":235,"errors":

      {"base":["This template is locked. Please clone it to a new template to customize."]}

      ,"full_messages":["This template is locked. Please clone it to a new template to customize."]}

      3.

      Actual behavior:
      JobTemplate clone fails with "This template is locked. Please clone it to a new template to customize"

      Expected behavior:
      JobTemplate clone works without any errors 

      Business Impact / Additional info:

      Also, tried passing data like below in curl command and it also fails with same error,

      --data '{"job_template": {"name": "Cloned Template Name"}}' 

       

      QE Tracker for https://issues.redhat.com/browse/SAT-34617

              gtalreja@redhat.com Gaurav Talreja
              satellite-jira-automation@redhat.com Satellite Jira-Automation
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: