Rename the output. lbry-id -> wallet-sync-server
This commit is contained in:
parent
4dfacd8826
commit
4843b91ce7
25 changed files with 64 additions and 64 deletions
2
env/env.go
vendored
2
env/env.go
vendored
|
@ -5,7 +5,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"lbryio/lbry-id/auth"
|
"lbryio/wallet-sync-server/auth"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NOTE for users: If you have weird characters in your email address, please
|
// NOTE for users: If you have weird characters in your email address, please
|
||||||
|
|
2
env/env_test.go
vendored
2
env/env_test.go
vendored
|
@ -5,7 +5,7 @@ import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"lbryio/lbry-id/auth"
|
"lbryio/wallet-sync-server/auth"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestAccountVerificationMode(t *testing.T) {
|
func TestAccountVerificationMode(t *testing.T) {
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
||||||
module lbryio/lbry-id
|
module lbryio/wallet-sync-server
|
||||||
|
|
||||||
go 1.17
|
go 1.17
|
||||||
|
|
||||||
|
|
|
@ -8,9 +8,9 @@ import (
|
||||||
|
|
||||||
"github.com/mailgun/mailgun-go/v4"
|
"github.com/mailgun/mailgun-go/v4"
|
||||||
|
|
||||||
"lbryio/lbry-id/auth"
|
"lbryio/wallet-sync-server/auth"
|
||||||
"lbryio/lbry-id/env"
|
"lbryio/wallet-sync-server/env"
|
||||||
"lbryio/lbry-id/server/paths"
|
"lbryio/wallet-sync-server/server/paths"
|
||||||
)
|
)
|
||||||
|
|
||||||
const MAILGUN_DEBUG = false
|
const MAILGUN_DEBUG = false
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"lbryio/lbry-id/auth"
|
"lbryio/wallet-sync-server/auth"
|
||||||
)
|
)
|
||||||
|
|
||||||
type TestEnv struct {
|
type TestEnv struct {
|
||||||
|
|
10
main.go
10
main.go
|
@ -3,11 +3,11 @@ package main
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"lbryio/lbry-id/auth"
|
"lbryio/wallet-sync-server/auth"
|
||||||
"lbryio/lbry-id/env"
|
"lbryio/wallet-sync-server/env"
|
||||||
"lbryio/lbry-id/mail"
|
"lbryio/wallet-sync-server/mail"
|
||||||
"lbryio/lbry-id/server"
|
"lbryio/wallet-sync-server/server"
|
||||||
"lbryio/lbry-id/store"
|
"lbryio/wallet-sync-server/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
func storeInit() (s store.Store) {
|
func storeInit() (s store.Store) {
|
||||||
|
|
|
@ -6,9 +6,9 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"lbryio/lbry-id/auth"
|
"lbryio/wallet-sync-server/auth"
|
||||||
"lbryio/lbry-id/env"
|
"lbryio/wallet-sync-server/env"
|
||||||
"lbryio/lbry-id/store"
|
"lbryio/wallet-sync-server/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
type RegisterRequest struct {
|
type RegisterRequest struct {
|
||||||
|
|
|
@ -10,8 +10,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"lbryio/lbry-id/server/paths"
|
"lbryio/wallet-sync-server/server/paths"
|
||||||
"lbryio/lbry-id/store"
|
"lbryio/wallet-sync-server/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TODO - maybe this test could just be one of the TestServerRegisterAccountVerification tests now
|
// TODO - maybe this test could just be one of the TestServerRegisterAccountVerification tests now
|
||||||
|
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"lbryio/lbry-id/auth"
|
"lbryio/wallet-sync-server/auth"
|
||||||
"lbryio/lbry-id/store"
|
"lbryio/wallet-sync-server/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DeviceId is decided by the device. UserId is decided by the server, and is
|
// DeviceId is decided by the device. UserId is decided by the server, and is
|
||||||
|
|
|
@ -10,9 +10,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"lbryio/lbry-id/auth"
|
"lbryio/wallet-sync-server/auth"
|
||||||
"lbryio/lbry-id/server/paths"
|
"lbryio/wallet-sync-server/server/paths"
|
||||||
"lbryio/lbry-id/store"
|
"lbryio/wallet-sync-server/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestServerAuthHandlerSuccess(t *testing.T) {
|
func TestServerAuthHandlerSuccess(t *testing.T) {
|
||||||
|
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"lbryio/lbry-id/auth"
|
"lbryio/wallet-sync-server/auth"
|
||||||
"lbryio/lbry-id/store"
|
"lbryio/wallet-sync-server/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Thanks to Standard Notes. See:
|
// Thanks to Standard Notes. See:
|
||||||
|
|
|
@ -9,9 +9,9 @@ import (
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"lbryio/lbry-id/auth"
|
"lbryio/wallet-sync-server/auth"
|
||||||
"lbryio/lbry-id/server/paths"
|
"lbryio/wallet-sync-server/server/paths"
|
||||||
"lbryio/lbry-id/store"
|
"lbryio/wallet-sync-server/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestServerGetClientSalt(t *testing.T) {
|
func TestServerGetClientSalt(t *testing.T) {
|
||||||
|
|
|
@ -13,10 +13,10 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"lbryio/lbry-id/auth"
|
"lbryio/wallet-sync-server/auth"
|
||||||
"lbryio/lbry-id/server/paths"
|
"lbryio/wallet-sync-server/server/paths"
|
||||||
"lbryio/lbry-id/store"
|
"lbryio/wallet-sync-server/store"
|
||||||
"lbryio/lbry-id/wallet"
|
"lbryio/wallet-sync-server/wallet"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Whereas sever_test.go stubs out auth store and wallet, these will use the real thing, but test fewer paths.
|
// Whereas sever_test.go stubs out auth store and wallet, these will use the real thing, but test fewer paths.
|
||||||
|
|
|
@ -5,9 +5,9 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"lbryio/lbry-id/auth"
|
"lbryio/wallet-sync-server/auth"
|
||||||
"lbryio/lbry-id/store"
|
"lbryio/wallet-sync-server/store"
|
||||||
"lbryio/lbry-id/wallet"
|
"lbryio/wallet-sync-server/wallet"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ChangePasswordRequest struct {
|
type ChangePasswordRequest struct {
|
||||||
|
|
|
@ -9,10 +9,10 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"lbryio/lbry-id/auth"
|
"lbryio/wallet-sync-server/auth"
|
||||||
"lbryio/lbry-id/server/paths"
|
"lbryio/wallet-sync-server/server/paths"
|
||||||
"lbryio/lbry-id/store"
|
"lbryio/wallet-sync-server/store"
|
||||||
"lbryio/lbry-id/wallet"
|
"lbryio/wallet-sync-server/wallet"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestServerChangePassword(t *testing.T) {
|
func TestServerChangePassword(t *testing.T) {
|
||||||
|
|
|
@ -8,11 +8,11 @@ import (
|
||||||
|
|
||||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||||
|
|
||||||
"lbryio/lbry-id/auth"
|
"lbryio/wallet-sync-server/auth"
|
||||||
"lbryio/lbry-id/env"
|
"lbryio/wallet-sync-server/env"
|
||||||
"lbryio/lbry-id/mail"
|
"lbryio/wallet-sync-server/mail"
|
||||||
"lbryio/lbry-id/server/paths"
|
"lbryio/wallet-sync-server/server/paths"
|
||||||
"lbryio/lbry-id/store"
|
"lbryio/wallet-sync-server/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Server struct {
|
type Server struct {
|
||||||
|
|
|
@ -10,10 +10,10 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"lbryio/lbry-id/auth"
|
"lbryio/wallet-sync-server/auth"
|
||||||
"lbryio/lbry-id/server/paths"
|
"lbryio/wallet-sync-server/server/paths"
|
||||||
"lbryio/lbry-id/store"
|
"lbryio/wallet-sync-server/store"
|
||||||
"lbryio/lbry-id/wallet"
|
"lbryio/wallet-sync-server/wallet"
|
||||||
)
|
)
|
||||||
|
|
||||||
const TestPort = 8090
|
const TestPort = 8090
|
||||||
|
|
|
@ -7,10 +7,10 @@ import (
|
||||||
|
|
||||||
"github.com/prometheus/client_golang/prometheus"
|
"github.com/prometheus/client_golang/prometheus"
|
||||||
|
|
||||||
"lbryio/lbry-id/auth"
|
"lbryio/wallet-sync-server/auth"
|
||||||
"lbryio/lbry-id/metrics"
|
"lbryio/wallet-sync-server/metrics"
|
||||||
"lbryio/lbry-id/store"
|
"lbryio/wallet-sync-server/store"
|
||||||
"lbryio/lbry-id/wallet"
|
"lbryio/wallet-sync-server/wallet"
|
||||||
)
|
)
|
||||||
|
|
||||||
type WalletRequest struct {
|
type WalletRequest struct {
|
||||||
|
|
|
@ -10,10 +10,10 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"lbryio/lbry-id/auth"
|
"lbryio/wallet-sync-server/auth"
|
||||||
"lbryio/lbry-id/server/paths"
|
"lbryio/wallet-sync-server/server/paths"
|
||||||
"lbryio/lbry-id/store"
|
"lbryio/wallet-sync-server/store"
|
||||||
"lbryio/lbry-id/wallet"
|
"lbryio/wallet-sync-server/wallet"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestServerGetWallet(t *testing.T) {
|
func TestServerGetWallet(t *testing.T) {
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
|
|
||||||
"github.com/mattn/go-sqlite3"
|
"github.com/mattn/go-sqlite3"
|
||||||
|
|
||||||
"lbryio/lbry-id/auth"
|
"lbryio/wallet-sync-server/auth"
|
||||||
)
|
)
|
||||||
|
|
||||||
func expectAccountMatch(
|
func expectAccountMatch(
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
|
|
||||||
"github.com/mattn/go-sqlite3"
|
"github.com/mattn/go-sqlite3"
|
||||||
|
|
||||||
"lbryio/lbry-id/auth"
|
"lbryio/wallet-sync-server/auth"
|
||||||
)
|
)
|
||||||
|
|
||||||
func expectTokenExists(t *testing.T, s *Store, expectedToken auth.AuthToken) {
|
func expectTokenExists(t *testing.T, s *Store, expectedToken auth.AuthToken) {
|
||||||
|
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"lbryio/lbry-id/auth"
|
"lbryio/wallet-sync-server/auth"
|
||||||
"lbryio/lbry-id/wallet"
|
"lbryio/wallet-sync-server/wallet"
|
||||||
)
|
)
|
||||||
|
|
||||||
// It involves both wallet and account tables. Should it go in wallet_test.go
|
// It involves both wallet and account tables. Should it go in wallet_test.go
|
||||||
|
|
|
@ -11,8 +11,8 @@ import (
|
||||||
|
|
||||||
"github.com/mattn/go-sqlite3"
|
"github.com/mattn/go-sqlite3"
|
||||||
|
|
||||||
"lbryio/lbry-id/auth"
|
"lbryio/wallet-sync-server/auth"
|
||||||
"lbryio/lbry-id/wallet"
|
"lbryio/wallet-sync-server/wallet"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"lbryio/lbry-id/auth"
|
"lbryio/wallet-sync-server/auth"
|
||||||
)
|
)
|
||||||
|
|
||||||
func StoreTestInit(t *testing.T) (s Store, tmpFile *os.File) {
|
func StoreTestInit(t *testing.T) (s Store, tmpFile *os.File) {
|
||||||
|
|
|
@ -6,8 +6,8 @@ import (
|
||||||
|
|
||||||
"github.com/mattn/go-sqlite3"
|
"github.com/mattn/go-sqlite3"
|
||||||
|
|
||||||
"lbryio/lbry-id/auth"
|
"lbryio/wallet-sync-server/auth"
|
||||||
"lbryio/lbry-id/wallet"
|
"lbryio/wallet-sync-server/wallet"
|
||||||
)
|
)
|
||||||
|
|
||||||
func expectWalletExists(
|
func expectWalletExists(
|
||||||
|
|
Loading…
Reference in a new issue