tests: ignore ParametersSha256DigestComponent in name prefix check
Plus various minor cleanups
Change-Id: I0907eb80a550a663fbef2ff0a7e24a40614e8655
diff --git a/tests/unit-tests/ca-config.t.cpp b/tests/unit-tests/ca-config.t.cpp
index 0e53dff..0cebb26 100644
--- a/tests/unit-tests/ca-config.t.cpp
+++ b/tests/unit-tests/ca-config.t.cpp
@@ -1,5 +1,5 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/**
+/*
* Copyright (c) 2017-2019, Regents of the University of California.
*
* This file is part of ndncert, a certificate management system based on NDN.
@@ -21,6 +21,7 @@
#include "ca-config.hpp"
#include "identity-management-fixture.hpp"
+
#include <ndn-cxx/security/transform/base64-encode.hpp>
#include <ndn-cxx/security/transform/buffer-source.hpp>
#include <ndn-cxx/security/transform/stream-sink.hpp>
@@ -35,7 +36,7 @@
{
CaConfig config;
config.load("tests/unit-tests/ca.conf.test");
- BOOST_CHECK_EQUAL(config.m_caName.toUri(), "/ndn");
+ BOOST_CHECK_EQUAL(config.m_caName, "/ndn");
BOOST_CHECK_EQUAL(config.m_freshnessPeriod, time::seconds(720));
BOOST_CHECK_EQUAL(config.m_validityPeriod, time::days(360));
BOOST_CHECK_EQUAL(config.m_probe, "");