aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unittests
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2021-04-22 13:58:53 -0400
committerJake Hunsaker <jhunsake@redhat.com>2021-04-30 10:24:55 -0400
commitcebe909988b90a6ebf6e596438c5cdb47001ab76 (patch)
tree3753cd8a1f5f2c0374945093bf83e4343a629c62 /tests/unittests
parent25ccc0eab1c1c1cbf32e109be727ffdd79413a70 (diff)
downloadsos-cebe909988b90a6ebf6e596438c5cdb47001ab76.tar.gz
[Plugin] Make command output size limiting obvious
When command output is size limited it should be made obvious that it is not the whole output of the command, beyond the collected output (most likely) starting in the middle of a string. To do this, we add a 'truncated' key to the results dict returned by `sos_get_command_output()`, which is set based on if the `AsyncReader` was filled during command execution. From that, first log if a command was truncated. Second, instead of dropping the collected output in the normal plugin directory, instead drop it into `sos_strings` with a `.tailed` extention to mimic how we handled tailed file collections. Finally, add a symlink from the plugin dir with the original filename that points to the `sos_strings` path. Closes: #1332 Resolves: #2506 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Diffstat (limited to 'tests/unittests')
0 files changed, 0 insertions, 0 deletions