Skip to content

Commit 2da2c3b

Browse files
authored
Merge pull request kubernetes#87132 from yuxiaobo96/k8s-removeTODO
remove TODO in test/e2e/framework/providers/gce/ingress.go
2 parents fc92222 + cb07680 commit 2da2c3b

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
@@ -228,7 +228,7 @@ var _ = SIGDescribe("Loadbalancing: L7", func() {
228228
framework.Failf("unexpected backend service, expected none, got: %v", gceController.ListGlobalBackendServices())
229229
}
230230
// Controller does not have a list command for firewall rule. We use get instead.
231-
if fw, err := gceController.GetFirewallRuleOrError(); err == nil {
231+
if fw, err := gceController.GetFirewallRule(); err == nil {
232232
framework.Failf("unexpected nil error in getting firewall rule, expected firewall NotFound, got firewall: %v", fw)
233233
}
234234

0 commit comments

Comments
 (0)