Skip to content

Commit

Permalink
Merge 97bd50b into 8988758
Browse files Browse the repository at this point in the history
  • Loading branch information
ozerovandrei committed Apr 19, 2018
2 parents 8988758 + 97bd50b commit bfdad21
Show file tree
Hide file tree
Showing 5 changed files with 407 additions and 2 deletions.
34 changes: 34 additions & 0 deletions selvpcclient/resell/v2/projects/testing/fixtures.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,3 +255,37 @@ var TestUpdateProjectResponse = &projects.Project{
},
CustomURL: "",
}

// TestManyProjectsInvalidResponseRaw represents a raw invalid response with many projects.
const TestManyProjectsInvalidResponseRaw = `
{
"projects": [
{
"id": 12
}
]
}
`

// TestSingleProjectInvalidResponseRaw represents a raw invalid response with a single project.
const TestSingleProjectInvalidResponseRaw = `
{
"project": {
"id": 12
}
}
`

// TestCreateProjectNoQuotasOptsRaw represents a raw request body without quotas.
const TestCreateProjectNoQuotasOptsRaw = `
{
"project": {
"name": "Project2"
}
}
`

// TestCreateProjectNoQuotasOpts represents project create options without quotas.
var TestCreateProjectNoQuotasOpts = projects.CreateOpts{
Name: "Project2",
}
Loading

0 comments on commit bfdad21

Please sign in to comment.