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
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(