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)
|
||||
- Fixed TCP services that dont use TLS.
|
||||
|
||||
|
|
|
@ -271,9 +271,9 @@
|
|||
notify_after: 2,
|
||||
public: true,
|
||||
use_tls: false,
|
||||
tls_cert: "",
|
||||
tls_cert_key: "",
|
||||
tls_cert_root: "",
|
||||
tls_cert: "",
|
||||
tls_cert_key: "",
|
||||
tls_cert_root: "",
|
||||
},
|
||||
groups: [],
|
||||
}
|
||||
|
@ -284,11 +284,10 @@
|
|||
}
|
||||
},
|
||||
watch: {
|
||||
in_service () {
|
||||
this.service = this.in_service
|
||||
if (this.service.tls_cert) {
|
||||
this.service.use_tls = true
|
||||
}
|
||||
in_service: function(n, o) {
|
||||
if (this.service.tls_cert) {
|
||||
this.service.use_tls = true
|
||||
}
|
||||
}
|
||||
},
|
||||
async mounted () {
|
||||
|
@ -296,8 +295,9 @@
|
|||
const groups = await Api.groups()
|
||||
this.$store.commit('setGroups', groups)
|
||||
}
|
||||
this.service = this.in_service
|
||||
},
|
||||
methods: {
|
||||
methods: {
|
||||
updatePermalink() {
|
||||
const a = 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;'
|
||||
const b = 'aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------'
|
||||
|
|
|
@ -399,10 +399,10 @@ func TestServices(t *testing.T) {
|
|||
item, err := Find(1)
|
||||
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())
|
||||
|
||||
count = item.HitsSince(utils.Now().Add(-180 * time.Second))
|
||||
count = item.HitsSince(utils.Now().Add(-360 * time.Second))
|
||||
assert.Equal(t, 3, count.Count())
|
||||
})
|
||||
|
||||
|
@ -432,7 +432,7 @@ func TestServices(t *testing.T) {
|
|||
item, err := Find(1)
|
||||
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())
|
||||
|
||||
count = item.FailuresSince(utils.Now().Add(-180 * time.Second))
|
||||
|
|
|
@ -1 +1 @@
|
|||
0.90.42
|
||||
0.90.43
|
||||
|
|
Loading…
Reference in New Issue