You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test ./... $(TEST_ARGS)
88
+
test: generate manifests fmt $(SETUP_ENVTEST)## Run unit and integration test
89
+
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test ./api/... ./cloud/... ./controllers/... $(TEST_ARGS)
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test ./api/... ./cloud/... ./controllers/... --ginkgo.label-filter=unit $(TEST_ARGS)
82
94
83
95
.PHONY: test-cover
84
96
test-cover: ## Run unit and integration tests and generate coverage report
Copy file name to clipboardExpand all lines: README.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,33 @@ Because Proxmox-VE does not provide LBaaS solution, CAPPX does not follow the [t
102
102
103
103
ProxmoxMachine controller follows the [typical infra-machine logic](https://cluster-api.sigs.k8s.io/developer/providers/machine-infrastructure.html#behavior). To bootstrap your machine, CAPPX supports only `cloud-config` type bootstrap data secret. CAPPX is mainly tested with [KubeadmControlPlane](https://github.com/kubernetes-sigs/cluster-api/tree/main/controlplane/kubeadm) and [KubeadmBootstrap](https://github.com/kubernetes-sigs/cluster-api/tree/main/bootstrap/kubeadm).
104
104
105
+
## Development
106
+
107
+
### Testing
108
+
#### Unit Testing
109
+
```
110
+
make unit-test
111
+
```
112
+
113
+
#### Unit and Integration Testing
114
+
```
115
+
export PROXMOX_URL=https://X.X.X.X:8006/api2/json
116
+
export PROXMOX_PASSWORD=password
117
+
export PROXMOX_USER=user@pam
118
+
119
+
make test
120
+
```
121
+
122
+
### E2E Testing
123
+
```
124
+
export CONTROLPLANE_HOST=X.X.X.X
125
+
export PROXMOX_URL=https://X.X.X.X:8006/api2/json
126
+
export PROXMOX_PASSWORD=password
127
+
export PROXMOX_USER=user@pam
128
+
129
+
make e2e
130
+
```
131
+
105
132
## Contributing
106
133
107
134
Are you interested in contributing to cluster-api-provider-proxmox? Do not hesitate to open GitHub issues.
0 commit comments