fix(grpc): add more checks for tag validation

This commit is contained in:
Adrien Raffin-Caboisse 2022-07-25 11:25:20 +02:00
parent c46a34e6b8
commit c90e862460
No known key found for this signature in database
GPG key ID: 7FB60532DEBEAD6A
3 changed files with 60 additions and 6 deletions

View file

@ -625,7 +625,7 @@ func (s *IntegrationCLITestSuite) TestNodeTagCommand() {
var errorOutput errOutput
err = json.Unmarshal([]byte(wrongTagResult), &errorOutput)
assert.Nil(s.T(), err)
assert.Contains(s.T(), errorOutput.Error, "Invalid tag detected")
assert.Contains(s.T(), errorOutput.Error, "tag must start with the string 'tag:'")
// Test list all nodes after added seconds
listAllResult, err := ExecuteCommand(