From ef25e352350aaf3cbdc7d8dd67314aaa79d3d31a Mon Sep 17 00:00:00 2001 From: withsoull Date: Thu, 6 Feb 2025 17:08:45 +0300 Subject: [PATCH] fix --- tests/features/manager_switchover.feature | 11 +++++------ tests/mysync_test.go | 7 ------- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/tests/features/manager_switchover.feature b/tests/features/manager_switchover.feature index e36d359..b4e2c7e 100644 --- a/tests/features/manager_switchover.feature +++ b/tests/features/manager_switchover.feature @@ -14,12 +14,11 @@ Feature: manager swithover When I get zookeeper node "/test/master" And I save zookeeper query result as "master" - And I run command on host "{{.master}}" - # Then mysql host "{{.manager.hostname}}" should be replica of "{{.master}}" + Then mysql host "{{.manager.hostname}}" should be replica of "{{.master}}" - # When host "{{.manager.hostmame}}" is detached from the network - # Then mysql host "{{.manager.hostname}}" should become unavailable within "10" seconds + When host "{{.manager.hostmame}}" is detached from the network + Then mysql host "{{.manager.hostname}}" should become unavailable within "10" seconds - # Then zookeeper node "/test/manager" should exist "*{{.manager.hostname}}*" within 15 seconds - # Then zookeeper node "/test/manager" should not exist "*{{.manager.hostname}}*" within 60 seconds + Then zookeeper node "/test/manager" should exist "*{{.manager.hostname}}*" within 15 seconds + Then zookeeper node "/test/manager" should not exist "*{{.manager.hostname}}*" within 60 seconds diff --git a/tests/mysync_test.go b/tests/mysync_test.go index 08dfdb4..a094847 100644 --- a/tests/mysync_test.go +++ b/tests/mysync_test.go @@ -689,18 +689,11 @@ func (tctx *testContext) stepIRunCommandOnHost(host string, body *godog.DocStrin return err } - log.Printf("Спарсили команду в %s", cmd) host, err = tctx.templateString(host) if err != nil { return err } - - log.Printf("Спарсили хост в %s", host) tctx.commandRetcode, tctx.commandOutput, err = tctx.composer.RunCommand(host, cmd, commandExecutionTimeout) - - log.Println("tctx.commandRetcode = ", tctx.commandRetcode) - log.Println("tctx.commandOutput = ", tctx.commandOutput) - return err }