Skip to content

Commit

Permalink
изменил адрес releases с eu на ru
Browse files Browse the repository at this point in the history
  • Loading branch information
ovcharenko-di committed Jan 20, 2023
1 parent df52078 commit fd57c8f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
7 changes: 4 additions & 3 deletions downloader/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@ import (
"bytes"
"encoding/json"
"fmt"
"github.com/khorevaa/logos"
"io"
"net/http"
"net/http/cookiejar"
"strings"
"sync"

"github.com/khorevaa/logos"
)

var releasesURL = "https://releases.1c.eu"
var loginURL = "https://login.1c.eu"
var releasesURL = "https://releases.1c.ru"
var loginURL = "https://login.1c.ru"

var log = logos.New("github.com/v8platform/oneget/downloader").Sugar()

Expand Down
5 changes: 3 additions & 2 deletions downloader/oneDownloader_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package downloader

import (
"github.com/stretchr/testify/assert"
"os"
"reflect"
"regexp"
"testing"

"github.com/stretchr/testify/assert"
)

func Test_filterReleaseFiles(t *testing.T) {
Expand Down Expand Up @@ -186,7 +187,7 @@ func getAuth(t *testing.T) (string, string) {
pwd := os.Getenv("Password")

if login == "" || pwd == "" {
t.Skipf("Параметры авторизации на https://releases.1c.eu не заданы. тест пропускаем")
t.Skipf("Параметры авторизации на https://releases.1c.ru не заданы. тест пропускаем")
}
return login, pwd
}
Expand Down
6 changes: 3 additions & 3 deletions tests/api/1c/login.http
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Возвращает тикет аутентификации пользователя на портале поддержки.
# Возвращенный тикет может быть проверен вызовом операции checkTicket()
# сервиса https://login.1c.ru/api/public/ticket?wsdl или
# https://login.1c.eu/api/public/ticket?wsdl.
# https://login.1c.ru/api/public/ticket?wsdl.
# Получение тикета выполняется в соответствии с настройками
# библиотеки:
# доменная зона серверов (1c.ru или 1c.eu);
# доменная зона серверов (1c.ru или 1c.ru);

### Получение тикета 1С

POST https://login.1c.eu/rest/public/ticket/get
POST https://login.1c.ru/rest/public/ticket/get
Content-Type: application/json

{
Expand Down

0 comments on commit fd57c8f

Please sign in to comment.