summaryrefslogtreecommitdiffhomepage
path: root/server/rpki_test.go
diff options
context:
space:
mode:
authorSatoshi Fujimoto <satoshi.fujimoto7@gmail.com>2017-07-14 13:58:22 +0900
committerSatoshi Fujimoto <satoshi.fujimoto7@gmail.com>2017-07-19 09:44:20 +0900
commit2678142d300aea2d803d500ced865c8c89bf186b (patch)
tree91875a38102f0a66c86a4a76ab2537e84f80b5d7 /server/rpki_test.go
parent1aa5bf7f210a3361913b5b9b48b922ff1229aab4 (diff)
rpki: Collect detailed information while validating
Signed-off-by: Satoshi Fujimoto <satoshi.fujimoto7@gmail.com>
Diffstat (limited to 'server/rpki_test.go')
-rw-r--r--server/rpki_test.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/server/rpki_test.go b/server/rpki_test.go
index 34b9a237..694883e7 100644
--- a/server/rpki_test.go
+++ b/server/rpki_test.go
@@ -21,11 +21,13 @@ import (
"strings"
"testing"
- "github.com/armon/go-radix"
+ "github.com/stretchr/testify/assert"
+
+ radix "github.com/armon/go-radix"
+
"github.com/osrg/gobgp/config"
"github.com/osrg/gobgp/packet/bgp"
"github.com/osrg/gobgp/table"
- "github.com/stretchr/testify/assert"
)
func strToASParam(str string) *bgp.PathAttributeAsPath {
@@ -56,7 +58,7 @@ func strToASParam(str string) *bgp.PathAttributeAsPath {
func validateOne(tree *radix.Tree, cidr, aspathStr string) config.RpkiValidationResultType {
r, _ := ValidatePath(65500, tree, cidr, strToASParam(aspathStr))
- return r
+ return r.Status
}
func TestValidate0(t *testing.T) {