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 GetFirewall method #138

Merged
merged 1 commit into from
Apr 13, 2020
Merged

add GetFirewall method #138

merged 1 commit into from
Apr 13, 2020

Conversation

0xch4z
Copy link
Contributor

@0xch4z 0xch4z commented Apr 12, 2020

No description provided.

@0xch4z 0xch4z requested a review from phillc April 12, 2020 00:46
@0xch4z 0xch4z force-pushed the feat/get-firewall branch 2 times, most recently from 84ab503 to bfee9f3 Compare April 12, 2020 00:55
@@ -18,7 +18,7 @@ type NetworkAddresses struct {

// A FirewallRule is a whitelist of ports, protocols, and addresses for which traffic should be allowed.
type FirewallRule struct {
Ports string `json:"ports"`
Ports string `json:"ports,omitempty"`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is important, as with ICMP, ports is invalid if present in the request.

@@ -19,7 +20,7 @@ var (
func TestListFirewalls(t *testing.T) {
client, _, teardown, err := setupFirewall(t, []firewallModifier{
func(createOpts *linodego.FirewallCreateOptions) {
createOpts.Label = randString(12, lowerBytes, digits) + "-linodego-testing"
createOpts.Label = randString(12, lowerBytes, upperBytes) + "-linodego-testing"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

A Firewall's label cannot begin with a number, rerunning this threw an error because of it.

@0xch4z 0xch4z merged commit 160c09e into linode:master Apr 13, 2020
lgarber-akamai pushed a commit to lgarber-akamai/linodego that referenced this pull request Feb 13, 2023
lgarber-akamai pushed a commit to lgarber-akamai/linodego that referenced this pull request Feb 13, 2023
lgarber-akamai pushed a commit to lgarber-akamai/linodego that referenced this pull request Feb 14, 2023
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