Werkzeugversion 0.1.1 mit WebP und Betriebsanweisungen für Projekte und Agenten
PipelineManager Image / image (push) Successful in 6s
PipelineManager Image / image (push) Successful in 6s
This commit is contained in:
1 parent
0e44a4211d
commit
34b6b010fd
9 files changed
+239
-10
No files matched your search
@@ -11,7 +11,7 @@ import tempfile
|
||||
import unittest
|
||||
from unittest.mock import patch
|
||||
|
||||
from manager.cli import PipelineError, deploy, digest, inspect_package, load_config, prepare, render_remote
|
||||
from manager.cli import VERSION, PipelineError, deploy, digest, inspect_package, load_config, prepare, render_remote
|
||||
|
||||
|
||||
class ManagerTests(unittest.TestCase):
|
||||
@@ -20,7 +20,7 @@ class ManagerTests(unittest.TestCase):
|
||||
self.addCleanup(self.temp.cleanup)
|
||||
self.root = Path(self.temp.name)
|
||||
self.config = {
|
||||
"schema": 1, "project": "static-demo", "manager": "0.1.0",
|
||||
"schema": 1, "project": "static-demo", "manager": VERSION,
|
||||
"build": {"prepare": [], "test": [[sys.executable, "-c", "pass"]], "finalize": [],
|
||||
"exclude": ["node_modules"], "required": ["web/index.html"]},
|
||||
"remote": {"public": "web", "shared": {}, "backup": [], "activate": []},
|
||||
@@ -208,7 +208,7 @@ class ManagerTests(unittest.TestCase):
|
||||
def test_configuration_rejects_unsafe_targets_and_incompatible_versions(self):
|
||||
path = self.root / "pipeline.toml"
|
||||
for directory in ("../outside", "/absolute", "x;command", "a//b"):
|
||||
path.write_text(f'schema=1\nproject="demo"\nmanager="0.1.0"\n[build]\ntest=[["true"]]\n[targets.staging]\npath="{directory}"\nurl="https://example.test"\nenabled=true\n')
|
||||
path.write_text(f'schema=1\nproject="demo"\nmanager="{VERSION}"\n[build]\ntest=[["true"]]\n[targets.staging]\npath="{directory}"\nurl="https://example.test"\nenabled=true\n')
|
||||
with self.subTest(directory=directory), self.assertRaises(PipelineError):
|
||||
load_config(path)
|
||||
path.write_text('schema=1\nproject="demo"\nmanager="9.0.0"\n')
|
||||
|
||||
Reference in new issue
Block a user