Details

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

      Description

      https://github.com/dcos/dcos-core-cli/pull/383

      ================================== FAILURES ===================================
      _________________ test_uninstall_cli_only_when_no_apps_remain _________________
      
          def test_uninstall_cli_only_when_no_apps_remain():
              with util.temptext(b'\{"name": "/hello1"}') as opts_hello1, \
                      util.temptext(b'\{"name": "/hello2"}') as opts_hello2:
                  stderr = (
                      b'This is a Community service. '
                      b'Community services are not tested '
                      b'for production environments. '
                      b'There may be bugs, incomplete features, '
                      b'incorrect documentation, or other discrepancies.\n'
                      b'By Deploying, you agree to the Terms '
                      b'and Conditions [https://mesosphere.com/]'
                      b'catalog-terms-conditions/#community-services\n'
                      b'A sample pre-installation message\n'
                      b'Installing Marathon app for package [helloworld] version '
                      b'[0.1.0]\n'
                      b'Installing CLI subcommand for package [helloworld] '
                      b'version [0.1.0]\n'
                      b'New commands available: http\n'
                      b'A sample post-installation message\n'
                  )
          
                  uninstall_stderr = (
                      b'Uninstalled package [helloworld] version [0.1.0]\n'
                  )
                  with _package(name='helloworld',
                                args=['--yes', '--options='+opts_hello1[1]],
                                stderr=stderr,
                                uninstall_app_id='/hello1',
                                uninstall_stderr=uninstall_stderr):
          
                      with _package(name='helloworld',
                                    args=['--yes', '--options='+opts_hello2[1]],
                                    stderr=stderr,
                                    uninstall_app_id='/hello2',
                                    uninstall_stderr=uninstall_stderr):
          
      >                   subcommand.command_executables('http')
      
      tests\integrations\test_package.py:302: 
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
      
      subcommand = 'http'
      
          def command_executables(subcommand):
              """List the real path to executable dcos program for specified subcommand.
          
              :param subcommand: name of subcommand. E.g. marathon
              :type subcommand: str
              :returns: the dcos program path
              :rtype: str
              """
          
              executables = []
              if subcommand in default_subcommands():
                  executables += [default_list_paths()]
          
              executables += [
                  command_path
                  for command_path in list_paths()
                  if noun(command_path) == subcommand
              ]
          
              if len(executables) > 1:
                  msg = 'Found more than one executable for command \{!r}. \{!r}'
                  raise DCOSException(msg.format(subcommand, executables))
          
              if len(executables) == 0:
                  msg = "\{!r} is not a dcos command."
      >           raise DCOSException(msg.format(subcommand))
      E           dcos.errors.DCOSException: 'http' is not a dcos command.
      
      ..\dcos\dcos\subcommand.py:49: DCOSException
      

        Attachments

          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: