@@ -52,36 +52,36 @@ func setupHTTPRouteLabelEnv(ctx context.Context, t *testing.T, config *envconf.C
5252 clusterResources := config .Client ().Resources ()
5353 resourcesMap := map [string ]* unstructured.Unstructured {}
5454 ctx = context .WithValue (ctx , RESOURCES_MAP_KEY , resourcesMap )
55- firstHTTPRouteFile , err := os .Open (HTTP_ROUTE_BASIC_PATH )
55+ firstHTTPRouteFile , err := os .Open (HTTP_ROUTE_LABEL_PATH )
5656 if err != nil {
57- logrus .Errorf ("file %q opening was failed: %s" , HTTP_ROUTE_BASIC_PATH , err )
57+ logrus .Errorf ("file %q opening was failed: %s" , HTTP_ROUTE_LABEL_PATH , err )
5858 t .Error ()
5959 return ctx
6060 }
6161 defer firstHTTPRouteFile .Close ()
62- logrus .Infof ("file %q was opened" , HTTP_ROUTE_BASIC_PATH )
63- rolloutFile , err := os .Open (HTTP_ROUTE_BASIC_ROLLOUT_PATH )
62+ logrus .Infof ("file %q was opened" , HTTP_ROUTE_LABEL_PATH )
63+ rolloutFile , err := os .Open (HTTP_ROUTE_LABEL_ROLLOUT_PATH )
6464 if err != nil {
65- logrus .Errorf ("file %q opening was failed: %s" , HTTP_ROUTE_BASIC_ROLLOUT_PATH , err )
65+ logrus .Errorf ("file %q opening was failed: %s" , HTTP_ROUTE_LABEL_ROLLOUT_PATH , err )
6666 t .Error ()
6767 return ctx
6868 }
6969 defer rolloutFile .Close ()
70- logrus .Infof ("file %q was opened" , HTTP_ROUTE_BASIC_ROLLOUT_PATH )
70+ logrus .Infof ("file %q was opened" , HTTP_ROUTE_LABEL_ROLLOUT_PATH )
7171 err = decoder .Decode (firstHTTPRouteFile , & httpRoute )
7272 if err != nil {
73- logrus .Errorf ("file %q decoding was failed: %s" , HTTP_ROUTE_BASIC_PATH , err )
73+ logrus .Errorf ("file %q decoding was failed: %s" , HTTP_ROUTE_LABEL_PATH , err )
7474 t .Error ()
7575 return ctx
7676 }
77- logrus .Infof ("file %q was decoded" , HTTP_ROUTE_BASIC_PATH )
77+ logrus .Infof ("file %q was decoded" , HTTP_ROUTE_LABEL_PATH )
7878 err = decoder .Decode (rolloutFile , & rollout )
7979 if err != nil {
80- logrus .Errorf ("file %q decoding was failed: %s" , HTTP_ROUTE_BASIC_ROLLOUT_PATH , err )
80+ logrus .Errorf ("file %q decoding was failed: %s" , HTTP_ROUTE_LABEL_ROLLOUT_PATH , err )
8181 t .Error ()
8282 return ctx
8383 }
84- logrus .Infof ("file %q was decoded" , HTTP_ROUTE_BASIC_ROLLOUT_PATH )
84+ logrus .Infof ("file %q was decoded" , HTTP_ROUTE_LABEL_ROLLOUT_PATH )
8585 httpRouteObject , err := runtime .DefaultUnstructuredConverter .ToUnstructured (& httpRoute )
8686 if err != nil {
8787 logrus .Errorf ("httpRoute %q converting to unstructured was failed: %s" , httpRoute .GetName (), err )
@@ -327,4 +327,3 @@ func getMatchHTTPRouteLabelFetcher(t *testing.T, expectLabel bool) func(k8s.Obje
327327 return ! ok
328328 }
329329}
330-
0 commit comments