-
Notifications
You must be signed in to change notification settings - Fork 2
RDK-60236 : Remote Debugger Supports UUID Information in Debug Report File #201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
test/functional-tests/features/test_rrd_static_profile_report_with_suffix.feature
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| ########################################################################## | ||
| # If not stated otherwise in this file or this component's LICENSE | ||
| # file the following copyright and licenses apply: | ||
| # | ||
| # Copyright 2018 RDK Management | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| ########################################################################## | ||
|
|
||
| Feature: Remote Debugger Static Profile Report With Suffix | ||
|
|
||
| Scenario: Verify remote debugger process is running | ||
| Given the remote debugger process is not running | ||
| When I start the remote debugger process | ||
| Then the remote debugger process should be running | ||
|
|
||
| Scenario: Send RFC event with valid suffixed issue type | ||
| Given the remote debugger is running | ||
| When I trigger the event "Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.RDKRemoteDebugger.IssueType" with value "Device.Info_ab1bghjh" | ||
| Then the event for RRD_SET_ISSUE_EVENT should be received | ||
| And the logs should contain "SUCCESS: Message sending Done" | ||
| And the logs should be seen with "SUCCESS: Message Reception Done" | ||
| And the remotedebugger request payload should include "MSG=Device.Info_ab1bghjh" | ||
|
|
||
| Scenario: Validate static-profile command execution and upload flow for suffixed issue type | ||
| Given the remotedebugger received the suffixed issue type | ||
| When remotedebugger parses "/etc/rrd/remote_debugger.json" | ||
| Then remotedebugger should execute debug commands for static profile issue "Device.Info" | ||
| And the timestamped runtime service should start successfully | ||
| And the timestamped runtime journalctl collection should succeed | ||
| And the timestamped runtime service should stop successfully | ||
| And remotedebugger should generate upload archive filename for the suffixed issue type | ||
| And remotedebugger should invoke upload with the generated archive | ||
|
|
||
| Scenario: Verify upload result for suffixed issue type report | ||
| When I check the upload status in the logs | ||
| Then the upload script execution should be successful | ||
| And the debug information report upload should be successful |
49 changes: 49 additions & 0 deletions
49
...unctional-tests/features/test_rrd_static_profile_report_with_suffix_negative_case.feature
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| ########################################################################## | ||
| # If not stated otherwise in this file or this component's LICENSE | ||
| # file the following copyright and licenses apply: | ||
| # | ||
| # Copyright 2018 RDK Management | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| ########################################################################## | ||
|
|
||
| Feature: Remote Debugger Static Profile Report With Overlength Suffix | ||
|
|
||
| Scenario: Verify remote debugger process is running | ||
| Given the remote debugger process is not running | ||
| When I start the remote debugger process | ||
| Then the remote debugger process should be running | ||
|
|
||
| Scenario: Send RFC event with overlength suffixed issue type | ||
| Given the remote debugger is running | ||
| When I trigger the event "Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.RDKRemoteDebugger.IssueType" with value "Device.Info_ab1bghjhfhk" | ||
| Then the event for RRD_SET_ISSUE_EVENT should be received | ||
| And the logs should contain "SUCCESS: Message sending Done" | ||
| And the logs should be seen with "SUCCESS: Message Reception Done" | ||
| And the remotedebugger request payload should include "MSG=Device.Info_ab1bghjhfhk" | ||
|
|
||
| Scenario: Validate suffix discard and upload flow for overlength suffix | ||
| Given the remotedebugger received the overlength suffixed issue type | ||
| When remotedebugger parses "/etc/rrd/remote_debugger.json" | ||
| Then remotedebugger should execute debug commands for static profile issue "Device.Info" | ||
| And remotedebugger should log suffix-length discard with configured max length | ||
| And the timestamped runtime service should start successfully | ||
| And the timestamped runtime journalctl collection should succeed | ||
| And the timestamped runtime service should stop successfully | ||
| And remotedebugger should generate archive filename with discarded suffix | ||
| And remotedebugger should invoke upload with the generated archive | ||
|
|
||
| Scenario: Verify upload result for overlength suffix report | ||
| When I check the upload status in the logs | ||
| Then the upload script execution should be successful | ||
| And the debug information report upload should be successful |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.