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

automate container count used in tests

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Done
    • Priority: (None)
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Days in progress:
      0

      Description

      This concerns e.g. the NUM_SERVICES_OPENSOURCE and NUM_SERVICES_ENTERPRISE variables, which rely on the number of services present in a given test infrastructure. The service count should be deducted based on the used compose files, parsing the yml files, retrieving the services of each file, collecting them in a set/ deduplicating them/ ... and using the number of the collected services to determine the values present in the variables mentioned before.
      The information about the correct set of compose files that needs to be parsed can be determined based on the output of any container running in the environment, by inspecting the com.docker.compose.project.config_files label of the container:

      docker inspect --format '{{ index .Config.Labels "com.docker.compose.project.config_files"}}' menderintegration-mender-azure-iot-manager-1
      

      Acceptance criteria:

      • once done fixed container count variables are no longer required in both the integration repo and in the mender-docs repo

        Attachments

          Activity

            People

            • Assignee:
              alfrunes Alf-Rune Siqveland
              Reporter:
              mzedel Manuel Zedel
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support