Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-1995

Expose the connectors (global) version in the "Environment" response

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    • All
    • GreenHopper Ranking:
      0|i28jnn:
    • 9223372036854775807
    • Small

    Description

      In TPRUN-1954 we would like to build a rest call to component-server running in the engine (gen 2, ce4d) to fetch the connectors global version (the one of the docker image actually).

      Assuming that from the mounted filesystem used to load the components there'll be a CONNECTORS_VERSION file that will contain a string (the version)

      Feature: Read the connectors version in an engine
        Scenario: connectors version is read on 
          Given component-server runs on port 8686
          And the /opt/talend/connectors/CONNECTORS_VERSION exists
          And the /opt/talend/connectors/CONNECTORS_VERSION content is 1.26
          When one calls http://component-server:8686/api/v1/environment
          Then an http 200 should be returned
          And the body should contain a json object
          And there should a "connectors" object that contains the version field equals to 1.26
      

      if the file has not been found then the connectors object with "version";"unknown" is ok.
      from the consumer side (engine-info service running on TC side) it would be very nice to have something like

      {....., "connectors": {"version": "1.26"}....}
      

      Attachments

        Issue Links

          Activity

            People

              emmanuel_g emmanuel gallois
              mtallet Michael Tallet
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: