mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
- Implement multi-org group sync - Implement runtime configuration to change sync behavior - Legacy group sync migrated to new package
18 lines
351 B
Go
18 lines
351 B
Go
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"))
|
|
}
|