Skip to content

Commit

Permalink
Add endlines to make git happy and TrimSuffix to make tests happy
Browse files Browse the repository at this point in the history
Signed-off-by: Mustafa Abdelrahman <[email protected]>
  • Loading branch information
MustafaSaber committed Jun 14, 2023
1 parent 837dc16 commit 3ad2824
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion testdata/ingress_alb/expected.cf
Original file line number Diff line number Diff line change
Expand Up @@ -216,4 +216,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion testdata/ingress_alb/ing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ spec:
port:
name: main-port
path: /
pathType: ImplementationSpecific
pathType: ImplementationSpecific
2 changes: 1 addition & 1 deletion testdata/ingress_nlb/ing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ spec:
port:
name: main-port
path: /
pathType: ImplementationSpecific
pathType: ImplementationSpecific
2 changes: 1 addition & 1 deletion testdata/ingress_rg_notshared_alb/expected.cf
Original file line number Diff line number Diff line change
Expand Up @@ -216,4 +216,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion testdata/ingress_rg_notshared_alb/ing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ spec:
port:
name: main-port
path: /
pathType: ImplementationSpecific
pathType: ImplementationSpecific
2 changes: 1 addition & 1 deletion testdata/ingress_rg_shared_alb/expected.cf
Original file line number Diff line number Diff line change
Expand Up @@ -216,4 +216,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion testdata/ingress_rg_shared_alb/ing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ spec:
port:
name: main-port
path: /
pathType: ImplementationSpecific
pathType: ImplementationSpecific
2 changes: 1 addition & 1 deletion testdata/ingress_rg_shared_nlb/expected.cf
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion testdata/ingress_rg_shared_nlb/ing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ spec:
port:
name: main-port
path: /
pathType: ImplementationSpecific
pathType: ImplementationSpecific
2 changes: 1 addition & 1 deletion testdata/rg_alb/expected.cf
Original file line number Diff line number Diff line change
Expand Up @@ -216,4 +216,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion testdata/rg_nlb/expected.cf
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,4 @@
}
}
}
}
}
3 changes: 2 additions & 1 deletion worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"net/http/httptest"
"os"
"reflect"
"strings"
"sync"
"testing"
"time"
Expand Down Expand Up @@ -598,7 +599,7 @@ func TestResourceConversion(tt *testing.T) {

assert.Equal(
t,
expected,
strings.TrimSuffix(expected, "\n"),
clientCF.GetLastGeneratedTemplate(),
)
})
Expand Down

0 comments on commit 3ad2824

Please sign in to comment.