Publish curated Unraid-AppOps-Gateway source from 84f2a9958b2bdf1c1c13553925026d75f32703c3
This commit is contained in:
1 parent
8dd4b40252
commit
5d598db0df
14 files changed
+2765
-46
No files matched your search
@@ -262,9 +262,14 @@ def original_git_reader(tmp_path, monkeypatch, request):
|
||||
def test_original_descriptor_cannot_be_substituted_by_git_replacement(original_git_reader):
|
||||
bare, original, namespace = original_git_reader
|
||||
# A real replacement keeps the branch SHA but swaps the source descriptor.
|
||||
replacement_env = {
|
||||
key: value for key, value in os.environ.items()
|
||||
if key != "GIT_NO_REPLACE_OBJECTS"
|
||||
}
|
||||
replaced = subprocess.check_output(
|
||||
["git", f"--git-dir={bare}", "show", f"{original}:.itworx/deployment-target.json"],
|
||||
text=True,
|
||||
env=replacement_env,
|
||||
)
|
||||
assert json.loads(replaced)["verifyOciRevision"] is True
|
||||
result = namespace["git_run"]("show", f"{original}:.itworx/deployment-target.json")
|
||||
|
||||
Reference in new issue
Block a user