Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-6348

Allow `network/cni` isolator unit-tests to run with CNI plugins

    XMLWordPrintableJSON

Details

    • Task
    • Status: Reviewable
    • Major
    • Resolution: Unresolved
    • None
    • None
    • network, test
    • Mesosphere Sprint 44, Mesosphere Sprint 45, Mesosphere Sprint 46, Mesosphere Sprint 47, Mesosphere Sprint 49
    • 1

    Description

      Currently, we don't have any infrastructure to allow for CNI plugins to be used in `network/cni` isolator unit-tests. This forces us to mock CNI plugins that don't use new network namespaces leading to very restricting form of unit-tests.

      Especially for port-mapper plugin, in order to test its DNAT functionality it will be very useful if we run the containers in separate network namespace requiring an actual CNI plugin.

      The proposal is there to introduce a test filter called CNIPLUGIN, that gets set when CNI_PATH env var is set. Tests using the CNIPLUGIN filter can then use actual CNI plugins in their tests.

      Attachments

        Activity

          People

            avinash.mesos Avinash Sridharan
            avinash.mesos Avinash Sridharan
            Jie Yu Jie Yu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: