Wrote test to test Enrolment Keys

This commit is contained in:
walkerwmanuel 2023-02-16 10:57:18 -05:00
parent 442b32e0d9
commit 8f8c4f1df0

View file

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