package
0.0.0-20180108144400-194264adc583
Repository: https://github.com/ciao-project/ciao.git
Documentation: pkg.go.dev
# Functions
MakeTestCerts will create test certificate files for all roles that return valid paths from RoleToTestCertPath.
NewSsntpTestClientConnection creates an SsntpTestClient and dials the server.
NewSsntpTestControllerConnection creates an SsntpTestController and dials the server.
ReadyPayload is a helper to craft a mostly fixed ssntp.READY status payload, with parameters to specify the source node uuid and available resources.
RemoveTestCerts will remove test cert files created by MakeTestCerts.
RoleToTestCert returns a string containing the testutil certificate matching the specified ssntp.Role.
RoleToTestCertPath returns a string containing the path to a test ca cert file, a string containing the path to the cert file for the given role.
StartTestServer starts a go routine for based on a testutil.SsntpTestServer configuration with standard ssntp.FrameRorwardRules.
StatsPayload is a factory function for a node STATS ssntp.Command payload for test cases The StatsPayload() factory function returns a payloads.Stat object.
# Constants
AgentIP is a test agent IP address.
AgentUUID is a node UUID for coordinated stop/restart/delete tests.
AssignedIPYaml is a sample PublicIPAssigned ssntp.Event payload for test cases.
AssignIPYaml is a sample AssignPublicIP ssntp.Command payload for test cases.
AttachVolumeFailureYaml is a sample AttachVolumeFailure ssntp.Error payload for test cases.
AttachVolumeYaml is a sample yaml payload for the ssntp Attach Volume command.
BadAttachVolumeYaml is a corrupt yaml payload for the ssntp Attach Volume command.
CiaoAPIPort is the Ciao API port that API services are running on.
CiaoPort is a test port for ciao's api service.
CNCIAddedYaml is a sample ConcentratorInstanceAdded ssntp.Event payload for test cases.
CNCIInstanceData is a sample CNCIInstanceConfig payload for test cases.
CNCIInstanceUUID is a CNCI instance UUID for use in start/stop/restart/delete tests.
CNCIIP is a test CNCI instance IP address.
CNCIMAC is a test CNCI instance MAC address.
CNCINet is a test CNCI network.
CNCIStartYaml is a sample CNCI workload START ssntp.Command payload for test cases.
CNCIUUID is a test CNCI instance UUID.
ComputeNet is a test compute network.
ConfigureYaml is a sample CONFIGURE ssntp.Command payload for test cases.
DeleteFailureYaml is a sample workload DeleteFailure ssntp.Error payload for test cases.
DeleteYaml is a sample workload DELETE ssntp.Command payload for test cases.
DockerImage is a docker image name for use in start/restart tests.
EvacuateYaml is a sample node EVACUATE ssntp.Command payload for test cases.
HTTPSCACert is a path to the CA cert used to sign the HTTPSKey.
HTTPSKey is a path to a key for the compute service.
IdentityPassword is a test password for the test identity server.
IdentityUser is a test user for the test identity server.
InsDelYaml is a sample workload InstanceDeleted ssntp.Event payload for test cases.
InsStopYaml is a sample workload InstanceStopped ssntp.Event payload for test cases.
InstancePrivateIP is a test instance private IP.
InstancePublicIP is a test instance public IP.
InstanceUUID is an instance UUID for use in start/stop/restart/delete tests.
ManagementID is a test identifier for a Ceph ID.
MgmtNet is a test management network.
MigrateYaml is a sample workload DELETE ssntp.Command payload for test cases that indicates that an instance is to be migrated rather than deleted.
NetAgentUUID is a network node UUID for coordinated tests.
NodeConnectedYaml is a sample node NodeConnected ssntp.Event payload for test cases.
NodeOnlyStatsYaml is a sample minimal node STATS ssntp.Command payload for test cases with no per-instance statistics.
PartialReadyYaml is a sample minimal node READY ssntp.Status payload for test cases.
PartialStartYaml is a sample minimal workload START ssntp.Command payload for test cases.
PartialStatsYaml is a sample minimal node STATS ssntp.Command payload for test cases with limited node statistics and no per-instance statistics.
ReadyYaml is a sample node READY ssntp.Status payload for test cases.
ReleaseIPYaml is a sample ReleasePublicIP ssntp.Command payload for test cases.
RestoreYaml is a sample node Restore ssntp.Command payload for test cases.
SchedulerAddr is a test scheduler address.
StartFailureYaml is a sample workload StartFailure ssntp.Error payload for test cases.
StartYaml is a sample workload START ssntp.Command payload for test usage.
StatsYaml is a sample node STATS ssntp.Command payload for test cases.
StopYaml is a sample workload STOP ssntp.Command payload for test cases.
StorageURI is a test storage URI.
SubnetKey is a test tenant subnet key.
TenantAddedYaml is a sample TenantAdded ssntp.Event payload for test cases.
TenantRemovedYaml is a sample TenantRemove ssntp.Event payload for test cases.
TenantSubnet is a test tenant subnet.
TenantUUID is a test tenant UUID.
TestCACert is a snake oil Certificate Authority for test automation.
TestCACertSchedulerMultiHomed is a snake oil SSNTP multihomed scheduler role Certificate Authority for test automation.
TestCertAgent is a snake oil SSNTP Agent role certificate for test automation.
TestCertAgentNetAgent is a snake oil SSNTP AGENT|NETAGENT role certificate for test automation.
TestCertCNCIAgent is a snake oil SSNTP CNCIAgent role certificate for test automation.
TestCertController is a snake oil SSNTP Controller role certificate for test automation.
TestCertNetAgent is a snake oil SSNTP NetAgent role certificate for test automation.
TestCertScheduler is a snake oil SSNTP Scheduler role certificate for test automation.
TestCertServer is a snake oil SSNTP Server role certificate for test automation.
TestCertUnknown is a snake oil SSNTP Unknown role certificate for test automation.
UnassignedIPYaml is a sample PublicIPUnassigned ssntp.Event payload for test cases.
User is a user under which non-privileged ciao processes should run.
VNICMAC is a test instance VNIC MAC address.
VNICUUID is a test instance VNIC UUID.
VolumeUUID is a node UUID for storage tests.
# Variables
CNCIRefreshYaml is a sample ConcentratorInstanceRefresh ssntp.Event payload for test cases.
CNCITunnelID is a gre tunnel ID derived from the tenant UUID.
CNCITunnelIDstr is the string representation of the CNCITunnelID.
ComputeURL is the compute service URL the testutil identity service will use by default.
ComputeUser is the test user/tenant name the testutil identity service will use by default.
IdentityURL is the URL for the testutil identity service.
ImageURL is the image service URL the testutil identity service will use by default.
InstanceStat001 is a sample payloads.InstanceStat.
InstanceStat002 is a sample payloads.InstanceStat.
InstanceStat003 is a sample payloads.InstanceStat.
MultipleComputeNetworks is meant to represent a node with full access to all compute networks in the testutil cluster.
NetworkStat001 is a sample payloads.NetworkStat.
NetworkStat002 is a sample payloads.NetworkStat.
PartialComputeNetworks is meant to represent a node with partial access to compute networks in the testutil cluster.
VolumeURL is the volume service URL the testutil identity service will use by default.
# Structs
Result is a common result structure for tests spanning between controller client, scheduler server, and the various (eg: Agent, NetAgent, CNCIAgent) agent roles.
SsntpTestClient is global state for the testutil SSNTP client worker.
SsntpTestController is global state for the testutil SSNTP controller.
SsntpTestServer is global state for the testutil SSNTP server.