Browse Source

Wrote test to test Enrolment Keys

walkerwmanuel 2 years ago
parent
commit
8f8c4f1df0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      logic/enrollmentkey_test.go

+ 1 - 1
logic/enrollmentkey_test.go

@@ -171,7 +171,7 @@ func TestDeTokenize_EnrollmentKeys(t *testing.T) {
 	defer database.CloseDB()
 	defer database.CloseDB()
 	newKey, _ := CreateEnrollmentKey(0, time.Time{}, []string{"mynet", "skynet"}, nil, true)
 	newKey, _ := CreateEnrollmentKey(0, time.Time{}, []string{"mynet", "skynet"}, nil, true)
 	fmt.Println(newKey.Value)
 	fmt.Println(newKey.Value)
-	const defaultValue = "MwEtpqTSrGd4HTO3ahYDTExKAehh6udJ"
+	//const defaultValue = "MwEtpqTSrGd4HTO3ahYDTExKAehh6udJ"
 	const b64Value = "eyJzZXJ2ZXIiOiJhcGkubXlzZXJ2ZXIuY29tIiwidmFsdWUiOiJNd0V0cHFUU3JHZDRIVE8zYWhZRFRFeEtBZWhoNnVkSiJ9"
 	const b64Value = "eyJzZXJ2ZXIiOiJhcGkubXlzZXJ2ZXIuY29tIiwidmFsdWUiOiJNd0V0cHFUU3JHZDRIVE8zYWhZRFRFeEtBZWhoNnVkSiJ9"
 	const serverAddr = "api.myserver.com"
 	const serverAddr = "api.myserver.com"