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

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_r120009913
  
    --- 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 --
    
    `'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)

Reply via email to