Commit db3d8512 authored by Caro Axel's avatar Caro Axel

Unifomrizing imports

parent 3ee03370
Pipeline #2311 passed with stage
......@@ -7,12 +7,13 @@ import (
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"dfss/auth"
"dfss/dfssc/common"
"encoding/base64"
"fmt"
"io"
"strings"
"dfss/auth"
"dfss/dfssc/common"
)
// GetCertificate return the Certificate stored on the disk
......
......@@ -3,10 +3,10 @@ package security
import (
"crypto/rsa"
"dfss/auth"
"dfss/dfssc/common"
"fmt"
"dfss/auth"
"dfss/dfssc/common"
"github.com/spf13/viper"
)
......
package security
import (
"dfss/dfssc/common"
"fmt"
"os"
"path/filepath"
"testing"
"dfss/dfssc/common"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
)
......
......@@ -10,7 +10,6 @@ import (
"dfss/auth"
"dfss/mockp/server"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
)
......
package user
import (
"errors"
"io/ioutil"
"regexp"
"time"
"github.com/spf13/viper"
"dfss/dfssc/common"
"dfss/dfssc/security"
pb "dfss/dfssp/api"
"dfss/net"
"errors"
"github.com/spf13/viper"
"golang.org/x/net/context"
"google.golang.org/grpc"
)
......
package user
import (
"dfss/dfssc/common"
"fmt"
"os"
"testing"
"dfss/dfssc/common"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
)
......
......@@ -6,7 +6,6 @@ import (
"dfss/dfssc/security"
pb "dfss/dfssp/api"
"dfss/net"
"github.com/spf13/viper"
)
......
package user
import (
"dfss/auth"
"dfss/dfssc/common"
"dfss/dfssc/security"
"encoding/json"
"fmt"
"dfss/auth"
"dfss/dfssc/common"
"dfss/dfssc/security"
"github.com/spf13/viper"
)
......
package user
import (
"dfss/dfssc/common"
"dfss/dfssc/security"
"fmt"
"os"
"path/filepath"
"testing"
"dfss/dfssc/common"
"dfss/dfssc/security"
"github.com/stretchr/testify/assert"
)
......
package user
import (
"dfss/auth"
"dfss/dfssc/common"
"dfss/dfssc/security"
"dfss/mockp/server"
"fmt"
"os"
"path/filepath"
"testing"
"time"
"dfss/auth"
"dfss/dfssc/common"
"dfss/dfssc/security"
"dfss/mockp/server"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
)
......
......@@ -3,11 +3,10 @@ package user
import (
"errors"
"golang.org/x/net/context"
"google.golang.org/grpc"
pb "dfss/dfssp/api"
"dfss/net"
"golang.org/x/net/context"
"google.golang.org/grpc"
)
// Unregister a user from the platform
......
......@@ -8,9 +8,8 @@ import (
"os"
"path/filepath"
"github.com/spf13/viper"
"dfss/auth"
"github.com/spf13/viper"
)
// PlatformID contains platform private key and root certificate
......
......@@ -11,7 +11,6 @@ import (
"dfss/dfssp/server"
"dfss/mgdb"
"dfss/net"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
"gopkg.in/mgo.v2/bson"
......
package contract_test
import (
"testing"
"dfss/dfssp/contract"
"github.com/stretchr/testify/assert"
"testing"
)
var refSeq = []uint32{0, 1, 2, 0, 1, 2, 0, 1, 2} // for n = 3
......
......@@ -2,9 +2,9 @@
package entities
import (
"dfss/mgdb"
"time"
"dfss/mgdb"
"gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"
)
......
package entities
import (
"dfss/mgdb"
"time"
"dfss/mgdb"
"gopkg.in/mgo.v2/bson"
)
......
package user_test
import (
"dfss/dfssp/api"
"testing"
"time"
"dfss/dfssp/api"
"dfss/dfssp/entities"
"github.com/stretchr/testify/assert"
"golang.org/x/net/context"
......
package user_test
import (
"dfss/dfssp/api"
"testing"
"time"
"dfss/dfssp/api"
"dfss/dfssp/entities"
"github.com/stretchr/testify/assert"
"golang.org/x/net/context"
......
......@@ -4,7 +4,6 @@ package entities
import (
cAPI "dfss/dfssc/api"
"dfss/mgdb"
"gopkg.in/mgo.v2/bson"
)
......
package entities
import (
"crypto/sha512"
"fmt"
"os"
"testing"
"crypto/sha512"
cAPI "dfss/dfssc/api"
"dfss/mgdb"
"github.com/stretchr/testify/assert"
......
......@@ -2,9 +2,9 @@ package entities
import (
"bytes"
"crypto/sha512"
"errors"
"crypto/sha512"
"dfss/auth"
cAPI "dfss/dfssc/api"
pAPI "dfss/dfssp/api"
......
package resolve
import (
"crypto/sha512"
"fmt"
"os"
"testing"
"crypto/sha512"
cAPI "dfss/dfssc/api"
"dfss/dfsst/entities"
"dfss/mgdb"
......
......@@ -10,12 +10,10 @@ import (
"path/filepath"
"testing"
"github.com/spf13/viper"
"dfss/auth"
"dfss/dfsst/entities"
"dfss/mgdb"
"github.com/spf13/viper"
"gopkg.in/mgo.v2/bson"
)
......
......@@ -7,7 +7,6 @@ import (
"dfss/dfssc/user"
"dfss/gui/common"
"dfss/gui/config"
"github.com/spf13/viper"
"github.com/visualfc/goqt/ui"
)
......
......@@ -2,9 +2,10 @@ package mgdb
import (
"fmt"
"gopkg.in/mgo.v2/bson"
"os"
"testing"
"gopkg.in/mgo.v2/bson"
)
type card struct {
......
package fixtures
import (
pb "dfss/dfssp/api"
"dfss/dfssp/api"
)
// AuthFixture holds the fixture for the Auth route
var AuthFixture = map[string]*pb.RegisteredUser{
"default": &pb.RegisteredUser{ClientCert: "default"},
var AuthFixture = map[string]*api.RegisteredUser{
"default": &api.RegisteredUser{ClientCert: "default"},
}
......@@ -9,7 +9,6 @@ import (
"dfss/dfssp/api"
"dfss/mockp/fixtures"
"dfss/net"
"golang.org/x/net/context"
"google.golang.org/grpc"
)
......
package tests
import (
"dfss/dfssc/common"
"io/ioutil"
"os"
"os/exec"
......@@ -9,6 +8,7 @@ import (
"strings"
"testing"
"dfss/dfssc/common"
"github.com/stretchr/testify/assert"
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment