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
73 lines
2.0 KiB
Bash
Executable File
73 lines
2.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Use this script to regererate generated mock files
|
|
# after changing signatures of interfaces in these packages
|
|
|
|
mockgen -source=pkg/kclient/interface.go \
|
|
-package kclient \
|
|
-destination pkg/kclient/mock_Client.go
|
|
|
|
mockgen -source=pkg/localConfigProvider/localConfigProvider.go \
|
|
-package localConfigProvider \
|
|
-destination pkg/localConfigProvider/mock_localConfigProvider.go
|
|
|
|
mockgen -source=pkg/storage/storage.go \
|
|
-package storage \
|
|
-destination pkg/storage/mock_Client.go
|
|
|
|
mockgen -source=pkg/devfile/image/image.go \
|
|
-package image \
|
|
-destination pkg/devfile/image/mock_Backend.go
|
|
|
|
mockgen -source=pkg/odo/cmdline/cmdline.go \
|
|
-package cmdline \
|
|
-destination pkg/odo/cmdline/mock.go
|
|
|
|
mockgen -source=pkg/project/project.go \
|
|
-package project \
|
|
-destination pkg/project/mock.go
|
|
|
|
mockgen -source=pkg/preference/preference.go \
|
|
-package preference \
|
|
-destination pkg/preference/mock.go
|
|
|
|
mockgen -source=pkg/auth/interface.go \
|
|
-package auth \
|
|
-destination pkg/auth/mock.go
|
|
|
|
mockgen -source=pkg/init/backend/interface.go \
|
|
-package backend \
|
|
-destination pkg/init/backend/mock.go
|
|
|
|
mockgen -source=pkg/init/asker/interface.go \
|
|
-package asker \
|
|
-destination pkg/init/asker/mock.go
|
|
|
|
mockgen -source=pkg/init/interface.go \
|
|
-package init \
|
|
-destination pkg/init/mock.go
|
|
|
|
mockgen -source=pkg/registry/interface.go \
|
|
-package registry \
|
|
-destination pkg/registry/mock.go
|
|
|
|
mockgen -source=pkg/deploy/interface.go \
|
|
-package deploy \
|
|
-destination pkg/deploy/mock.go
|
|
|
|
mockgen -source=pkg/libdevfile/libdevfile.go \
|
|
-package libdevfile \
|
|
-destination pkg/libdevfile/handler_mock.go
|
|
|
|
mockgen -source=pkg/watch/interface.go \
|
|
-package watch \
|
|
-destination pkg/watch/mock.go
|
|
|
|
mockgen -source=pkg/component/delete/interface.go \
|
|
-package delete \
|
|
-destination pkg/component/delete/mock.go
|
|
|
|
mockgen -source=pkg/dev/interface.go \
|
|
-package dev \
|
|
-destination pkg/dev/mock.go
|