github.com/projecteru2/core@v0.0.0-20240321043226-06bcc1c23f58/store/etcdv3/helper_test.go (about) 1 package etcdv3 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/assert" 7 ) 8 9 func TestParseStatusKey(t *testing.T) { 10 key := "/deploy/appname/entry/node/id" 11 p1, p2, p3, p4 := parseStatusKey(key) 12 assert.Equal(t, p1, "appname") 13 assert.Equal(t, p2, "entry") 14 assert.Equal(t, p3, "node") 15 assert.Equal(t, p4, "id") 16 }