diff --git a/app/rest/api/rest_test.go b/app/rest/api/rest_test.go index c432ecce..6aaed077 100644 --- a/app/rest/api/rest_test.go +++ b/app/rest/api/rest_test.go @@ -95,8 +95,8 @@ func TestServer_CreateAndGet(t *testing.T) { assert.Nil(t, err) assert.Equal(t, "
test 123 http://radio-t.com
", comment.Text) assert.Equal(t, store.User{Name: "developer one", ID: "dev", - Picture: "https://friends.radio-t.com/resources/images/rt_logo_64.png", - Profile: "https://radio-t.com/info/", Admin: true, Blocked: false, IP: "127.0.0.1"}, + Picture: "/api/v1/avatar/remark.image", + Profile: "https://remark42.com", Admin: true, Blocked: false, IP: "127.0.0.1"}, comment.User) t.Logf("%+v", comment) } @@ -249,9 +249,8 @@ func TestServer_UserInfo(t *testing.T) { user := store.User{} err := json.Unmarshal([]byte(body), &user) assert.Nil(t, err) - assert.Equal(t, store.User{Name: "developer one", ID: "dev", - Picture: "https://friends.radio-t.com/resources/images/rt_logo_64.png", Profile: "https://radio-t.com/info/", - Admin: true, Blocked: false, IP: ""}, user) + assert.Equal(t, store.User{Name: "developer one", ID: "dev", Profile: "https://remark42.com", + Picture: "/api/v1/avatar/remark.image", Admin: true, Blocked: false, IP: ""}, user) } func TestServer_Vote(t *testing.T) { @@ -415,7 +414,6 @@ func prep(t *testing.T) (srv *Rest, port int) { DataService: store.Service{Interface: dataStore, EditDuration: 5 * time.Minute}, Authenticator: auth.Authenticator{ SessionStore: sessions.NewFilesystemStore("/tmp", []byte("blah")), - DevEnabled: true, DevPasswd: "password", Providers: nil, AvatarProxy: &auth.AvatarProxy{StorePath: "/tmp", RoutePath: "/api/v1/avatar"}, diff --git a/app/rest/auth/auth.go b/app/rest/auth/auth.go index 375f0dff..eba41405 100644 --- a/app/rest/auth/auth.go +++ b/app/rest/auth/auth.go @@ -27,6 +27,7 @@ var devUser = store.User{ ID: "dev", Name: "developer one", Profile: "https://remark42.com", + Picture: "/api/v1/avatar/remark.image", Admin: true, }