github.com/kyma-project/kyma-environment-broker@v0.0.1/internal/euaccess/whitelisted_globalaccounts_test.go (about) 1 package euaccess 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/assert" 7 "github.com/stretchr/testify/require" 8 ) 9 10 func TestReadWhitelistedGlobalAccountIdsFromFile(t *testing.T) { 11 // given/when 12 d, err := ReadWhitelistedGlobalAccountIdsFromFile("test/eu_access_whitelist.yaml") 13 14 // then 15 require.NoError(t, err) 16 assert.Equal(t, 2, len(d)) 17 assert.Equal(t, struct{}{}, d["whitelisted-global-account-id"]) 18 assert.Equal(t, struct{}{}, d["another-whitelisted-global-account-id"]) 19 }