blob: 28990e3f9706212157462289c10ca05909b826cf [file] [log] [blame]
Junxiao Shi047a6fb2017-06-08 16:16:05 +00001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
Alexander Afanasyevc0e26582017-08-13 21:16:49 -04002/*
Davide Pesavento11904062022-04-14 22:33:28 -04003 * Copyright (c) 2014-2022, Regents of the University of California.
Junxiao Shi047a6fb2017-06-08 16:16:05 +00004 *
5 * This file is part of NDN repo-ng (Next generation of NDN repository).
6 * See AUTHORS.md for complete list of repo-ng authors and contributors.
7 *
8 * repo-ng is free software: you can redistribute it and/or modify it under the terms
9 * of the GNU General Public License as published by the Free Software Foundation,
10 * either version 3 of the License, or (at your option) any later version.
11 *
12 * repo-ng is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
13 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 * PURPOSE. See the GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along with
17 * repo-ng, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#include "command-fixture.hpp"
21
Davide Pesavento11904062022-04-14 22:33:28 -040022namespace repo::tests {
Junxiao Shi047a6fb2017-06-08 16:16:05 +000023
24CommandFixture::CommandFixture()
25 : scheduler(repoFace.getIoService())
26 , keyChain(m_keyChain)
weijia yuan82cf9142018-10-21 12:25:02 -070027 , dispatcher(repoFace, keyChain)
Alexander Afanasyevc0e26582017-08-13 21:16:49 -040028 , validator(repoFace)
Junxiao Shi047a6fb2017-06-08 16:16:05 +000029{
weijia yuan3aa8d2b2018-03-06 15:35:57 -080030 this->addIdentity("/ndn/test/repo");
31 this->saveIdentityCertificate("/ndn/test/repo", "tests/integrated/insert-delete-test.cert");
Alexander Afanasyevc0e26582017-08-13 21:16:49 -040032 validator.load("tests/integrated/insert-delete-validator-config.conf");
Junxiao Shi047a6fb2017-06-08 16:16:05 +000033}
34
Davide Pesavento11904062022-04-14 22:33:28 -040035} // namespace repo::tests