feat(git-gate): remove git remote host override plumbing
This commit is contained in:
@@ -160,13 +160,13 @@ class TestBlockList(unittest.TestCase):
|
||||
out = _y("""
|
||||
entries:
|
||||
- name: foo
|
||||
ExtraHosts:
|
||||
metadata:
|
||||
host.example: 10.0.0.1
|
||||
- name: bar
|
||||
""")
|
||||
self.assertEqual(
|
||||
{"entries": [
|
||||
{"name": "foo", "ExtraHosts": {"host.example": "10.0.0.1"}},
|
||||
{"name": "foo", "metadata": {"host.example": "10.0.0.1"}},
|
||||
{"name": "bar"},
|
||||
]},
|
||||
out,
|
||||
@@ -270,8 +270,7 @@ class TestRealisticBottleFile(unittest.TestCase):
|
||||
Name: bot-bottle
|
||||
Upstream: ssh://git@gitea.dideric.is:30009/x/y.git
|
||||
IdentityFile: ~/.ssh/gitea.pem
|
||||
ExtraHosts:
|
||||
gitea.dideric.is: 100.78.141.42
|
||||
KnownHostKey: ssh-ed25519 AAAA...
|
||||
""")
|
||||
# Spot-check the deep parts; the structure is large.
|
||||
self.assertEqual(2, len(out["egress"]["routes"]))
|
||||
@@ -284,8 +283,8 @@ class TestRealisticBottleFile(unittest.TestCase):
|
||||
out["egress"]["routes"][0]["auth"]["scheme"],
|
||||
)
|
||||
self.assertEqual(
|
||||
"100.78.141.42",
|
||||
out["git"]["remotes"]["gitea.dideric.is"]["ExtraHosts"]["gitea.dideric.is"],
|
||||
"ssh-ed25519 AAAA...",
|
||||
out["git"]["remotes"]["gitea.dideric.is"]["KnownHostKey"],
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user