|
|
|
|
@ -117,7 +117,7 @@ func TestConfig(t *testing.T) {
|
|
|
|
|
t.Fatalf("Unexpected error in configuration %+v", errs)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tenancy, err := c.ConfigProvider.TenancyOCID()
|
|
|
|
|
tenancy, err := c.configProvider.TenancyOCID()
|
|
|
|
|
if err != nil {
|
|
|
|
|
t.Fatalf("Unexpected error getting tenancy ocid: %v", err)
|
|
|
|
|
}
|
|
|
|
|
@ -136,7 +136,7 @@ func TestConfig(t *testing.T) {
|
|
|
|
|
t.Fatalf("Unexpected error in configuration %+v", errs)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
region, err := c.ConfigProvider.Region()
|
|
|
|
|
region, err := c.configProvider.Region()
|
|
|
|
|
if err != nil {
|
|
|
|
|
t.Fatalf("Unexpected error getting region: %v", err)
|
|
|
|
|
}
|
|
|
|
|
@ -188,7 +188,7 @@ func TestConfig(t *testing.T) {
|
|
|
|
|
t.Fatalf("Unexpected error in configuration %+v", errs)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
user, _ := c.ConfigProvider.UserOCID()
|
|
|
|
|
user, _ := c.configProvider.UserOCID()
|
|
|
|
|
if user != expected {
|
|
|
|
|
t.Errorf("Expected ConfigProvider.UserOCID: %s, got %s", expected, user)
|
|
|
|
|
}
|
|
|
|
|
@ -204,7 +204,7 @@ func TestConfig(t *testing.T) {
|
|
|
|
|
t.Fatalf("Unexpected error in configuration %+v", errs)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tenancy, _ := c.ConfigProvider.TenancyOCID()
|
|
|
|
|
tenancy, _ := c.configProvider.TenancyOCID()
|
|
|
|
|
if tenancy != expected {
|
|
|
|
|
t.Errorf("Expected ConfigProvider.TenancyOCID: %s, got %s", expected, tenancy)
|
|
|
|
|
}
|
|
|
|
|
@ -220,7 +220,7 @@ func TestConfig(t *testing.T) {
|
|
|
|
|
t.Fatalf("Unexpected error in configuration %+v", errs)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
region, _ := c.ConfigProvider.Region()
|
|
|
|
|
region, _ := c.configProvider.Region()
|
|
|
|
|
if region != expected {
|
|
|
|
|
t.Errorf("Expected ConfigProvider.Region: %s, got %s", expected, region)
|
|
|
|
|
}
|
|
|
|
|
@ -236,7 +236,7 @@ func TestConfig(t *testing.T) {
|
|
|
|
|
t.Fatalf("Unexpected error in configuration: %+v", errs)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fingerprint, _ := c.ConfigProvider.KeyFingerprint()
|
|
|
|
|
fingerprint, _ := c.configProvider.KeyFingerprint()
|
|
|
|
|
if fingerprint != expected {
|
|
|
|
|
t.Errorf("Expected ConfigProvider.KeyFingerprint: %s, got %s", expected, fingerprint)
|
|
|
|
|
}
|
|
|
|
|
|