Skip to content
This repository was archived by the owner on May 24, 2021. It is now read-only.

Commit 0f87500

Browse files
committed
remove temp firewall files
1 parent 560c4ab commit 0f87500

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

tests/clusterip/main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ func main() {
144144
fmt.Println(err)
145145
os.Exit(1)
146146
}
147-
fmt.Println("%s", string(out))
147+
fmt.Printf("%s", string(out))
148+
os.Remove(fwInitialState)
149+
os.Remove(fwAfterEndpointCreated)
148150

149151
// START: Pod
150152
NameContainer := "kpnginx"

tests/externalname/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ func main() {
139139
os.Exit(1)
140140
}
141141
fmt.Printf("%s", string(out))
142+
os.Remove(fwInitialState)
143+
os.Remove(fwAfterEndpointCreated)
142144

143145
// START: Execute curl from the pod created to the new service
144146
output, err := curl.ExecuteHTTPReqInsideContainer(

tests/nodeport/main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ func main() {
124124
fmt.Println(err)
125125
os.Exit(1)
126126
}
127-
fmt.Println("%s", string(out))
127+
fmt.Printf("%s", string(out))
128+
os.Remove(fwInitialState)
129+
os.Remove(fwAfterEndpointCreated)
128130

129131
// START: Pod
130132

0 commit comments

Comments
 (0)