Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions e2e/testcases/proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,14 @@ func TestSyncingThroughAProxy(t *testing.T) {
nt := nomostest.New(t, nomostesting.SyncSourceGit)

nt.T.Logf("Set up the tiny proxy service and Override the RootSync object with proxy setting")
nt.MustKubectl("apply", "-f", "../testdata/proxy")
nt.MustKubectl("apply", "-f", "../testdata/proxy/namespace.yaml")
nt.Must(nt.Watcher.WatchForCurrentStatus(kinds.Namespace(), "proxy-test", ""))
nt.MustKubectl("apply", "-f", "../testdata/proxy/configs")
nt.T.Cleanup(func() {
nt.MustKubectl("delete", "-f", "../testdata/proxy")
nt.MustKubectl("delete", "-f", "../testdata/proxy/configs")
nt.Must(nt.Watcher.WatchForNotFound(kinds.Deployment(), "tinyproxy-deployment", "proxy-test"))
nt.MustKubectl("delete", "-f", "../testdata/proxy/namespace.yaml")
nt.Must(nt.Watcher.WatchForNotFound(kinds.Namespace(), "proxy-test", ""))
})
nt.Must(nt.Watcher.WatchObject(kinds.Deployment(), "tinyproxy-deployment", "proxy-test",
testwatcher.WatchPredicates(hasReadyReplicas(1))))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: v1
kind: Namespace
metadata:
name: proxy-test
---
apiVersion: v1
kind: ServiceAccount
metadata:
Expand Down
18 changes: 18 additions & 0 deletions e2e/testdata/proxy/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2025 Google LLC
Copy link

Copilot AI Oct 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated copyright year to 2025, which is inconsistent with the copyright year (2022) used in other related files like tinyproxy.yaml and proxy-enabled.yaml.

Suggested change
# Copyright 2025 Google LLC
# Copyright 2022 Google LLC

Copilot uses AI. Check for mistakes.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: v1
kind: Namespace
metadata:
name: proxy-test