mirror of https://github.com/ceph/go-ceph
rados: fix test for mon command with input buffer on ceph octopus
It appears that ceph octopus (currently testing as master) is stricter about some inputs and the old formatting in the test was failing. Use formatting that all versions should be happy with. Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
parent
01b38c2e42
commit
1bd65c6f20
|
@ -605,6 +605,13 @@ func (suite *RadosTestSuite) TestMonCommand() {
|
|||
assert.NoError(suite.T(), err)
|
||||
}
|
||||
|
||||
// NB: ceph octopus appears to be stricter about the formatting of the keyring
|
||||
// and now rejects whitespace that older versions did not have a problem with.
|
||||
const clientKeyFormat = `
|
||||
[%s]
|
||||
key = AQD4PGNXBZJNHhAA582iUgxe9DsN+MqFN4Z6Jw==
|
||||
`
|
||||
|
||||
func (suite *RadosTestSuite) TestMonCommandWithInputBuffer() {
|
||||
suite.SetupConnection()
|
||||
|
||||
|
@ -618,10 +625,7 @@ func (suite *RadosTestSuite) TestMonCommandWithInputBuffer() {
|
|||
})
|
||||
assert.NoError(suite.T(), err)
|
||||
|
||||
client_key := fmt.Sprintf(`
|
||||
[%s]
|
||||
key = AQD4PGNXBZJNHhAA582iUgxe9DsN+MqFN4Z6Jw==
|
||||
`, entity)
|
||||
client_key := fmt.Sprintf(clientKeyFormat, entity)
|
||||
|
||||
inbuf := []byte(client_key)
|
||||
|
||||
|
|
Loading…
Reference in New Issue