suite

package
v0.0.0-...-3bfe646 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package suite contains a package service acceptance test suite that is backend implementation independent each storage will use the suite to test itself

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareAsSets

func CompareAsSets(c *C, expected, actual []string)

Types

type PackageSuite

type PackageSuite struct {
	S pack.PackageService
	O blob.Objects
	U users.Users
	C *timetools.FreezedTime
}

PackageSuite contains acceptance tests for package services

func (*PackageSuite) DeleteRepository

func (s *PackageSuite) DeleteRepository(c *C)

DeleteRepository makes sure that when repository is deleted, all its package blobs are also deleted

func (*PackageSuite) PackagesCRUD

func (s *PackageSuite) PackagesCRUD(c *C)

PackagesCRUD checks basic packages tests

func (*PackageSuite) RepositoriesCRUD

func (s *PackageSuite) RepositoriesCRUD(c *C)

RepositoriesCRUD tests repositories Create, Read, Update operations

func (*PackageSuite) UpsertPackages

func (s *PackageSuite) UpsertPackages(c *C)

UpsertPackages tests upsert flow

Jump to

Keyboard shortcuts

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