tests

package
v0.0.0-...-4b058fe Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Code generated with models.txt DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Case

type Case struct {
	Name     string
	DB       map[string]interface{}
	FQFields []string
	FQIDs    []string

	UserID *int `yaml:"user_id"`

	MeetingID  int `yaml:"meeting_id"`
	Permission string

	Payload map[string]interface{}
	Action  string

	IsAllowed *bool    `yaml:"is_allowed"`
	CanSee    []string `yaml:"can_see"` // TODO: fix nil != undefined
	CanNotSee []string `yaml:"can_not_see"`

	Cases []*Case
	// contains filtered or unexported fields
}

Case object for testing.

type DatastoreServer

type DatastoreServer struct {
	TS           *httptest.Server
	RequestCount int
}

DatastoreServer simulates the Datastore-Service. Only the methods required by the permission-service are supported. This is currently only the getMany method.

Has to be created with NewDatastoreServer.

func NewDatastoreServer

func NewDatastoreServer(data map[string]json.RawMessage) *DatastoreServer

NewDatastoreServer creates a new DatastoreServer.

Directories

Path Synopsis
This tool generates the list fields of every collection.
This tool generates the list fields of every collection.

Jump to

Keyboard shortcuts

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