@@ -5,14 +5,14 @@ import (
5
5
"github.com/G-Node/gin-valid/internal/config"
6
6
"github.com/G-Node/gin-valid/internal/resources/templates"
7
7
"github.com/gorilla/mux"
8
- "io/ioutil"
8
+ // "io/ioutil"
9
9
"net/http"
10
10
"net/http/httptest"
11
- "net/url"
12
- "os"
13
- "path/filepath"
11
+ // "net/url"
12
+ // "os"
13
+ // "path/filepath"
14
14
"reflect"
15
- "strings"
15
+ // "strings"
16
16
"testing"
17
17
)
18
18
@@ -38,7 +38,7 @@ func TestUserDoLoginFailed(t *testing.T) {
38
38
}
39
39
}
40
40
41
- func TestUserDoLoginOK (t * testing.T ) {
41
+ /* func TestUserDoLoginOK(t *testing.T) {
42
42
tokens, _ := ioutil.TempDir("", "tokens")
43
43
srvcfg := config.Read()
44
44
srvcfg.GINAddresses.WebURL = weburl
@@ -51,9 +51,9 @@ func TestUserDoLoginOK(t *testing.T) {
51
51
if sessionid == "" || err != nil {
52
52
t.Fatalf(`doLogin(username, password) = %q, %v`, sessionid, err)
53
53
}
54
- }
54
+ }*/
55
55
56
- func TestUserLoginPost (t * testing.T ) {
56
+ /* func TestUserLoginPost(t *testing.T) {
57
57
tokens, _ := ioutil.TempDir("", "tokens")
58
58
srvcfg := config.Read()
59
59
srvcfg.GINAddresses.WebURL = weburl
@@ -75,7 +75,7 @@ func TestUserLoginPost(t *testing.T) {
75
75
if status != http.StatusFound {
76
76
t.Fatalf(`LoginPost(w http.ResponseWriter, r *http.Request) status code = %v`, status)
77
77
}
78
- }
78
+ }*/
79
79
80
80
func TestUserLoginGet (t * testing.T ) {
81
81
body := []byte ("{}" )
0 commit comments