Fix error message for invalid trace
Some of the reasons printed for invalid trace are specific to Ceilometer. Ceilometer driver already prints authentication failure message. Also, end-users shouldn't be concerned about configuring Ceilometer. Updating the error message so that it is generic enough for all backends. Change-Id: Id44cdacaf423852458ebef6fb4e5d142ee9ee8b4
This commit is contained in:
@@ -165,12 +165,8 @@ class ShellTestCase(test.TestCase):
|
||||
def test_trace_show_trace_id_not_found(self, notifications, mock_get):
|
||||
mock_get.return_value = notifications
|
||||
|
||||
msg = ("Trace with UUID %s not found. There are 3 possible reasons: \n"
|
||||
" 1) You are using not admin credentials\n"
|
||||
" 2) You specified wrong trace id\n"
|
||||
" 3) You specified wrong HMAC Key in original calling\n"
|
||||
" 4) Ceilometer didn't enable profiler notification topic"
|
||||
% self.TRACE_ID)
|
||||
msg = ("Trace with UUID %s not found. Please check the HMAC key "
|
||||
"used in the command." % self.TRACE_ID)
|
||||
|
||||
self._test_with_command_error(self._trace_show_cmd(), msg)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user