mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-15 16:36:52 +01:00
Follow the localapi fold on the info API's side
The control socket's fold made Group a value and gave the two 0600 constants one name; the info API's config reader and its tests catch up. - defaultInfoMode goes for ownerOnlyMode; a group is present when its ID is - the config test compares the whole Access with ownerOnly() Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f2a8883563
commit
2f1931dc36
3 files changed
+7
-12
No files matched your search
@@ -159,7 +159,6 @@ func TestInfoAccessFromConfig(t *testing.T) {
|
||||
cfg, err := load(section(" group: " + name + "\n"))
|
||||
require.NoError(t, err)
|
||||
assert.Equal(t, os.FileMode(0660), cfg.Access.Mode)
|
||||
require.NotNil(t, cfg.Access.Group)
|
||||
assert.Equal(t, gid, cfg.Access.Group.ID)
|
||||
|
||||
cfg, err = load(section(" group: " + name + "\n socket_mode: \"0664\"\n"))
|
||||
@@ -172,8 +171,7 @@ func TestInfoAccessFromConfig(t *testing.T) {
|
||||
|
||||
cfg, err = load(section(""))
|
||||
require.NoError(t, err)
|
||||
assert.Equal(t, os.FileMode(0600), cfg.Access.Mode)
|
||||
assert.Nil(t, cfg.Access.Group)
|
||||
assert.Equal(t, ownerOnly(), cfg.Access)
|
||||
}
|
||||
|
||||
// TestRemovingTheGroupHandsTheSocketBack: a reload that drops the group key leaves the
|
||||
|
||||
Reference in new issue
Block a user