Skip to content

Conversation

@rogeriobastos
Copy link

This PR add 3 new action:

  • create_zone_access_rule - create a firewall access rule for a zone
  • delete_zone_access_rule- delete a firewall access rule from a zone
  • get_zone_access_rule - list/search firewall access rule in a zone

Also, it adjusts lib/actions.py to allow do POST requests.

@arm4b arm4b requested a review from a team March 22, 2022 12:28
@arm4b
Copy link
Member

arm4b commented Mar 22, 2022

@StackStorm-Exchange/encoretechnologies Can you folks please help reviewing the contribution?

Copy link

@bishopbm1 bishopbm1 left a comment

Choose a reason for hiding this comment

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

Thank you for the PR! Just needs some unit tests and please add to the ChangeLog and bump the version in the pack.yaml file.

# invoke the Cloudflare APIo
raw_results = func(*args, params=copy.deepcopy(params))
# invoke the Cloudflare API
if func.__name__ == 'post':

Choose a reason for hiding this comment

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

Would like to see 2 tests to show the different conditions are being executed as expected. https://github.com/StackStorm-Exchange/stackstorm-cloudflare/blob/master/tests/test_action_base.py

Copy link
Author

Choose a reason for hiding this comment

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

Sorry for the delay, I was on vacation. I'll look at this soon.

@CLAassistant
Copy link

CLAassistant commented May 11, 2022

CLA assistant check
All committers have signed the CLA.

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