Skip to content

Commit

Permalink
Validate responseMsg's each field for precise test
Browse files Browse the repository at this point in the history
  • Loading branch information
hyun98 committed Aug 8, 2024
1 parent 6a78727 commit 61f2036
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions server/rpc/testcases/testcases.go
Original file line number Diff line number Diff line change
Expand Up @@ -1134,4 +1134,11 @@ func RunAdminGetServerVersionTest(

assert.NoError(t, err)
assert.NotNil(t, versionResponse)

responseMsg := versionResponse.Msg

assert.NotEmpty(t, responseMsg.YorkieVersion)
assert.NotEmpty(t, responseMsg.GoVersion)
assert.Regexp(t, `^\d+\.\d+\.\d+$`, responseMsg.YorkieVersion)
assert.Regexp(t, `^go\d+\.\d+(\.\d+)?$`, responseMsg.GoVersion)
}

0 comments on commit 61f2036

Please sign in to comment.