Add changelog file. Add meta to ns mock for testing
This commit is contained in:
parent
a466f01120
commit
372ea7479b
|
@ -0,0 +1,3 @@
|
|||
```release-note:improvement
|
||||
namespaces: Allow adding custom metadata to namespaces.
|
||||
```
|
|
@ -2246,8 +2246,10 @@ func AllocNetworkStatus() *structs.AllocNetworkStatus {
|
|||
}
|
||||
|
||||
func Namespace() *structs.Namespace {
|
||||
uuid := uuid.Generate()
|
||||
ns := &structs.Namespace{
|
||||
Name: fmt.Sprintf("team-%s", uuid.Generate()),
|
||||
Name: fmt.Sprintf("team-%s", uuid),
|
||||
Meta: map[string]string{"team": uuid},
|
||||
Description: "test namespace",
|
||||
CreateIndex: 100,
|
||||
ModifyIndex: 200,
|
||||
|
|
Loading…
Reference in New Issue