Skip to content
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

feat: New parser for systemd_perms #3339

Merged
merged 8 commits into from
Mar 4, 2022
Merged

feat: New parser for systemd_perms #3339

merged 8 commits into from
Mar 4, 2022

Conversation

TZ3070
Copy link
Contributor

@TZ3070 TZ3070 commented Feb 16, 2022

Signed-off-by: Xinting Li [email protected]

All Pull Requests:

Check all that apply:

  • Have you followed the guidelines in our Contributing document, including the instructions about commit messages?
  • Is this PR to correct an issue?
  • Is this PR an enhancement?

Complete Description of Additions/Changes:

Add your description here

@TZ3070
Copy link
Contributor Author

TZ3070 commented Feb 21, 2022

@xiangce Please have a review.

Copy link
Contributor

@xiangce xiangce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TZ3070 - These two parsers are in fact Ls like parsers, would you please rename them (includes the filename) with a prefix Ls like others, e.g.

@parser(Specs.ls_sys_firmware)
class LsSysFirmware(CommandParser, FileListing):

Copy link
Contributor

@xiangce xiangce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TZ3070 - Please check my new comments below

And 1) since this is a new parser file, please add doc entry for it in the docs/shared_parsers_catalog/ dir, so that its online document can be generated automatically. 2), for newly added specs parsers, please raise an MR to the insights-core-assets repo at first to make sure they can be added to the uploader.json.


Parsers included in this module are:

SystemdPerms - command ``/bin/ls -lanRL /etc/systemd``
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be modified too.

SystemdPerms - command ``/bin/ls -lanRL /etc/systemd``
--------------------------------------------------------------

UsrLibSystemdPerms - command ``/bin/ls -lanRL /usr/lib/systemd``
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same comment as above



@parser(Specs.ls_etc_systemd)
class LsEtcSystemdPermsParser(CommandParser, FileListing):
Copy link
Contributor

@xiangce xiangce Feb 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How above removing the part of PermsParser?

insights/parsers/ls_systemd.py Outdated Show resolved Hide resolved
Xinting Li added 3 commits February 22, 2022 11:30
Signed-off-by: Xinting Li <[email protected]>
Signed-off-by: Xinting Li <[email protected]>
Signed-off-by: Xinting Li <[email protected]>
Signed-off-by: Xinting Li <[email protected]>
Copy link
Contributor

@xiangce xiangce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending the approval of Specs.

@xiangce xiangce merged commit 92d671e into RedHatInsights:master Mar 4, 2022
xiangce pushed a commit that referenced this pull request Mar 4, 2022
* feat: New parser for systemd_perms

Signed-off-by: Xinting Li <[email protected]>

* fix: fix ETC_SYSTEMD in test_systemd_perms.py

Signed-off-by: Xinting Li <[email protected]>

* fix: Fix file name and class name

Signed-off-by: Xinting Li <[email protected]>

* fix: add doc entry

Signed-off-by: Xinting Li <[email protected]>

* fix: update insights_archive

Signed-off-by: Xinting Li <[email protected]>

* fix: fix docs-test error

Signed-off-by: Xinting Li <[email protected]>

* fix: fix length of '-'

Signed-off-by: Xinting Li <[email protected]>

* fix: Updating test_etc_systemd() in test_ls_systemd.py

Signed-off-by: Xinting Li <[email protected]>

Co-authored-by: Xinting Li <[email protected]>
(cherry picked from commit 92d671e)
xiangce pushed a commit that referenced this pull request Sep 6, 2024
* feat: New parser for systemd_perms

Signed-off-by: Xinting Li <[email protected]>

* fix: fix ETC_SYSTEMD in test_systemd_perms.py

Signed-off-by: Xinting Li <[email protected]>

* fix: Fix file name and class name

Signed-off-by: Xinting Li <[email protected]>

* fix: add doc entry

Signed-off-by: Xinting Li <[email protected]>

* fix: update insights_archive

Signed-off-by: Xinting Li <[email protected]>

* fix: fix docs-test error

Signed-off-by: Xinting Li <[email protected]>

* fix: fix length of '-'

Signed-off-by: Xinting Li <[email protected]>

* fix: Updating test_etc_systemd() in test_ls_systemd.py

Signed-off-by: Xinting Li <[email protected]>

Co-authored-by: Xinting Li <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants