mirror of https://github.com/statping/statping
version up, is today a tuesday?
parent
6860210926
commit
8ac6fff7bf
|
@ -1,3 +1,6 @@
|
||||||
|
# 0.90.36 (05-02-2020)
|
||||||
|
- Fixed Notifier golang templating func to use correct variables
|
||||||
|
|
||||||
# 0.90.35 (05-01-2020)
|
# 0.90.35 (05-01-2020)
|
||||||
- Fixed issue with API endpoints cannot accepting Authorization header
|
- Fixed issue with API endpoints cannot accepting Authorization header
|
||||||
- Fixed issue with sass executable not being found, SASS environment var re-implemented
|
- Fixed issue with sass executable not being found, SASS environment var re-implemented
|
||||||
|
|
|
@ -12,5 +12,5 @@ func TestReplaceTemplate(t *testing.T) {
|
||||||
|
|
||||||
temp = `{"id":{{.Service.Id}},"name":"{{.Service.Name}}","downtime":"{{.Service.DowntimeAgo}}","failure":"{{.Failure.Issue}}"}`
|
temp = `{"id":{{.Service.Id}},"name":"{{.Service.Name}}","downtime":"{{.Service.DowntimeAgo}}","failure":"{{.Failure.Issue}}"}`
|
||||||
replaced = ReplaceTemplate(temp, replacer{Service: exampleService, Failure: exampleFailure})
|
replaced = ReplaceTemplate(temp, replacer{Service: exampleService, Failure: exampleFailure})
|
||||||
assert.Equal(t, `{"id":1,"name":"Statping","failure":"HTTP returned a 500 status code"} want {"id":1,"name":"Statping","downtime":"15 seconds ago","failure":"HTTP returned a 500 status code"}`, replaced)
|
assert.Equal(t, `{"id":1,"name":"Statping","downtime":"15 seconds ago","failure":"HTTP returned a 500 status code"}`, replaced)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
0.90.35
|
0.90.36
|
||||||
|
|
Loading…
Reference in New Issue