Documentation
¶
Index ¶
- Constants
- func Base64EncodeString(input string) []byte
- func CheckAPIAvailability(ctx context.Context, endpoint string, interval time.Duration) error
- func IsComplete(status api.BatchStatus) bool
- func KnownEnvironmentVariables() []api.EnvironmentVariable
- func ListExpectedOutputFiles(realMetrics bool) []string
- func Ptr[T any](v T) *T
- func UploadFile(ctx context.Context, uploader *manager.Uploader, filename string, ...)
- type AgentTestSuite
- func (s *AgentTestSuite) CreateAndAwaitBatch(buildID uuid.UUID, experiences []uuid.UUID, sharedMemoryMb int, isDocker bool, ...) api.Batch
- func (s *AgentTestSuite) CreateBuild(imageURI string) uuid.UUID
- func (s *AgentTestSuite) CreateLocalTestExperiences(containerTimeout *int32)
- func (s *AgentTestSuite) CreateMetricsBuild()
- func (s *AgentTestSuite) CreateS3TestExperience()
- func (s *AgentTestSuite) CreateTestBranch()
- func (s *AgentTestSuite) CreateTestProject()
- func (s *AgentTestSuite) CreateTestSystem()
- func (s *AgentTestSuite) GenerateAndUploadExperienceData(ctx context.Context, experienceName string) []string
Constants ¶
View Source
const ( // A pair of constants used for creating actual experience data for test experiences ExpectedExperienceNameFile string = "experience_name.txt" ExpectedExperienceNameBase64File string = "experience_name.base64" ExpectedExperienceNameOutputFile string = "ExperienceName.zip" // The subdirectory for the ExperienceNameFile ExpectedExperienceNameSubdir string = "ExperienceName" ExperienceBuildURI string = "909785973729.dkr.ecr.us-east-1.amazonaws.com/rerun-end-to-end-test-experience-build:latest" MetricsBuildURI string = "909785973729.dkr.ecr.us-east-1.amazonaws.com/rerun-end-to-end-test-metrics-build:latest" // Output File Names TestMCAPFile string = "test.mcap" TestMP4File string = "test.mp4" TestReRunFile string = "test.rrd" TestEmissionsFile string = "emissions.resim.jsonl" ApiCheckTimeout = 10 * time.Minute ApiCheckInterval = 10 * time.Second APIHostKey = "api-host" AuthHostKey = "auth-host" LocalImageKey = "local-image" PoolLabelsKey = "pool-labels" UsernameKey = "username" PasswordKey = "password" AgentNameKey = "name" ExperienceBucketKey = "experience-bucket" EnvPrefix = "AGENT_TEST" LogLevelKey = "log-level" Audience = "https://api.resim.ai" )
View Source
const TestProfile string = "mcb"
Variables ¶
This section is empty.
Functions ¶
func Base64EncodeString ¶
func CheckAPIAvailability ¶
func IsComplete ¶ added in v1.0.0
func IsComplete(status api.BatchStatus) bool
func KnownEnvironmentVariables ¶ added in v0.6.0
func KnownEnvironmentVariables() []api.EnvironmentVariable
func ListExpectedOutputFiles ¶
Types ¶
type AgentTestSuite ¶
type AgentTestSuite struct {
suite.Suite
ExperienceBucket string
APIClient *api.ClientWithResponses
AuthHost string
APIHost string
ProjectID uuid.UUID
SystemID uuid.UUID
BranchID uuid.UUID
BuildIDS3 uuid.UUID
BuildIDLocal uuid.UUID
MetricsBuildID uuid.UUID
S3Experiences []uuid.UUID
LocalExperiences []uuid.UUID
PoolLabels api.PoolLabels
}
func NewAgentTestSuiteWithAPIClient ¶
func NewAgentTestSuiteWithAPIClient( username, password, tokenURL, apiHost, authHost, experienceBucket, poolLabel string, ) (*AgentTestSuite, error)
func (*AgentTestSuite) CreateAndAwaitBatch ¶ added in v1.0.0
func (*AgentTestSuite) CreateBuild ¶ added in v1.0.0
func (s *AgentTestSuite) CreateBuild(imageURI string) uuid.UUID
func (*AgentTestSuite) CreateLocalTestExperiences ¶ added in v1.0.0
func (s *AgentTestSuite) CreateLocalTestExperiences(containerTimeout *int32)
func (*AgentTestSuite) CreateMetricsBuild ¶ added in v1.0.0
func (s *AgentTestSuite) CreateMetricsBuild()
func (*AgentTestSuite) CreateS3TestExperience ¶ added in v1.0.0
func (s *AgentTestSuite) CreateS3TestExperience()
func (*AgentTestSuite) CreateTestBranch ¶ added in v1.0.0
func (s *AgentTestSuite) CreateTestBranch()
func (*AgentTestSuite) CreateTestProject ¶ added in v1.0.0
func (s *AgentTestSuite) CreateTestProject()
func (*AgentTestSuite) CreateTestSystem ¶ added in v1.0.0
func (s *AgentTestSuite) CreateTestSystem()
func (*AgentTestSuite) GenerateAndUploadExperienceData ¶ added in v1.0.0
func (s *AgentTestSuite) GenerateAndUploadExperienceData(ctx context.Context, experienceName string) []string
Generates some experience data and uploads it to some s3 paths
Click to show internal directories.
Click to hide internal directories.