Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
WithSoull committed Feb 6, 2025
1 parent 845ef59 commit ef25e35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
11 changes: 5 additions & 6 deletions tests/features/manager_switchover.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 0 additions & 7 deletions tests/mysync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit ef25e35

Please sign in to comment.