feat: add regression test

This commit is contained in:
Ludovic Ortega 2023-11-12 21:02:06 +01:00
parent bf3065e726
commit fc2f5ac414
No known key found for this signature in database
GPG Key ID: 87471466EB186A4C

View File

@ -161,6 +161,14 @@ func TestScalewayProvider_NewScalewayProvider(t *testing.T) {
}
}
func TestScalewayProvider_OptionnalConfigFile(t *testing.T) {
_ = os.Setenv(scw.ScwAccessKeyEnv, "SCWXXXXXXXXXXXXXXXXX")
_ = os.Setenv(scw.ScwSecretKeyEnv, "11111111-1111-1111-1111-111111111111")
_, err := NewScalewayProvider(context.TODO(), endpoint.NewDomainFilter([]string{"example.com"}), true)
assert.NoError(t, err)
}
func TestScalewayProvider_AdjustEndpoints(t *testing.T) {
provider := &ScalewayProvider{}