provideractions

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package provideractions contains fixtures shared by the provider-actions E2E suite. The fake speaks only the small Databricks REST surface used by the Connection, Warehouse, Table, and TableQuery reconcilers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeDatabricks

type FakeDatabricks struct {
	Server *httptest.Server

	Statements []StatementRequest
	// contains filtered or unexported fields
}

FakeDatabricks is a deterministic, self-signed HTTPS Databricks workspace. It returns a fixed schema for DESCRIBE TABLE and fixed rows for SELECT.

func NewFakeDatabricks

func NewFakeDatabricks() *FakeDatabricks

NewFakeDatabricks starts the loopback HTTPS fixture. The server certificate is intentionally self-signed; the provider must opt into its explicit development loopback transport for requests to succeed.

func (*FakeDatabricks) Close

func (f *FakeDatabricks) Close()

Close shuts down the fake HTTPS server.

func (*FakeDatabricks) LastSelect

func (f *FakeDatabricks) LastSelect() (StatementRequest, bool)

LastSelect returns the most recent SELECT request, or false when none has been received. Validation DESCRIBE requests are intentionally skipped.

func (*FakeDatabricks) Requests

func (f *FakeDatabricks) Requests() []StatementRequest

Requests returns a snapshot of all statement requests received so far.

func (*FakeDatabricks) URL

func (f *FakeDatabricks) URL() string

URL returns the fake workspace root URL.

type FakeInfrastructureAttestor

type FakeInfrastructureAttestor struct {
	Server *httptest.Server
	// contains filtered or unexported fields
}

FakeInfrastructureAttestor is a deterministic Infrastructure virtual workspace. It accepts exactly one bootstrap bearer and returns a stable provider-owned review identity; all other bearers fail closed.

func NewFakeInfrastructureAttestor

func NewFakeInfrastructureAttestor(bootstrap string) *FakeInfrastructureAttestor

func (*FakeInfrastructureAttestor) Close

func (f *FakeInfrastructureAttestor) Close()

func (*FakeInfrastructureAttestor) Requests

func (*FakeInfrastructureAttestor) URL

type StatementRequest

type StatementRequest struct {
	Statement     string
	WarehouseID   string
	Authorization string
}

StatementRequest is one SQL statement submitted to the fake upstream. Authorization is retained only for test assertions; callers should never serialize this structure into generated-app input or output.

type WorkloadReviewRequest

type WorkloadReviewRequest struct {
	TenantPath  string `json:"tenantPath"`
	Project     string `json:"project"`
	ProjectUID  string `json:"projectUID"`
	Environment string `json:"environment"`
	Instance    string `json:"instance"`
}

WorkloadReviewRequest is the identity tuple forwarded by the hub to the Infrastructure virtual workspace. Keeping a snapshot makes the E2E able to prove that the exchange used the exact Project scope rather than a provider URL or caller-supplied resource selector.

Jump to

Keyboard shortcuts

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