revert accidental search&replace fail

This commit is contained in:
simon987
2019-02-16 09:56:44 -05:00
parent 6ca92bc0a7
commit 03153c4d39
20 changed files with 108 additions and 96 deletions

View File

@@ -245,7 +245,7 @@ func TestUpdateProjectConstraintFail(t *testing.T) {
func createProject(req api.CreateProjectRequest) *api.CreateProjectResponse {
r := Post("/projectChange/create", req, nil)
r := Post("/project/create", req, nil)
var resp api.CreateProjectResponse
data, _ := ioutil.ReadAll(r.Body)
@@ -257,7 +257,7 @@ func createProject(req api.CreateProjectRequest) *api.CreateProjectResponse {
func getProject(id int64) (*api.GetProjectResponse, *http.Response) {
r := Get(fmt.Sprintf("/projectChange/get/%d", id), nil)
r := Get(fmt.Sprintf("/project/get/%d", id), nil)
var getResp api.GetProjectResponse
data, _ := ioutil.ReadAll(r.Body)
@@ -269,7 +269,7 @@ func getProject(id int64) (*api.GetProjectResponse, *http.Response) {
func updateProject(request api.UpdateProjectRequest, pid int64) *api.UpdateProjectResponse {
r := Post(fmt.Sprintf("/projectChange/update/%d", pid), request, nil)
r := Post(fmt.Sprintf("/project/update/%d", pid), request, nil)
var resp api.UpdateProjectResponse
data, _ := ioutil.ReadAll(r.Body)

View File

@@ -11,7 +11,7 @@ import (
func TestCreateTaskValid(t *testing.T) {
//Make sure there is always a projectChange for id:1
//Make sure there is always a project for id:1
createProject(api.CreateProjectRequest{
Name: "Some Test name",
Version: "Test Version",
@@ -132,9 +132,9 @@ func TestCreateTaskInvalidRecipe(t *testing.T) {
func TestCreateGetTask(t *testing.T) {
//Make sure there is always a projectChange for id:1
//Make sure there is always a project for id:1
resp := createProject(api.CreateProjectRequest{
Name: "My projectChange",
Name: "My project",
Version: "1.0",
CloneUrl: "http://github.com/test/test",
GitRepo: "myrepo",