Skip to content

Commit cd2d9b3

Browse files
committed
Update test to use a newer version
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
1 parent 434d923 commit cd2d9b3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cmd/create_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ import (
99
)
1010

1111
func Test_MakeHTTPSUserdata_OneDomain(t *testing.T) {
12-
got := MakeHTTPSUserdata("token", "0.9.25", "contact@example.com", "prod", []string{"example.com"})
12+
got := MakeHTTPSUserdata("token", "0.9.40", "contact@example.com", "prod", []string{"example.com"})
1313

1414
os.WriteFile("/tmp/t.txt", []byte(got), 0600)
1515
want := `#!/bin/bash
1616
export AUTHTOKEN="token"
1717
export IP=$(curl -sfSL https://checkip.amazonaws.com)
1818
19-
curl -SLsf https://github.com/inlets/inlets-pro/releases/download/0.9.25/inlets-pro -o /tmp/inlets-pro && \
19+
curl -SLsf https://github.com/inlets/inlets-pro/releases/download/0.9.40/inlets-pro -o /tmp/inlets-pro && \
2020
chmod +x /tmp/inlets-pro && \
2121
mv /tmp/inlets-pro /usr/local/bin/inlets-pro
2222
23-
curl -SLsf https://github.com/inlets/inlets-pro/releases/download/0.9.25/inlets-pro-http.service -o inlets-pro.service && \
23+
curl -SLsf https://github.com/inlets/inlets-pro/releases/download/0.9.40/inlets-pro-http.service -o inlets-pro.service && \
2424
mv inlets-pro.service /etc/systemd/system/inlets-pro.service && \
2525
echo "AUTHTOKEN=$AUTHTOKEN" >> /etc/default/inlets-pro && \
2626
echo "IP=$IP" >> /etc/default/inlets-pro && \
@@ -37,19 +37,19 @@ curl -SLsf https://github.com/inlets/inlets-pro/releases/download/0.9.25/inlets-
3737
}
3838

3939
func Test_MakeHTTPSUserdata_TwoDomains(t *testing.T) {
40-
got := MakeHTTPSUserdata("token", "0.9.25", "contact@example.com", "prod",
40+
got := MakeHTTPSUserdata("token", "0.9.40", "contact@example.com", "prod",
4141
[]string{"a.example.com", "b.example.com"})
4242

4343
os.WriteFile("/tmp/t.txt", []byte(got), 0600)
4444
want := `#!/bin/bash
4545
export AUTHTOKEN="token"
4646
export IP=$(curl -sfSL https://checkip.amazonaws.com)
4747
48-
curl -SLsf https://github.com/inlets/inlets-pro/releases/download/0.9.25/inlets-pro -o /tmp/inlets-pro && \
48+
curl -SLsf https://github.com/inlets/inlets-pro/releases/download/0.9.40/inlets-pro -o /tmp/inlets-pro && \
4949
chmod +x /tmp/inlets-pro && \
5050
mv /tmp/inlets-pro /usr/local/bin/inlets-pro
5151
52-
curl -SLsf https://github.com/inlets/inlets-pro/releases/download/0.9.25/inlets-pro-http.service -o inlets-pro.service && \
52+
curl -SLsf https://github.com/inlets/inlets-pro/releases/download/0.9.40/inlets-pro-http.service -o inlets-pro.service && \
5353
mv inlets-pro.service /etc/systemd/system/inlets-pro.service && \
5454
echo "AUTHTOKEN=$AUTHTOKEN" >> /etc/default/inlets-pro && \
5555
echo "IP=$IP" >> /etc/default/inlets-pro && \

0 commit comments

Comments
 (0)