Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-4776

deployments-enterprise: Assign deployment ID to ID field of update_control_map

    XMLWordPrintable

    Details

      Description

      Acceptance criteria:

      • All endpoints that accept the update_control_map parameter must check that "ID" field inside the map matches the deployment ID or is empty.
        • This implies that in the request to create the deployment, the ID must always be empty, since the deployment ID is not known yet.
        • If the check fails, return 400.
      • If the ID in the map is empty, the service must fill it in with the deployment ID before storing the map in the database.
      • Unit tests

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tranchitella Fabio Tranchitella
              Reporter:
              a10040 Kristian Amlie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: