Select Git revision
ndf_test.go

Josh Brooks authored
ndf_test.go 1.26 KiB
///////////////////////////////////////////////////////////////////////////////
// Copyright © 2021 xx network SEZC //
// //
// Use of this source code is governed by a license that can be found in the //
// LICENSE file //
///////////////////////////////////////////////////////////////////////////////
package bindings
import "testing"
func TestDownloadSignedNdf(t *testing.T) {
// Todo: test once a proper URL is hardcoded
//content, err := DownloadAndVerifySignedNdf(testCert)
//if err != nil {
// t.Errorf("Failed to download signed NDF: %v")
//}
//fmt.Printf("content: %s\n", string(content))
}
func TestDownloadSignedNdfWithUrl(t *testing.T) {
// todo: write test once a proper URL can be passed in
//content, err := DownloadAndVerifySignedNdfWithUrl(exampleURL, testCert)
//if err != nil {
// t.Errorf("Failed to download signed NDF: %v")
//}
//fmt.Printf("content: %s\n", string(content))
}
// Tests
func TestVerifySignedNdf(t *testing.T) {
// todo write test once example data is collected
//ndf, err := processAndVerifySignedNdf(testSignedNdf, testCert)
//if err != nil {
//
//}
}