Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resell V2 projects - add more tests #60

Merged
merged 3 commits into from
Apr 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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