Skip to content

Commit fe60f0b

Browse files
committed
Move integration and e2e tests for epp into epp-specific directories
1 parent 5b82374 commit fe60f0b

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed
File renamed without changes.

Diff for: test/e2e/e2e_suite_test.go renamed to test/e2e/epp/e2e_suite_test.go

+8-8
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package e2e
17+
package epp
1818

1919
import (
2020
"context"
@@ -67,19 +67,19 @@ const (
6767
// inferExtName is the name of the inference extension test resources.
6868
inferExtName = "inference-gateway-ext-proc"
6969
// clientManifest is the manifest for the client test resources.
70-
clientManifest = "../testdata/client.yaml"
70+
clientManifest = "../../testdata/client.yaml"
7171
// modelServerManifest is the manifest for the model server test resources.
72-
modelServerManifest = "../../config/manifests/vllm/gpu-deployment.yaml"
72+
modelServerManifest = "../../../config/manifests/vllm/gpu-deployment.yaml"
7373
// modelServerSecretManifest is the manifest for the model server secret resource.
74-
modelServerSecretManifest = "../testdata/model-secret.yaml"
74+
modelServerSecretManifest = "../../testdata/model-secret.yaml"
7575
// inferPoolManifest is the manifest for the inference pool CRD.
76-
inferPoolManifest = "../../config/crd/bases/inference.networking.x-k8s.io_inferencepools.yaml"
76+
inferPoolManifest = "../../../config/crd/bases/inference.networking.x-k8s.io_inferencepools.yaml"
7777
// inferModelManifest is the manifest for the inference model CRD.
78-
inferModelManifest = "../../config/crd/bases/inference.networking.x-k8s.io_inferencemodels.yaml"
78+
inferModelManifest = "../../../config/crd/bases/inference.networking.x-k8s.io_inferencemodels.yaml"
7979
// inferExtManifest is the manifest for the inference extension test resources.
80-
inferExtManifest = "../../config/manifests/ext_proc.yaml"
80+
inferExtManifest = "../../../config/manifests/ext_proc.yaml"
8181
// envoyManifest is the manifest for the envoy proxy test resources.
82-
envoyManifest = "../testdata/envoy.yaml"
82+
envoyManifest = "../../testdata/envoy.yaml"
8383
)
8484

8585
var (

Diff for: test/e2e/e2e_test.go renamed to test/e2e/epp/e2e_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package e2e
17+
package epp
1818

1919
import (
2020
"fmt"

Diff for: test/integration/hermetic_test.go renamed to test/integration/epp/hermetic_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
// Package test contains e2e tests for the ext proc while faking the backend pods.
18-
package integration
17+
// Package epp contains integration tests for the ext proc while faking the backend pods.
18+
package epp
1919

2020
import (
2121
"bufio"
@@ -472,7 +472,7 @@ func setUpHermeticServer(t *testing.T, podMetrics []*datastore.PodMetrics) (clie
472472
func BeforeSuit(t *testing.T) func() {
473473
// Set up mock k8s API Client
474474
testEnv = &envtest.Environment{
475-
CRDDirectoryPaths: []string{filepath.Join("..", "..", "config", "crd", "bases")},
475+
CRDDirectoryPaths: []string{filepath.Join("..", "..", "..", "config", "crd", "bases")},
476476
ErrorIfCRDPathMissing: true,
477477
}
478478
cfg, err := testEnv.Start()
@@ -522,7 +522,7 @@ func BeforeSuit(t *testing.T) func() {
522522
logger.Info("Setting up hermetic ExtProc server")
523523

524524
// Unmarshal CRDs from file into structs
525-
manifestsPath := filepath.Join("..", "testdata", "inferencepool-with-model-hermetic.yaml")
525+
manifestsPath := filepath.Join("..", "..", "testdata", "inferencepool-with-model-hermetic.yaml")
526526
docs, err := readDocuments(manifestsPath)
527527
if err != nil {
528528
logutil.Fatal(logger, err, "Can't read object manifests", "path", manifestsPath)

0 commit comments

Comments
 (0)