mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-24 16:17:11 +08:00
Implements RFD #7 https://github.com/gravitational/teleport/blob/master/rfd/0007-rbac-oss.md OSS users can use roles. Some FedRamp related role options are limited to enterprise. All users are migrated to a new role "ossuser". This role is a limited access role downgrading all users from OSS role "admin". All trusted clusters are mapped to "ossuser" as well. Github connector maps teams to generated roles. For transition period, format `tctl users add alice` works alongside with `tctl users add alice --roles=admin`, but prints a warning.
29 lines
793 B
Go
29 lines
793 B
Go
/*
|
|
Copyright 2017-2021 Gravitational, Inc.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
package modules
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestOSSModules(t *testing.T) {
|
|
require.False(t, GetModules().IsBoringBinary())
|
|
require.Equal(t, BuildOSS, GetModules().BuildType())
|
|
}
|