ariatosca-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARIA-199) Service outputs CLI command
Date Sun, 04 Jun 2017 13:32:04 GMT

    [ https://issues.apache.org/jira/browse/ARIA-199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16036271#comment-16036271
] 

ASF GitHub Bot commented on ARIA-199:
-------------------------------------

Github user AviaE commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/146#discussion_r120009173
  
    --- Diff: tests/cli/test_services.py ---
    @@ -174,7 +174,30 @@ def test_delete_available_nodes_error_with_force(self, monkeypatch,
mock_storage
     
     
     class TestServicesOutputs(TestCliBase):
    -    pass
    +
    +    def test_header_string(self, monkeypatch, mock_storage):
    +        monkeypatch.setattr(_Environment, 'model_storage', mock_storage)
    +        self.invoke('services outputs test_s')
    +        assert 'Showing outputs for service test_s...' in self.logger_output_string
    +
    +    def test_outputs_no_outputs(self, monkeypatch, mock_storage):
    +        monkeypatch.setattr(_Environment, 'model_storage', mock_storage)
    +        self.invoke('services outputs service_with_no_outputs')
    +
    +        assert 'No outputs' in self.logger_output_string
    +        assert 'output1' not in self.logger_output_string
    +        assert 'value1' not in self.logger_output_string
    +
    +    def test_outputs_one_output(self, monkeypatch, mock_storage):
    +        monkeypatch.setattr(_Environment, 'model_storage', mock_storage)
    +        s = mock_models.create_service_with_dependencies(include_output=True)
    +        monkeypatch.setattr(mock_storage.service, 'get_by_name', mock.MagicMock(return_value=s))
    +
    +        self.invoke('services outputs test_s')
    +
    +        assert 'output1' in self.logger_output_string
    +        assert 'value1' in self.logger_output_string
    +        assert 'No inputs' not in self.logger_output_string
    --- End diff --
    
    Should be 'no outputs'.


> Service outputs CLI command
> ---------------------------
>
>                 Key: ARIA-199
>                 URL: https://issues.apache.org/jira/browse/ARIA-199
>             Project: AriaTosca
>          Issue Type: Story
>            Reporter: Ran Ziv
>            Assignee: Tal Liron
>
> The {{aria services outputs}} command should evaluate the service's outputs and present
them to the user.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message