Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: dcos-cli, testing
    • Labels:
      None

      Description

      test_install_missing_package
          def test_install_missing_package():
              stderr = b'Error: Package [missing-package] not found\n'
              assert_command(['dcos', 'package', 'install', 'missing-package'],
                             returncode=1,
      >                      stderr=stderr)
      
      tests/integrations/test_package.py:442: 
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
      
      cmd = ['dcos', 'package', 'install', 'missing-package'], returncode = 1
      stdout = b'', stderr = b'Error: Package [missing-package] not found\n'
      env = None, stdin = None
      
          def assert_command(
                  cmd,
                  returncode=0,
                  stdout=b'',
                  stderr=b'',
                  env=None,
                  stdin=None):
              """Execute CLI command and assert expected behavior.
          
              :param cmd: Program and arguments
              :type cmd: list of str
              :param returncode: Expected return code
              :type returncode: int
              :param stdout: Expected stdout
              :type stdout: bytes
              :param stderr: Expected stderr
              :type stderr: bytes
              :param env: Environment variables
              :type env: dict of str to str
              :param stdin: File to use for stdin
              :type stdin: file
              :rtype: None
              """
          
              returncode_, stdout_, stderr_ = exec_command(cmd, env, stdin)
          
      >       assert stderr_ == stderr, (stderr_, stderr)
      E       AssertionError: (b'Error: Post https://54.85.252.165/package/describe: dial tcp 54.85.252.165:443: i/o timeout\n', b'Error: Package [missing-package] not found\n')
      
      
      test_app_locked_error
          def test_app_locked_error():
              with app('tests/data/marathon/apps/sleep_many_instances.json',
                       '/sleep-many-instances',
                       wait=False):
                  stderr = b'Changes blocked: deployment already in progress for app.\n'
                  assert_command(
                      ['dcos', 'marathon', 'app', 'stop', 'sleep-many-instances'],
                      returncode=1,
      >               stderr=stderr)
      
      tests/integrations/test_marathon.py:705: 
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
      
      cmd = ['dcos', 'marathon', 'app', 'stop', 'sleep-many-instances']
      returncode = 1, stdout = b''
      stderr = b'Changes blocked: deployment already in progress for app.\n'
      env = None, stdin = None
      
          def assert_command(
                  cmd,
                  returncode=0,
                  stdout=b'',
                  stderr=b'',
                  env=None,
                  stdin=None):
              """Execute CLI command and assert expected behavior.
          
              :param cmd: Program and arguments
              :type cmd: list of str
              :param returncode: Expected return code
              :type returncode: int
              :param stdout: Expected stdout
              :type stdout: bytes
              :param stderr: Expected stderr
              :type stderr: bytes
              :param env: Environment variables
              :type env: dict of str to str
              :param stdin: File to use for stdin
              :type stdin: file
              :rtype: None
              """
          
              returncode_, stdout_, stderr_ = exec_command(cmd, env, stdin)
          
      >       assert stderr_ == stderr, (stderr_, stderr)
      E       AssertionError: (b'URL [https://34.227.163.2/service/marathon/v2/apps/sleep-many-instances] is unreachable.\n', b'Changes blocked: deployment already in progress for app.\n')
      
      dcoscli/test/common.py:99: AssertionError
      ----------------------------- Captured stdout call -----------------------------
      CMD: ['dcos', 'marathon', 'app', 'add', 'tests/data/marathon/apps/sleep_many_instances.json']
      STDOUT: Created deployment 12f06ca6-c6c0-4fb1-97d9-6a2558706c49
      
      STDERR: 
      CMD: ['dcos', 'marathon', 'app', 'stop', 'sleep-many-instances']
      STDOUT: 
      STDERR: URL [https://34.227.163.2/service/marathon/v2/apps/sleep-many-instances] is unreachable.
      
      CMD: ['dcos', 'marathon', 'app', 'remove', '--force', '/sleep-many-instances']
      STDOUT: 
      STDERR: 
      CMD: ['dcos', 'marathon', 'deployment', 'list', '--json']
      STDOUT: [
        {
          "affectedApps": [
            "/sleep-many-instances"
          ],
          "affectedPods": [],
          "currentActions": [
            {
              "action": "StopApplication",
              "app": "/sleep-many-instances",
              "readinessCheckResults": []
            }
          ],
          "currentStep": 1,
          "id": "d9d7f5e7-fd16-4ad9-907b-60034ee9afae",
          "steps": [
            {
              "actions": [
                {
                  "action": "StopApplication",
                  "app": "/sleep-many-instances"
                }
              ]
            }
          ],
          "totalSteps": 1,
          "version": "2019-10-22T17:25:23.912Z"
        }
      ]
      
      STDERR: 
      CMD: ['dcos', 'marathon', 'deployment', 'watch', '--max-count=300', 'd9d7f5e7-fd16-4ad9-907b-60034ee9afae']
      STDOUT: 
      STDERR: 
      

      https://jenkins.mesosphere.com/service/jenkins/job/public-dcos-cluster-ops/job/mesosphere-dcos-cli/job/core/job/integration-tests-linux/1134/
      https://jenkins.mesosphere.com/service/jenkins/job/public-dcos-cluster-ops/job/mesosphere-dcos-cli/job/core/job/integration-tests-mac/799/console

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tomaszjaniszewski Tomasz Janiszewski
                Team:
                ( DO NOT USE ) Cluster Ops Team
                Watchers:
                Tomasz Janiszewski
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: