mirror of https://github.com/statping/statping
patch
parent
bfd173d7d7
commit
ad03ef545d
|
@ -1,3 +1,6 @@
|
||||||
|
# 0.90.43 (05-21-2020)
|
||||||
|
- Fixed service form loading
|
||||||
|
|
||||||
# 0.90.42 (05-20-2020)
|
# 0.90.42 (05-20-2020)
|
||||||
- Fixed TCP services that dont use TLS.
|
- Fixed TCP services that dont use TLS.
|
||||||
|
|
||||||
|
|
|
@ -284,8 +284,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
in_service () {
|
in_service: function(n, o) {
|
||||||
this.service = this.in_service
|
|
||||||
if (this.service.tls_cert) {
|
if (this.service.tls_cert) {
|
||||||
this.service.use_tls = true
|
this.service.use_tls = true
|
||||||
}
|
}
|
||||||
|
@ -296,6 +295,7 @@
|
||||||
const groups = await Api.groups()
|
const groups = await Api.groups()
|
||||||
this.$store.commit('setGroups', groups)
|
this.$store.commit('setGroups', groups)
|
||||||
}
|
}
|
||||||
|
this.service = this.in_service
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
updatePermalink() {
|
updatePermalink() {
|
||||||
|
|
|
@ -399,10 +399,10 @@ func TestServices(t *testing.T) {
|
||||||
item, err := Find(1)
|
item, err := Find(1)
|
||||||
require.Nil(t, err)
|
require.Nil(t, err)
|
||||||
|
|
||||||
count := item.HitsSince(utils.Now().Add(-30 * time.Second))
|
count := item.HitsSince(utils.Now().Add(-60 * time.Second))
|
||||||
assert.Equal(t, 1, count.Count())
|
assert.Equal(t, 1, count.Count())
|
||||||
|
|
||||||
count = item.HitsSince(utils.Now().Add(-180 * time.Second))
|
count = item.HitsSince(utils.Now().Add(-360 * time.Second))
|
||||||
assert.Equal(t, 3, count.Count())
|
assert.Equal(t, 3, count.Count())
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -432,7 +432,7 @@ func TestServices(t *testing.T) {
|
||||||
item, err := Find(1)
|
item, err := Find(1)
|
||||||
require.Nil(t, err)
|
require.Nil(t, err)
|
||||||
|
|
||||||
count := item.FailuresSince(utils.Now().Add(-6 * time.Second))
|
count := item.FailuresSince(utils.Now().Add(-30 * time.Second))
|
||||||
assert.Equal(t, 1, count.Count())
|
assert.Equal(t, 1, count.Count())
|
||||||
|
|
||||||
count = item.FailuresSince(utils.Now().Add(-180 * time.Second))
|
count = item.FailuresSince(utils.Now().Add(-180 * time.Second))
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
0.90.42
|
0.90.43
|
||||||
|
|
Loading…
Reference in New Issue