assertCannotSeeChannels asserts that the given principal cannot see any of the specified channels.
(t *testing.T, princ Principal, channels ...string)
| 43 | |
| 44 | // assertCannotSeeChannels asserts that the given principal cannot see any of the specified channels. |
| 45 | func requireCannotSeeChannels(t *testing.T, princ Principal, channels ...string) { |
| 46 | for _, channel := range channels { |
| 47 | canSee, err := princ.canSeeChannel(channel) |
| 48 | require.NoError(t, err) |
| 49 | require.False(t, canSee, "Expected %s to NOT be able to see channel %q", princ.Name(), channel) |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | func TestValidateGuestUser(t *testing.T) { |
| 54 | ctx := base.TestCtx(t) |
no test coverage detected