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

update resource type to map[string]bool #992

Merged
merged 2 commits into from
Aug 20, 2021

Conversation

patilpankaj212
Copy link
Contributor

  1. changed resource type in metadata json from string to map[string]bool and made related changes in resource type filter specification.
  2. marked a few e2e tests pending.

pending - add more items in resource types of a metadata json if applicable.

@codecov
Copy link

codecov bot commented Aug 16, 2021

Codecov Report

Merging #992 (8e59f38) into master (5c6a2c1) will decrease coverage by 0.11%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #992      +/-   ##
==========================================
- Coverage   78.58%   78.46%   -0.12%     
==========================================
  Files         224      224              
  Lines        5659     5657       -2     
==========================================
- Hits         4447     4439       -8     
- Misses        932      939       +7     
+ Partials      280      279       -1     
Impacted Files Coverage Δ
pkg/filters/filter-specs.go 87.09% <100.00%> (-0.79%) ⬇️
pkg/utils/policy.go 60.00% <0.00%> (-10.00%) ⬇️
pkg/policy/opa/engine.go 56.25% <0.00%> (-1.79%) ⬇️

harkirat22
harkirat22 previously approved these changes Aug 19, 2021
Copy link
Contributor

@harkirat22 harkirat22 left a comment

Choose a reason for hiding this comment

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

LGTM (Checked policies part)

Rchanger
Rchanger previously approved these changes Aug 19, 2021
Copy link
Contributor

@Rchanger Rchanger left a comment

Choose a reason for hiding this comment

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

LGTM (checked go code part)

Copy link
Contributor

@cesar-rodriguez cesar-rodriguez left a comment

Choose a reason for hiding this comment

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

Can you please fix merge conflicts?

@sonarcloud
Copy link

sonarcloud bot commented Aug 19, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@cesar-rodriguez cesar-rodriguez merged commit 3e8d964 into tenable:master Aug 20, 2021
cesar-rodriguez added a commit that referenced this pull request Aug 20, 2021
patilpankaj212 pushed a commit that referenced this pull request Aug 20, 2021
@patilpankaj212 patilpankaj212 deleted the update_resource_type branch May 5, 2022 11:37
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.

Update resource_type in metadata json from string to map<string>bool and accordingly modify pre scan filter
4 participants