diff --git a/testdata/ingress_alb/expected.cf b/testdata/ingress_alb/expected.cf index 7e9378df..47a5d004 100644 --- a/testdata/ingress_alb/expected.cf +++ b/testdata/ingress_alb/expected.cf @@ -216,4 +216,4 @@ } } } -} \ No newline at end of file +} diff --git a/testdata/ingress_alb/ing.yaml b/testdata/ingress_alb/ing.yaml index 6b35d8ca..18e2bc8f 100644 --- a/testdata/ingress_alb/ing.yaml +++ b/testdata/ingress_alb/ing.yaml @@ -13,4 +13,4 @@ spec: port: name: main-port path: / - pathType: ImplementationSpecific \ No newline at end of file + pathType: ImplementationSpecific diff --git a/testdata/ingress_nlb/ing.yaml b/testdata/ingress_nlb/ing.yaml index 21b2e452..1f21110d 100644 --- a/testdata/ingress_nlb/ing.yaml +++ b/testdata/ingress_nlb/ing.yaml @@ -15,4 +15,4 @@ spec: port: name: main-port path: / - pathType: ImplementationSpecific \ No newline at end of file + pathType: ImplementationSpecific diff --git a/testdata/ingress_rg_notshared_alb/expected.cf b/testdata/ingress_rg_notshared_alb/expected.cf index 7e9378df..47a5d004 100644 --- a/testdata/ingress_rg_notshared_alb/expected.cf +++ b/testdata/ingress_rg_notshared_alb/expected.cf @@ -216,4 +216,4 @@ } } } -} \ No newline at end of file +} diff --git a/testdata/ingress_rg_notshared_alb/ing.yaml b/testdata/ingress_rg_notshared_alb/ing.yaml index 6b35d8ca..18e2bc8f 100644 --- a/testdata/ingress_rg_notshared_alb/ing.yaml +++ b/testdata/ingress_rg_notshared_alb/ing.yaml @@ -13,4 +13,4 @@ spec: port: name: main-port path: / - pathType: ImplementationSpecific \ No newline at end of file + pathType: ImplementationSpecific diff --git a/testdata/ingress_rg_shared_alb/expected.cf b/testdata/ingress_rg_shared_alb/expected.cf index 7e9378df..47a5d004 100644 --- a/testdata/ingress_rg_shared_alb/expected.cf +++ b/testdata/ingress_rg_shared_alb/expected.cf @@ -216,4 +216,4 @@ } } } -} \ No newline at end of file +} diff --git a/testdata/ingress_rg_shared_alb/ing.yaml b/testdata/ingress_rg_shared_alb/ing.yaml index 6b35d8ca..18e2bc8f 100644 --- a/testdata/ingress_rg_shared_alb/ing.yaml +++ b/testdata/ingress_rg_shared_alb/ing.yaml @@ -13,4 +13,4 @@ spec: port: name: main-port path: / - pathType: ImplementationSpecific \ No newline at end of file + pathType: ImplementationSpecific diff --git a/testdata/ingress_rg_shared_nlb/expected.cf b/testdata/ingress_rg_shared_nlb/expected.cf index ac57a010..687f7e2b 100644 --- a/testdata/ingress_rg_shared_nlb/expected.cf +++ b/testdata/ingress_rg_shared_nlb/expected.cf @@ -184,4 +184,4 @@ } } } -} \ No newline at end of file +} diff --git a/testdata/ingress_rg_shared_nlb/ing.yaml b/testdata/ingress_rg_shared_nlb/ing.yaml index 6b35d8ca..18e2bc8f 100644 --- a/testdata/ingress_rg_shared_nlb/ing.yaml +++ b/testdata/ingress_rg_shared_nlb/ing.yaml @@ -13,4 +13,4 @@ spec: port: name: main-port path: / - pathType: ImplementationSpecific \ No newline at end of file + pathType: ImplementationSpecific diff --git a/testdata/rg_alb/expected.cf b/testdata/rg_alb/expected.cf index 7e9378df..47a5d004 100644 --- a/testdata/rg_alb/expected.cf +++ b/testdata/rg_alb/expected.cf @@ -216,4 +216,4 @@ } } } -} \ No newline at end of file +} diff --git a/testdata/rg_nlb/expected.cf b/testdata/rg_nlb/expected.cf index ac57a010..687f7e2b 100644 --- a/testdata/rg_nlb/expected.cf +++ b/testdata/rg_nlb/expected.cf @@ -184,4 +184,4 @@ } } } -} \ No newline at end of file +} diff --git a/worker_test.go b/worker_test.go index 9586e2be..61bf5111 100644 --- a/worker_test.go +++ b/worker_test.go @@ -12,6 +12,7 @@ import ( "net/http/httptest" "os" "reflect" + "strings" "sync" "testing" "time" @@ -598,7 +599,7 @@ func TestResourceConversion(tt *testing.T) { assert.Equal( t, - expected, + strings.TrimSuffix(expected, "\n"), clientCF.GetLastGeneratedTemplate(), ) })