Skip to content

Commit cb07680

Browse files
committed
remove TODO in test/e2e/framework/providers/gce/ingress.go
Signed-off-by: yuxiaobo <[email protected]>
1 parent 36e40fb commit cb07680

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

test/e2e/framework/providers/gce/ingress.go

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -571,19 +571,8 @@ func (cont *IngressController) GetFirewallRuleName() string {
571571
}
572572

573573
// GetFirewallRule returns the firewall used by the IngressController.
574-
// Causes a fatal error incase of an error.
575-
// TODO: Rename this to GetFirewallRuleOrDie and similarly rename all other
576-
// methods here to be consistent with rest of the code in this repo.
577-
func (cont *IngressController) GetFirewallRule() *compute.Firewall {
578-
fw, err := cont.GetFirewallRuleOrError()
579-
framework.ExpectNoError(err)
580-
return fw
581-
}
582-
583-
// GetFirewallRuleOrError returns the firewall used by the IngressController.
584574
// Returns an error if that fails.
585-
// TODO: Rename this to GetFirewallRule when the above method with that name is renamed.
586-
func (cont *IngressController) GetFirewallRuleOrError() (*compute.Firewall, error) {
575+
func (cont *IngressController) GetFirewallRule() (*compute.Firewall, error) {
587576
gceCloud := cont.Cloud.Provider.(*Provider).gceCloud
588577
fwName := cont.GetFirewallRuleName()
589578
return gceCloud.GetFirewall(fwName)

test/e2e/network/ingress.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ var _ = SIGDescribe("Loadbalancing: L7", func() {
227227
framework.Failf("unexpected backend service, expected none, got: %v", gceController.ListGlobalBackendServices())
228228
}
229229
// Controller does not have a list command for firewall rule. We use get instead.
230-
if fw, err := gceController.GetFirewallRuleOrError(); err == nil {
230+
if fw, err := gceController.GetFirewallRule(); err == nil {
231231
framework.Failf("unexpected nil error in getting firewall rule, expected firewall NotFound, got firewall: %v", fw)
232232
}
233233

0 commit comments

Comments
 (0)