aurora-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Farner (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AURORA-1301) Tests inheriting from AuroraClientCommandTest always pass
Date Thu, 30 Apr 2015 23:03:06 GMT

     [ https://issues.apache.org/jira/browse/AURORA-1301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bill Farner updated AURORA-1301:
--------------------------------
    Story Points: 1

> Tests inheriting from AuroraClientCommandTest always pass
> ---------------------------------------------------------
>
>                 Key: AURORA-1301
>                 URL: https://issues.apache.org/jira/browse/AURORA-1301
>             Project: Aurora
>          Issue Type: Bug
>          Components: Client, Testing
>            Reporter: Bill Farner
>            Assignee: Bill Farner
>            Priority: Critical
>
> The test case below should fail, but it always passes.
> {noformat}
> $ git diff
> diff --git a/src/test/python/apache/aurora/client/cli/test_supdate.py b/src/test/python/apache/aurora/client/cli/test_supdate.py
> index ccbcae6..e76681f 100644
> --- a/src/test/python/apache/aurora/client/cli/test_supdate.py
> +++ b/src/test/python/apache/aurora/client/cli/test_supdate.py
> @@ -111,6 +111,9 @@ class TestStartUpdate(AuroraClientCommandTest):
>      ]
>      self.assert_lock_message(self._fake_context)
>  
> +  def test_always_passes(self):
> +    assert 1 == 0
> +
>    def test_update_cron_job_fails(self):
>      mock_config = self.create_mock_config(is_cron=True)
>      self._fake_context.get_job_config = Mock(return_value=mock_config)
> {noformat}
> {noformat}
> $ ./pants test.pytest --no-fast --options='-v' src/test/python/apache/aurora/client/cli:supdate
| tail -n1
>                SUCCESS
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message