Uploaded image for project: 'DC/OS'
  1. DC/OS
  2. DCOS_OSS-1977

Fix ip-per-container test - skip when the number of agents are less than 2

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: testing
    • Labels:

      Description

      [root@m1 dcos-integration-test]# pytest -v -k test_ip_per_container
      ========================================================================================================= test session starts =========================================================================================================
      platform linux -- Python 3.5.2, pytest-3.0.3, py-1.4.31, pluggy-0.4.0 -- /opt/mesosphere/packages/python--547c752ada17bf093048a6da3d50ded309446a96/bin/python3
      cachedir: .cache
      rootdir: /opt/mesosphere/packages/dcos-integration-test--f3ba2eef39e3ca3277c34c9b1a9d11c33fd9ae8f, inifile:
      plugins: teamcity-messages-1.19
      collected 114 items
      
      test_networking.py::test_ip_per_container FAILED
      
      ============================================================================================================== FAILURES ===============================================================================================================
      ________________________________________________________________________________________________________ test_ip_per_container ________________________________________________________________________________________________________
      
      dcos_api_session = <dcos_test_utils.dcos_api.DcosApiSession object at 0x7fc5273f52b0>
      
          def test_ip_per_container(dcos_api_session):
              '''Test if we are able to connect to a task with ip-per-container mode
              '''
              # Launch the test_server in ip-per-container mode (user network)
              app_definition, test_uuid = test_helpers.marathon_test_app(
                  healthcheck_protocol=marathon.Healthcheck.MESOS_HTTP,
                  container_type=marathon.Container.DOCKER,
                  network=marathon.Network.USER,
                  host_port=9080)
      
      >       assert len(dcos_api_session.slaves) >= 2, 'IP Per Container tests require 2 private agents to work'
      E       AssertionError: IP Per Container tests require 2 private agents to work
      E       assert 1 >= 2
      E        +  where 1 = len(['192.168.65.111'])
      E        +    where ['192.168.65.111'] = <dcos_test_utils.dcos_api.DcosApiSession object at 0x7fc5273f52b0>.slaves
      
      test_networking.py:215: AssertionError
      

        Attachments

          Activity

            People

            • Assignee:
              skumaran Senthil Kumaran
              Reporter:
              skumaran Senthil Kumaran
              Team:
              Dev Prod Team
              Watchers:
              Senthil Kumaran
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: