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

Add ignore_error_codes config arg and update all tables to use IgnoreConfig instead of ShouldIgnoreError in GetConfig closes #494 #495

Merged
merged 6 commits into from
Jun 9, 2022

Conversation

ParthaI
Copy link
Contributor

@ParthaI ParthaI commented Jun 3, 2022

Integration test logs

Logs
Please see the attachments

Example query results

Results
N/A

output.txt
output1.txt

azure_policy_assignment: Integration test fix in variables.tf, and get call fixed with
azure_public_ip: Integration test fix
azure_lb_nat_rule: fixed in integration test
azure_app_service_web_app: Hydrated config
azure_compute_virtual_machine: Hydrated config
azure_mssql_elasticpool: Used same package as parent hydrate use
azure_mysql_flexible_server: added parent hydrate as resource_group because the list call was not working without resource group.
table_azure_public_ip: ListAll API call was not working List is working so changed the API call
table_azure_storage_share_file: Empty check logic was wrong changed it

…onfig instead of ShouldIgnoreError in GetConfig closes #494
@ParthaI ParthaI requested review from LalitLab and bigdatasourav June 3, 2022 07:10
@ParthaI ParthaI self-assigned this Jun 3, 2022
@ParthaI ParthaI marked this pull request as draft June 3, 2022 07:10
@ParthaI ParthaI changed the title dd ignore_error_codes config arg and update all tables to use IgnoreConfig instead of ShouldIgnoreError in GetConfig closes #494 Add ignore_error_codes config arg and update all tables to use IgnoreConfig instead of ShouldIgnoreError in GetConfig closes #494 Jun 3, 2022
azure/errors.go Outdated
"github.com/turbot/steampipe-plugin-sdk/v3/plugin"
)

// isNotFoundError:: function which returns an ErrorPredicate for AWS API calls
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// isNotFoundError:: function which returns an ErrorPredicate for AWS API calls
// isNotFoundError:: function which returns an ErrorPredicate for Azure API calls

@ParthaI ParthaI marked this pull request as ready for review June 7, 2022 18:50

# List of additional Azure error codes to ignore for all queries.
# By default, common not found error codes are ignored and will still be ignored even if this argument is not set.
#ignore_error_codes = ["NoAuthenticationInformation", "InvalidAuthenticationInfo", "AccountIsDisabled", "UnauthorizedOperation", "UnrecognizedClientException", "AuthorizationError", "AuthenticationFailed", "InsufficientAccountPermissions"]
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the same changes are needed in docs/index.md.

Copy link
Contributor

@LalitLab LalitLab left a comment

Choose a reason for hiding this comment

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

Changes look good to be.
Can you please include config/azure.spc changes in docs/index.md file too.

Copy link
Contributor

@LalitLab LalitLab left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@bigdatasourav bigdatasourav left a comment

Choose a reason for hiding this comment

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

LGTM

@misraved misraved merged commit 85d6f37 into main Jun 9, 2022
@misraved misraved deleted the issue-494 branch June 9, 2022 08:20
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.

4 participants