Closed shyamradhakrishnan closed 1 year ago
unit test
KUBEBUILDER_ASSETS="/home/ubuntu/.local/share/kubebuilder-envtest/k8s/1.24.2-linux-amd64" go test -coverprofile=coverage.out ./...
? github.com/oracle/cluster-api-provider-oci [no test files]
ok github.com/oracle/cluster-api-provider-oci/api/v1beta1 37.635s coverage: 23.9% of statements
ok github.com/oracle/cluster-api-provider-oci/api/v1beta2 0.038s coverage: 16.3% of statements
? github.com/oracle/cluster-api-provider-oci/cloud/config [no test files]
ok github.com/oracle/cluster-api-provider-oci/cloud/ociutil 0.004s coverage: 19.6% of statements
ok github.com/oracle/cluster-api-provider-oci/cloud/scope 230.734s coverage: 77.3% of statements
? github.com/oracle/cluster-api-provider-oci/cloud/scope/mocks [no test files]
? github.com/oracle/cluster-api-provider-oci/cloud/services/base [no test files]
? github.com/oracle/cluster-api-provider-oci/cloud/services/base/mock_base [no test files]
? github.com/oracle/cluster-api-provider-oci/cloud/services/compute [no test files]
? github.com/oracle/cluster-api-provider-oci/cloud/services/compute/mock_compute [no test files]
? github.com/oracle/cluster-api-provider-oci/cloud/services/computemanagement [no test files]
? github.com/oracle/cluster-api-provider-oci/cloud/services/computemanagement/mock_computemanagement [no test files]
? github.com/oracle/cluster-api-provider-oci/cloud/services/containerengine [no test files]
? github.com/oracle/cluster-api-provider-oci/cloud/services/containerengine/mock_containerengine [no test files]
? github.com/oracle/cluster-api-provider-oci/cloud/services/identity [no test files]
? github.com/oracle/cluster-api-provider-oci/cloud/services/identity/mock_identity [no test files]
? github.com/oracle/cluster-api-provider-oci/cloud/services/loadbalancer [no test files]
? github.com/oracle/cluster-api-provider-oci/cloud/services/loadbalancer/mock_lb [no test files]
? github.com/oracle/cluster-api-provider-oci/cloud/services/networkloadbalancer [no test files]
? github.com/oracle/cluster-api-provider-oci/cloud/services/networkloadbalancer/mock_nlb [no test files]
? github.com/oracle/cluster-api-provider-oci/cloud/services/vcn [no test files]
? github.com/oracle/cluster-api-provider-oci/cloud/services/vcn/mock_vcn [no test files]
ok github.com/oracle/cluster-api-provider-oci/cloud/util 0.029s coverage: 60.0% of statements
ok github.com/oracle/cluster-api-provider-oci/controllers 25.853s coverage: 67.5% of statements
ok github.com/oracle/cluster-api-provider-oci/exp/api/v1beta1 26.821s coverage: 21.8% of statements
ok github.com/oracle/cluster-api-provider-oci/exp/api/v1beta2 0.024s coverage: 11.0% of statements
ok github.com/oracle/cluster-api-provider-oci/exp/controllers 0.729s coverage: 56.3% of statements
? github.com/oracle/cluster-api-provider-oci/feature [no test files]
? github.com/oracle/cluster-api-provider-oci/version [no test files]
go tool cover -func=coverage.out -o coverage.txt
go tool cover -html=coverage.out -o coverage.html
e2e test
------------------------------
Ran 6 of 25 Specs in 3711.202 seconds
SUCCESS! -- 6 Passed | 0 Failed | 0 Pending | 19 Skipped
What this PR does / why we need it:
Add ability to disable OCI client init on startup
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged): Fixes #244