testing

package
v0.29.3-dev3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const CreateRequest = `` /* 639-byte string literal not displayed */
View Source
const CreateResponse = `
{
  "tasks": ["79dc7c30-44d2-4c5c-b5c1-e9a46f6bbf54"]
}
`
View Source
const DeleteResponse = `
{
  "tasks": ["79dc7c30-44d2-4c5c-b5c1-e9a46f6bbf54"]
}
`
View Source
const GetResponse = `` /* 872-byte string literal not displayed */
View Source
const ListResponse = `` /* 341-byte string literal not displayed */
View Source
const ListResponsePagination = `
{
  "count": 2,
  "results": []
}
`
View Source
const UpdateRequest = `
{
  "flavor": {
    "cpu": 4,
    "memory_gib": 8
  },
  "storage": {
    "size_gib": 100
  }
}
`
View Source
const UpdateResponse = `
{
  "tasks": ["79dc7c30-44d2-4c5c-b5c1-e9a46f6bbf54"]
}
`

Variables

View Source
var (
	FirstClusterShort = clusters.PostgresSQLClusterShort{
		ClusterName: "test-cluster-1",
		CreatedAt:   createdTime,
		Status:      clusters.ClusterStatusReady,
		Version:     "15.0",
	}

	SecondClusterShort = clusters.PostgresSQLClusterShort{
		ClusterName: "test-cluster-2",
		CreatedAt:   createdTime,
		Status:      clusters.ClusterStatusPreparing,
		Version:     "14.0",
	}

	FirstClusterDetail = clusters.PostgresSQLCluster{
		ClusterName: "test-cluster-1",
		CreatedAt:   createdTime,
		Status:      clusters.ClusterStatusReady,
		Flavor: clusters.Flavor{
			CPU:       2,
			MemoryGiB: 4,
		},
		Storage: clusters.PGStorageConfiguration{
			SizeGiB: 50,
			Type:    "standard",
		},
		Network: clusters.Network{
			ACL:              []string{"0.0.0.0/0"},
			ConnectionString: "postgres://test-cluster-1.example.com:5432",
			Host:             "test-cluster-1.example.com",
			NetworkType:      "public",
		},
		PGServerConfiguration: clusters.PGServerConfiguration{
			PGConf:  "standard",
			Version: "15.0",
			Pooler: &clusters.Pooler{
				Mode: clusters.PoolerModeSession,
				Type: "pgbouncer",
			},
		},
		HighAvailability: &clusters.HighAvailability{
			ReplicationMode: clusters.HighAvailabilityReplicationModeAsync,
		},
		Databases: []clusters.DatabaseOverview{
			{
				Name:  "testdb",
				Owner: "testuser",
				Size:  1024,
			},
		},
		Users: []clusters.PgUserOverview{
			{
				Name:             "testuser",
				RoleAttributes:   []clusters.RoleAttribute{clusters.RoleAttributeLogin, clusters.RoleAttributeCreateDB},
				IsSecretRevealed: false,
			},
		},
	}

	ExpectedTaskResults = tasks.TaskResults{
		Tasks: []tasks.TaskID{"79dc7c30-44d2-4c5c-b5c1-e9a46f6bbf54"},
	}
)

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