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"
|
||||
"strings"
|
||||
|
||||
"lbryio/lbry-id/auth"
|
||||
"lbryio/wallet-sync-server/auth"
|
||||
)
|
||||
|
||||
// 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"
|
||||
"testing"
|
||||
|
||||
"lbryio/lbry-id/auth"
|
||||
"lbryio/wallet-sync-server/auth"
|
||||
)
|
||||
|
||||
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
|
||||
|
||||
|
|
|
@ -8,9 +8,9 @@ import (
|
|||
|
||||
"github.com/mailgun/mailgun-go/v4"
|
||||
|
||||
"lbryio/lbry-id/auth"
|
||||
"lbryio/lbry-id/env"
|
||||
"lbryio/lbry-id/server/paths"
|
||||
"lbryio/wallet-sync-server/auth"
|
||||
"lbryio/wallet-sync-server/env"
|
||||
"lbryio/wallet-sync-server/server/paths"
|
||||
)
|
||||
|
||||
const MAILGUN_DEBUG = false
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"lbryio/lbry-id/auth"
|
||||
"lbryio/wallet-sync-server/auth"
|
||||
)
|
||||
|
||||
type TestEnv struct {
|
||||
|
|
10
main.go
10
main.go
|
@ -3,11 +3,11 @@ package main
|
|||
import (
|
||||
"log"
|
||||
|
||||
"lbryio/lbry-id/auth"
|
||||
"lbryio/lbry-id/env"
|
||||
"lbryio/lbry-id/mail"
|
||||
"lbryio/lbry-id/server"
|
||||
"lbryio/lbry-id/store"
|
||||
"lbryio/wallet-sync-server/auth"
|
||||
"lbryio/wallet-sync-server/env"
|
||||
"lbryio/wallet-sync-server/mail"
|
||||
"lbryio/wallet-sync-server/server"
|
||||
"lbryio/wallet-sync-server/store"
|
||||
)
|
||||
|
||||
func storeInit() (s store.Store) {
|
||||
|
|
|
@ -6,9 +6,9 @@ import (
|
|||
"log"
|
||||
"net/http"
|
||||
|
||||
"lbryio/lbry-id/auth"
|
||||
"lbryio/lbry-id/env"
|
||||
"lbryio/lbry-id/store"
|
||||
"lbryio/wallet-sync-server/auth"
|
||||
"lbryio/wallet-sync-server/env"
|
||||
"lbryio/wallet-sync-server/store"
|
||||
)
|
||||
|
||||
type RegisterRequest struct {
|
||||
|
|
|
@ -10,8 +10,8 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"lbryio/lbry-id/server/paths"
|
||||
"lbryio/lbry-id/store"
|
||||
"lbryio/wallet-sync-server/server/paths"
|
||||
"lbryio/wallet-sync-server/store"
|
||||
)
|
||||
|
||||
// TODO - maybe this test could just be one of the TestServerRegisterAccountVerification tests now
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"fmt"
|
||||
"net/http"
|
||||
|
||||
"lbryio/lbry-id/auth"
|
||||
"lbryio/lbry-id/store"
|
||||
"lbryio/wallet-sync-server/auth"
|
||||
"lbryio/wallet-sync-server/store"
|
||||
)
|
||||
|
||||
// DeviceId is decided by the device. UserId is decided by the server, and is
|
||||
|
|
|
@ -10,9 +10,9 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"lbryio/lbry-id/auth"
|
||||
"lbryio/lbry-id/server/paths"
|
||||
"lbryio/lbry-id/store"
|
||||
"lbryio/wallet-sync-server/auth"
|
||||
"lbryio/wallet-sync-server/server/paths"
|
||||
"lbryio/wallet-sync-server/store"
|
||||
)
|
||||
|
||||
func TestServerAuthHandlerSuccess(t *testing.T) {
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
"fmt"
|
||||
"net/http"
|
||||
|
||||
"lbryio/lbry-id/auth"
|
||||
"lbryio/lbry-id/store"
|
||||
"lbryio/wallet-sync-server/auth"
|
||||
"lbryio/wallet-sync-server/store"
|
||||
)
|
||||
|
||||
// Thanks to Standard Notes. See:
|
||||
|
|
|
@ -9,9 +9,9 @@ import (
|
|||
"net/http/httptest"
|
||||
"testing"
|
||||
|
||||
"lbryio/lbry-id/auth"
|
||||
"lbryio/lbry-id/server/paths"
|
||||
"lbryio/lbry-id/store"
|
||||
"lbryio/wallet-sync-server/auth"
|
||||
"lbryio/wallet-sync-server/server/paths"
|
||||
"lbryio/wallet-sync-server/store"
|
||||
)
|
||||
|
||||
func TestServerGetClientSalt(t *testing.T) {
|
||||
|
|
|
@ -13,10 +13,10 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"lbryio/lbry-id/auth"
|
||||
"lbryio/lbry-id/server/paths"
|
||||
"lbryio/lbry-id/store"
|
||||
"lbryio/lbry-id/wallet"
|
||||
"lbryio/wallet-sync-server/auth"
|
||||
"lbryio/wallet-sync-server/server/paths"
|
||||
"lbryio/wallet-sync-server/store"
|
||||
"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.
|
||||
|
|
|
@ -5,9 +5,9 @@ import (
|
|||
"fmt"
|
||||
"net/http"
|
||||
|
||||
"lbryio/lbry-id/auth"
|
||||
"lbryio/lbry-id/store"
|
||||
"lbryio/lbry-id/wallet"
|
||||
"lbryio/wallet-sync-server/auth"
|
||||
"lbryio/wallet-sync-server/store"
|
||||
"lbryio/wallet-sync-server/wallet"
|
||||
)
|
||||
|
||||
type ChangePasswordRequest struct {
|
||||
|
|
|
@ -9,10 +9,10 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"lbryio/lbry-id/auth"
|
||||
"lbryio/lbry-id/server/paths"
|
||||
"lbryio/lbry-id/store"
|
||||
"lbryio/lbry-id/wallet"
|
||||
"lbryio/wallet-sync-server/auth"
|
||||
"lbryio/wallet-sync-server/server/paths"
|
||||
"lbryio/wallet-sync-server/store"
|
||||
"lbryio/wallet-sync-server/wallet"
|
||||
)
|
||||
|
||||
func TestServerChangePassword(t *testing.T) {
|
||||
|
|
|
@ -8,11 +8,11 @@ import (
|
|||
|
||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||
|
||||
"lbryio/lbry-id/auth"
|
||||
"lbryio/lbry-id/env"
|
||||
"lbryio/lbry-id/mail"
|
||||
"lbryio/lbry-id/server/paths"
|
||||
"lbryio/lbry-id/store"
|
||||
"lbryio/wallet-sync-server/auth"
|
||||
"lbryio/wallet-sync-server/env"
|
||||
"lbryio/wallet-sync-server/mail"
|
||||
"lbryio/wallet-sync-server/server/paths"
|
||||
"lbryio/wallet-sync-server/store"
|
||||
)
|
||||
|
||||
type Server struct {
|
||||
|
|
|
@ -10,10 +10,10 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"lbryio/lbry-id/auth"
|
||||
"lbryio/lbry-id/server/paths"
|
||||
"lbryio/lbry-id/store"
|
||||
"lbryio/lbry-id/wallet"
|
||||
"lbryio/wallet-sync-server/auth"
|
||||
"lbryio/wallet-sync-server/server/paths"
|
||||
"lbryio/wallet-sync-server/store"
|
||||
"lbryio/wallet-sync-server/wallet"
|
||||
)
|
||||
|
||||
const TestPort = 8090
|
||||
|
|
|
@ -7,10 +7,10 @@ import (
|
|||
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
|
||||
"lbryio/lbry-id/auth"
|
||||
"lbryio/lbry-id/metrics"
|
||||
"lbryio/lbry-id/store"
|
||||
"lbryio/lbry-id/wallet"
|
||||
"lbryio/wallet-sync-server/auth"
|
||||
"lbryio/wallet-sync-server/metrics"
|
||||
"lbryio/wallet-sync-server/store"
|
||||
"lbryio/wallet-sync-server/wallet"
|
||||
)
|
||||
|
||||
type WalletRequest struct {
|
||||
|
|
|
@ -10,10 +10,10 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"lbryio/lbry-id/auth"
|
||||
"lbryio/lbry-id/server/paths"
|
||||
"lbryio/lbry-id/store"
|
||||
"lbryio/lbry-id/wallet"
|
||||
"lbryio/wallet-sync-server/auth"
|
||||
"lbryio/wallet-sync-server/server/paths"
|
||||
"lbryio/wallet-sync-server/store"
|
||||
"lbryio/wallet-sync-server/wallet"
|
||||
)
|
||||
|
||||
func TestServerGetWallet(t *testing.T) {
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
|
||||
"github.com/mattn/go-sqlite3"
|
||||
|
||||
"lbryio/lbry-id/auth"
|
||||
"lbryio/wallet-sync-server/auth"
|
||||
)
|
||||
|
||||
func expectAccountMatch(
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
|
||||
"github.com/mattn/go-sqlite3"
|
||||
|
||||
"lbryio/lbry-id/auth"
|
||||
"lbryio/wallet-sync-server/auth"
|
||||
)
|
||||
|
||||
func expectTokenExists(t *testing.T, s *Store, expectedToken auth.AuthToken) {
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"lbryio/lbry-id/auth"
|
||||
"lbryio/lbry-id/wallet"
|
||||
"lbryio/wallet-sync-server/auth"
|
||||
"lbryio/wallet-sync-server/wallet"
|
||||
)
|
||||
|
||||
// It involves both wallet and account tables. Should it go in wallet_test.go
|
||||
|
|
|
@ -11,8 +11,8 @@ import (
|
|||
|
||||
"github.com/mattn/go-sqlite3"
|
||||
|
||||
"lbryio/lbry-id/auth"
|
||||
"lbryio/lbry-id/wallet"
|
||||
"lbryio/wallet-sync-server/auth"
|
||||
"lbryio/wallet-sync-server/wallet"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"lbryio/lbry-id/auth"
|
||||
"lbryio/wallet-sync-server/auth"
|
||||
)
|
||||
|
||||
func StoreTestInit(t *testing.T) (s Store, tmpFile *os.File) {
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
|
||||
"github.com/mattn/go-sqlite3"
|
||||
|
||||
"lbryio/lbry-id/auth"
|
||||
"lbryio/lbry-id/wallet"
|
||||
"lbryio/wallet-sync-server/auth"
|
||||
"lbryio/wallet-sync-server/wallet"
|
||||
)
|
||||
|
||||
func expectWalletExists(
|
||||
|
|
Loading…
Reference in a new issue