Rename module
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
|
||||
"context"
|
||||
|
||||
"github.uio.no/torjus/apiary/honeypot/ports"
|
||||
"git.t-juice.club/torjus/apiary/honeypot/ports"
|
||||
)
|
||||
|
||||
func TestServer(t *testing.T) {
|
||||
|
@@ -10,12 +10,12 @@ import (
|
||||
|
||||
gossh "golang.org/x/crypto/ssh"
|
||||
|
||||
"github.uio.no/torjus/apiary/config"
|
||||
"git.t-juice.club/torjus/apiary/config"
|
||||
|
||||
"git.t-juice.club/torjus/apiary/honeypot/ssh/store"
|
||||
"git.t-juice.club/torjus/apiary/models"
|
||||
sshlib "github.com/gliderlabs/ssh"
|
||||
"github.com/google/uuid"
|
||||
"github.uio.no/torjus/apiary/honeypot/ssh/store"
|
||||
"github.uio.no/torjus/apiary/models"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
package store
|
||||
|
||||
import "github.uio.no/torjus/apiary/models"
|
||||
import "git.t-juice.club/torjus/apiary/models"
|
||||
|
||||
type CachingStore struct {
|
||||
backend LoginAttemptStore
|
||||
|
@@ -3,7 +3,7 @@ package store_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.uio.no/torjus/apiary/honeypot/ssh/store"
|
||||
"git.t-juice.club/torjus/apiary/honeypot/ssh/store"
|
||||
)
|
||||
|
||||
func TestCacheStore(t *testing.T) {
|
||||
|
@@ -6,7 +6,7 @@ import (
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.uio.no/torjus/apiary/models"
|
||||
"git.t-juice.club/torjus/apiary/models"
|
||||
)
|
||||
|
||||
type MemoryStore struct {
|
||||
|
@@ -3,7 +3,7 @@ package store_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.uio.no/torjus/apiary/honeypot/ssh/store"
|
||||
"git.t-juice.club/torjus/apiary/honeypot/ssh/store"
|
||||
)
|
||||
|
||||
func TestMemoryStore(t *testing.T) {
|
||||
|
@@ -4,8 +4,8 @@ import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"git.t-juice.club/torjus/apiary/models"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.uio.no/torjus/apiary/models"
|
||||
)
|
||||
|
||||
const tickDuration = 5 * time.Second
|
||||
|
@@ -5,8 +5,8 @@ import (
|
||||
"fmt"
|
||||
"net"
|
||||
|
||||
"git.t-juice.club/torjus/apiary/models"
|
||||
_ "github.com/jackc/pgx/v4/stdlib"
|
||||
"github.uio.no/torjus/apiary/models"
|
||||
)
|
||||
|
||||
const DBSchema = `
|
||||
|
@@ -5,7 +5,7 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.uio.no/torjus/apiary/honeypot/ssh/store"
|
||||
"git.t-juice.club/torjus/apiary/honeypot/ssh/store"
|
||||
)
|
||||
|
||||
func TestPostgresStore(t *testing.T) {
|
||||
|
@@ -3,7 +3,7 @@ package store
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"github.uio.no/torjus/apiary/models"
|
||||
"git.t-juice.club/torjus/apiary/models"
|
||||
)
|
||||
|
||||
var ErrStoreUnhealthy = errors.New("store is unhealthy")
|
||||
|
@@ -6,9 +6,9 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"git.t-juice.club/torjus/apiary/honeypot/ssh/store"
|
||||
"git.t-juice.club/torjus/apiary/models"
|
||||
"github.com/google/uuid"
|
||||
"github.uio.no/torjus/apiary/honeypot/ssh/store"
|
||||
"github.uio.no/torjus/apiary/models"
|
||||
)
|
||||
|
||||
func testLoginAttemptStore(s store.LoginAttemptStore, t *testing.T) {
|
||||
|
Reference in New Issue
Block a user