mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
chore: support multi-org group sync with runtime configuration (#14578)
- Implement multi-org group sync - Implement runtime configuration to change sync behavior - Legacy group sync migrated to new package
This commit is contained in:
17
coderd/coderdtest/uuids_test.go
Normal file
17
coderd/coderdtest/uuids_test.go
Normal file
@ -0,0 +1,17 @@
|
||||
package coderdtest_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/coder/coder/v2/coderd/coderdtest"
|
||||
)
|
||||
|
||||
func TestDeterministicUUIDGenerator(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
ids := coderdtest.NewDeterministicUUIDGenerator()
|
||||
require.Equal(t, ids.ID("g1"), ids.ID("g1"))
|
||||
require.NotEqual(t, ids.ID("g1"), ids.ID("g2"))
|
||||
}
|
Reference in New Issue
Block a user