(t *testing.T)
| 249 | } |
| 250 | |
| 251 | func TestAuthenticationNone(t *testing.T) { |
| 252 | resp, err := http.Get(config.Current.ServerUrl + "/jobs") |
| 253 | assert.NoError(t, err) |
| 254 | assert.Equal(t, resp.StatusCode, 400) |
| 255 | } |
| 256 | |
| 257 | func TestAuthenticationWrong(t *testing.T) { |
| 258 | req, err := http.NewRequest("GET", config.Current.ServerUrl+"/jobs", nil) |