mirror of
https://github.com/henrygd/beszel.git
synced 2026-09-21 17:07:47 +02:00
16 lines
363 B
Go
16 lines
363 B
Go
//go:build testing
|
|
|
|
package alerts
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestZfsDiskAlertKeyIsNamespaced(t *testing.T) {
|
|
assert.Equal(t, "zfs:tank", zfsDiskAlertKey("tank"))
|
|
assert.Equal(t, "Usage of storage pool tank", diskAlertDescriptor(zfsDiskAlertKey("tank")))
|
|
assert.Equal(t, "Usage of tank", diskAlertDescriptor("tank"))
|
|
}
|