ax(node): rename identity test functions to AX TestFilename_Function_{Good,Bad,Ugly} convention
TestNodeIdentity, TestNodeRoles, TestChallengeResponse violated AX Principle 2 (test naming). Renamed to TestIdentity_NodeManager_Good, TestIdentity_NodeRoles_Good, TestIdentity_ChallengeResponse_Good to follow the mandatory TestFilename_Function_Good naming pattern. Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
parent
349f395cc6
commit
a1939ff5f7
1 changed files with 3 additions and 3 deletions
|
|
@ -29,7 +29,7 @@ func setupTestNodeManager(t *testing.T) (*NodeManager, func()) {
|
|||
return nm, cleanup
|
||||
}
|
||||
|
||||
func TestNodeIdentity(t *testing.T) {
|
||||
func TestIdentity_NodeManager_Good(t *testing.T) {
|
||||
t.Run("NewNodeManager", func(t *testing.T) {
|
||||
nm, cleanup := setupTestNodeManager(t)
|
||||
defer cleanup()
|
||||
|
|
@ -198,7 +198,7 @@ func TestNodeIdentity(t *testing.T) {
|
|||
})
|
||||
}
|
||||
|
||||
func TestNodeRoles(t *testing.T) {
|
||||
func TestIdentity_NodeRoles_Good(t *testing.T) {
|
||||
tests := []struct {
|
||||
role NodeRole
|
||||
expected string
|
||||
|
|
@ -217,7 +217,7 @@ func TestNodeRoles(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestChallengeResponse(t *testing.T) {
|
||||
func TestIdentity_ChallengeResponse_Good(t *testing.T) {
|
||||
t.Run("GenerateChallenge", func(t *testing.T) {
|
||||
challenge, err := GenerateChallenge()
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue