# Functions

cdToRoot change to the repo root directory.
CreateSimpleInstance creates a basic v1alpha1.Instance object named 'instanceName'.
CreateSimplePDB creates a simple PDB 'pdb1' inside 'instanceName' Instance.
CreateSimplePdbWithDbObj creates simple PDB by given database object.
Create a new set of agent images from existing adding -v2 to the name Throw Ginkgo assert on failure.
EnableGsmApi ensures the GSM API enabled for PROW_PROJECT.
EnableIamApi ensures the IAM API enabled for PROW_PROJECT.
EnableWiWithNodePool ensures workload identity enabled for PROW_CLUSTER.
No description provided by the author
GCloudServiceAccount returns the GCloud service account name.
InsertData creates <table> in <pdb> and inserts <value>.
InsertSimpleData creates 'test_table' in pdb1 and inserts a test row.
Returns true if 'PROW_CANARY_JOB' env is set.
K8sCopyFromPodOrFail copies file/dir in src path of the pod to local dest path.
K8sCreateAndGet calls k8s Create() with retry and then wait for the object to be created.
K8sCreateWithRetry calls k8s Create() with retry as k8s might require this in some cases (e.g.
K8sDeleteWithRetry calls k8s Delete() with retry as k8s might require this in some cases (e.g.
K8sDeleteWithRetryNoWait calls k8s Delete() with retry as k8s might require this in some cases (e.g.
K8sExec execs a command in a pod and returns a string result.
K8sExecuteSql executes multiple sql statements in an Oracle pod e.g.
K8sExecuteSqlOrFail is the same as K8sExecuteSql but raises a ginkgo assert on failure.
K8sGetWithLongRetry calls k8s Get() with retry as k8s might require this in some cases (e.g.
K8sGetWithRetry calls k8s Get() with retry as k8s might require this in some cases (e.g.
K8sUpdateStatus makes the Get-Modify-UpdateStatus-Retry cycle easier Get a fresh version of the object into 'emptyObj' using 'objKey' Apply user-supplied modifyObjectFunc() which should modify the 'emptyObj' Try to update 'emptyObj' status in k8s, retry if needed Wait until the object gets updated.
K8sUpdate makes the Get-Modify-Update-Retry cycle easier.
K8sVerifyUserConnectivity verified user connectivity on "oracledb" container.
K8sWaitForUpdate waits until GetResourceVersion changes compared to 'originalRV'.
Print cluster objects - events, pods, pvcs for all namespaces in the cluster.
Print ENV variables.
PrintEvents for all namespaces in the cluster.
Print logs from requested containers.
Print pods for all namespaces in the cluster.
Print PVCs for all namespaces in the cluster.
Prints logs for a typical single-instance test scenario in case of failure: Prints logs for 'manager', 'dbdaemon', 'oracledb' containers.
Print svcs for all namespaces in the cluster.
RandName generates a name suitable for use as a namespace with a given prefix.
RunFunctionalTestSuite runs all specs in the current package against a specialized testing environment.
RunFunctionalTestSuiteWithWebhooks extends RunFunctionalTestSuite allowing to set up test webhooks.
SetupServiceAccountBindingBetweenGcpAndK8s creates IAM policy binding between k8s service account <projectId>.svc.id.goog[<NAMESPACE>/default] and google service account.
StoreOracleLogs saves Oracle's trace logs from oracledb pod.
TestImageForVersion returns service image for integration tests.
UploadFileOrFail uploads an object to GCS, it raises a ginkgo assert on failure.
VerifyData checks that <value> in <pdb> exists.
VerifySimpleData checks that the test row in 'pdb1' exists.
VerifySimpleDataRemapped checks that the test row in 'retest_table' exists.
WaitForDatabaseConditionState waits until the Database condition object status = targetStatus and reason = targetReason.
WaitForInstanceConditionState waits until the Instance condition object status = targetStatus and reason = targetReason.
WaitForObjectConditionState waits until the k8s object condition object status = targetStatus and reason = targetReason.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
StatusDone done.
StatusDoneWithError done with error.
StatusNotFound not found.
StatusRunning running.
StatusUndefined undefined.

# Variables

Used by pitr test directly.

# Structs

FakeDatabaseClient mocks DatabaseDaemon.
FakeDatabaseClientFactory is a simple factory to create our FakeDatabaseClient.
K8sOperatorEnvironment is a helper for integration testing.

# Interfaces

No description provided by the author
Reconciler is the interface to setup a reconciler for testing.
Webhook is the interface to setup a webhook for testing.

# Type aliases

FakeOperationStatus is an enum type for LRO statuses.