region_test.go 345 B

1234567891011121314151617
  1. package oracle
  2. import (
  3. "testing"
  4. "github.com/oracle/oci-go-sdk/v65/common"
  5. "github.com/stretchr/testify/assert"
  6. )
  7. func TestRegionValidation(t *testing.T) {
  8. for _, r := range oracleRegions() {
  9. // Use the OCI SDK to validate static regions.
  10. region := common.StringToRegion(r)
  11. _, err := region.RealmID()
  12. assert.NoError(t, err)
  13. }
  14. }