fixtures

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2016 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package fixtures contains the responses to the gRpc requests

Index

Constants

This section is empty.

Variables

View Source
var AuthFixture = map[string]*api.RegisteredUser{
	"default": &api.RegisteredUser{ClientCert: "default"},
}

AuthFixture holds the fixture for the Auth route

View Source
var CreateFixture map[string]*api.ErrorCode = map[string]*api.ErrorCode{
	"success": &api.ErrorCode{
		Code: api.ErrorCode_SUCCESS,
	},
	"warning": &api.ErrorCode{
		Code:    api.ErrorCode_WARNING,
		Message: "Some users are not ready yet",
	},
}
View Source
var FetchFixture map[string]*api.Contract = map[string]*api.Contract{
	"01": &api.Contract{
		ErrorCode: &api.ErrorCode{Code: api.ErrorCode_SUCCESS},
		Json:      []byte{0x48, 0x65, 0x6c, 0x6c, 0x6f},
	},
	"02": &api.Contract{
		ErrorCode: &api.ErrorCode{Code: api.ErrorCode_BADAUTH},
	},
	"03": &api.Contract{
		ErrorCode: &api.ErrorCode{Code: api.ErrorCode_INVARG},
	},
}
View Source
var RegisterFixture = map[string]*pb.ErrorCode{
	"dfss@success.io": &pb.ErrorCode{
		Code:    pb.ErrorCode_SUCCESS,
		Message: "SUCCESS",
	},
	"dfss@invarg.io": &pb.ErrorCode{
		Code:    pb.ErrorCode_INVARG,
		Message: "INVARG",
	},
	"dfss@badauth.io": &pb.ErrorCode{
		Code:    pb.ErrorCode_BADAUTH,
		Message: "BADAUTH",
	},
	"dfss@warning.io": &pb.ErrorCode{
		Code:    pb.ErrorCode_WARNING,
		Message: "WARNING",
	},
	"dfss@interr.io": &pb.ErrorCode{
		Code:    pb.ErrorCode_INTERR,
		Message: "INTERR",
	},
	"default": &pb.ErrorCode{
		Code:    pb.ErrorCode_INTERR,
		Message: "INTERR",
	},
}

RegisterFixture holds the fixture for the Register route

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