mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
* Remove `odo url` from CLI layer * Adapt tests * Adapt test from deleted `cmd_devfile_delete_test.go` This test still makes sense, as it tests the removal of URL-related resources, like Services and Ingresses. * Remove call to `odo project set ...` in test, as suggested in review This command will get removed in the near future. * Remove places where URL manipulation could modify Devfiles Also remove dead code * Remove unused `updateURL` field from EnvInfo struct * Adapt test by mimicking some behavior that `odo url create` used to perform `odo url` used to modify the `env.yaml` file, and `odo dev` currently creates Kubernetes/OCP resources related to URLs. We may remove this test later on if `odo dev` no longer needs to create such Ingresses and Routes. * Remove all places where URLs, Ingresses and Routes are manipulated * Port test in cmd_dev_test instead and make sure no Ingress/Route is created * Remove no-longer `test-cmd-devfile-url` target from Makefile The corresponding test file has been deleted. * Remove `create url` command reference from V3 docs, as suggested in review * Use existing `devfile-with-multiple-endpoints.yaml` Devfile in test, as suggested in review
This commit is contained in:
@@ -15,10 +15,6 @@ mockgen -source=pkg/storage/storage.go \
|
||||
-package storage \
|
||||
-destination pkg/storage/mock_Client.go
|
||||
|
||||
mockgen -source=pkg/url/url.go \
|
||||
-package url \
|
||||
-destination pkg/url/mock_Client.go
|
||||
|
||||
mockgen -source=pkg/devfile/image/image.go \
|
||||
-package image \
|
||||
-destination pkg/devfile/image/mock_Backend.go
|
||||
|
||||
Reference in New Issue
Block a user