fix(nexxa): cli_estado migrar se niega con el motor pg ya activo (no pisa el estado vivo con archivos viejos); 1.7.2 (P335/F17)
Tests ADN / test (push) Canceled after 0s
Tests ADN / test (push) Canceled after 0s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: GEMMA <noreply@gemma.dtic>
This commit is contained in:
co-authored by
Claude Opus 5.5
GEMMA
parent
43984639fa
commit
529360b98e
@@ -212,6 +212,17 @@ class CliEstadoTest < Minitest::Test
|
||||
assert_equal 1, Dir[File.join(DIR_ESTADO, 'bkp_estado_*.tgz')].size, 'la segunda corrida no respalda ni escribe'
|
||||
end
|
||||
|
||||
def test_migrar_se_niega_con_el_motor_pg_ya_activo
|
||||
dropin = File.join(DIR_ESTADO, 'estado.conf')
|
||||
File.write(dropin, "[Service]\nEnvironment=NEXXA_ESTADO=pg\n")
|
||||
out = StringIO.new
|
||||
assert_equal 1, C.migrar(out, dropin: dropin)
|
||||
assert_match(/ya está activo/, out.string)
|
||||
assert_nil E.pg_leer('registro', nil), 'no escribió nada'
|
||||
ensure
|
||||
FileUtils.rm_f(dropin)
|
||||
end
|
||||
|
||||
def test_verificar_detecta_una_diferencia
|
||||
corre('migrar')
|
||||
E.archivo_guardar(E.ruta('pools'), { 'individuos' => { 'gemma' => { 'mente' => ['p/k1'] } } })
|
||||
|
||||
Reference in New Issue
Block a user