github.com/kyma-project/kyma-environment-broker@v0.0.1/internal/provider/region_mapping_test.go (about)

     1  package provider
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/assert"
     7  	"github.com/stretchr/testify/require"
     8  )
     9  
    10  func TestReadPlatformRegionMappingFromFile(t *testing.T) {
    11  	// given/when
    12  	d, err := ReadPlatformRegionMappingFromFile("test/regions.yaml")
    13  
    14  	// then
    15  	require.NoError(t, err)
    16  	assert.Equal(t, "europe", d["cf-eu"])
    17  	assert.Equal(t, "us", d["cf-us"])
    18  }