testing

package
v0.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

tasks unit tests

Index

Constants

View Source
const TaskCreateRequest = `` /* 304-byte string literal not displayed */

TaskCreateRequest represents a request to create a task.

View Source
const TaskCreateResult = `` /* 647-byte string literal not displayed */

TaskCreateResult represents a raw server response to the TaskCreateRequest.

View Source
const TasksGetResult = `` /* 635-byte string literal not displayed */

TasksGetResult represents raw server response from a server to a get call.

View Source
const TasksListResult = `` /* 948-byte string literal not displayed */

TasksListResult represents raw server response from a server to a list call.

Variables

View Source
var Task1 = tasks.Task{
	ID:        "1252f636-1246-4319-bfba-c47cde0efbe0",
	Status:    string(tasks.TaskStatusPending),
	Type:      "import",
	Owner:     "424e7cf0243c468ca61732ba45973b3e",
	CreatedAt: time.Date(2018, 7, 25, 8, 59, 13, 0, time.UTC),
	UpdatedAt: time.Date(2018, 7, 25, 8, 59, 14, 0, time.UTC),
	Self:      "/v2/tasks/1252f636-1246-4319-bfba-c47cde0efbe0",
	Schema:    "/v2/schemas/task",
}

Task1 is an expected representation of a first task from the TasksListResult.

View Source
var Task2 = tasks.Task{
	ID:        "349a51f4-d51d-47b6-82da-4fa516f0ca32",
	Status:    string(tasks.TaskStatusProcessing),
	Type:      "import",
	Owner:     "fb57277ef2f84a0e85b9018ec2dedbf7",
	CreatedAt: time.Date(2018, 7, 25, 8, 56, 17, 0, time.UTC),
	UpdatedAt: time.Date(2018, 7, 25, 8, 56, 19, 0, time.UTC),
	Self:      "/v2/tasks/349a51f4-d51d-47b6-82da-4fa516f0ca32",
	Schema:    "/v2/schemas/task",
}

Task2 is an expected representation of a first task from the TasksListResult.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL