@@ -140,7 +140,7 @@ def test_complete_customer_workflow(tmp_path, monkeypatch):
140
140
141
141
# Set secret
142
142
result = runner .invoke (app , ["values" , "set-secret" , "api-key" , "--env" , "prod" ],
143
- input = "1\\ nPROD_API_KEY\ \ n" )
143
+ input = "1\n PROD_API_KEY\n " )
144
144
assert result .exit_code == 0
145
145
146
146
# Set optional array
@@ -243,7 +243,7 @@ def test_multi_environment_workflow(tmp_path, monkeypatch):
243
243
assert result .exit_code == 0
244
244
245
245
result = runner .invoke (app , ["values" , "set-secret" , "database-password" , "--env" , "dev" ],
246
- input = "1\\ nDEV_DB_PASSWORD\ \ n" )
246
+ input = "1\n DEV_DB_PASSWORD\n " )
247
247
assert result .exit_code == 0
248
248
249
249
# Configure production environment
@@ -254,7 +254,7 @@ def test_multi_environment_workflow(tmp_path, monkeypatch):
254
254
assert result .exit_code == 0
255
255
256
256
result = runner .invoke (app , ["values" , "set-secret" , "database-password" , "--env" , "prod" ],
257
- input = "1\\ nPROD_DB_PASSWORD\ \ n" )
257
+ input = "1\n PROD_DB_PASSWORD\n " )
258
258
assert result .exit_code == 0
259
259
260
260
result = runner .invoke (app , ["values" , "set" , "replicas" , "5" , "--env" , "prod" ])
@@ -310,11 +310,11 @@ def test_error_recovery_workflow(tmp_path):
310
310
311
311
# 3. Try to add duplicate key
312
312
result = runner .invoke (app , ["schema" , "add" ],
313
- input = "test-key\\ ntest.path\\ nTest description\\ nstring\\ ny\\ nn\\ nn \ \ n" )
313
+ input = "test-key\n test.path\n Test description\n string\n y\n n\n n \n " )
314
314
assert result .exit_code == 0
315
315
316
316
result = runner .invoke (app , ["schema" , "add" ],
317
- input = "test-key\\ ntest.path2\\ nDuplicate key\\ nstring\\ ny\\ nn\\ nn \ \ n" )
317
+ input = "test-key\n test.path2\n Duplicate key\n string\n y\n n\n n \n " )
318
318
assert result .exit_code == 1
319
319
assert "already exists" in result .output
320
320
@@ -342,7 +342,7 @@ def test_schema_evolution_workflow(tmp_path):
342
342
assert result .exit_code == 0
343
343
344
344
result = runner .invoke (app , ["schema" , "add" ],
345
- input = "app-name\\ napp.name\\ nApplication name\\ nstring\\ ny\\ ny\\ nmyapp\\ nn \ \ n" )
345
+ input = "app-name\n app.name\n Application name\n string\n y\n y\n myapp\n n \n " )
346
346
assert result .exit_code == 0
347
347
348
348
# 2. Set initial values
@@ -351,7 +351,7 @@ def test_schema_evolution_workflow(tmp_path):
351
351
352
352
# 3. Evolve schema - add new optional field
353
353
result = runner .invoke (app , ["schema" , "add" ],
354
- input = "version\\ napp.version\\ nApplication version\\ nstring\\ nn\\ ny\\ n1.0.0\\ nn \ \ n" )
354
+ input = "version\n app.version\n Application version\n string\n n\n y\n 1.0.0\n n \n " )
355
355
assert result .exit_code == 0
356
356
357
357
# 4. Validate existing environment still works (backwards compatibility)
@@ -368,7 +368,7 @@ def test_schema_evolution_workflow(tmp_path):
368
368
369
369
# 6. Add new required field
370
370
result = runner .invoke (app , ["schema" , "add" ],
371
- input = "port\\ napp.port\\ nApplication port\\ nnumber\\ ny\\ nn\\ nn \ \ n" )
371
+ input = "port\n app.port\n Application port\n number\n y\n n\n n \n " )
372
372
assert result .exit_code == 0
373
373
374
374
# 7. Validation should now fail
0 commit comments