Skip to content

Commit

Permalink
fix: skip reg.ru tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Nov 3, 2022
1 parent eb7fc66 commit a0ca9a8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions providers/dns/regru/internal/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,19 @@ const (
)

func TestRemoveRecord(t *testing.T) {
// TODO(ldez): remove skip when the reg.ru API will be fixed.
t.Skip("there is a bug with the reg.ru API: INTERNAL_API_ERROR: Внутренняя ошибка, status code: 503")

client := NewClient(officialTestUser, officialTestPassword)

err := client.RemoveTxtRecord("test.ru", "_acme-challenge", "txttxttxt")
require.NoError(t, err)
}

func TestRemoveRecord_errors(t *testing.T) {
// TODO(ldez): remove skip when the reg.ru API will be fixed.
t.Skip("there is a bug with the reg.ru API: INTERNAL_API_ERROR: Внутренняя ошибка, status code: 503")

testCases := []struct {
desc string
domain string
Expand Down Expand Up @@ -60,13 +66,19 @@ func TestRemoveRecord_errors(t *testing.T) {
}

func TestAddTXTRecord(t *testing.T) {
// TODO(ldez): remove skip when the reg.ru API will be fixed.
t.Skip("there is a bug with the reg.ru API: INTERNAL_API_ERROR: Внутренняя ошибка, status code: 503")

client := NewClient(officialTestUser, officialTestPassword)

err := client.AddTXTRecord("test.ru", "_acme-challenge", "txttxttxt")
require.NoError(t, err)
}

func TestAddTXTRecord_errors(t *testing.T) {
// TODO(ldez): remove skip when the reg.ru API will be fixed.
t.Skip("there is a bug with the reg.ru API: INTERNAL_API_ERROR: Внутренняя ошибка, status code: 503")

testCases := []struct {
desc string
domain string
Expand Down

0 comments on commit a0ca9a8

Please sign in to comment.