/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
 * Copyright (c) 2014-2023, Regents of the University of California.
 *
 * This file is part of NDN repo-ng (Next generation of NDN repository).
 * See AUTHORS.md for complete list of repo-ng authors and contributors.
 *
 * repo-ng is free software: you can redistribute it and/or modify it under the terms
 * of the GNU General Public License as published by the Free Software Foundation,
 * either version 3 of the License, or (at your option) any later version.
 *
 * repo-ng is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
 * PURPOSE.  See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * repo-ng, e.g., in COPYING.md file.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef REPO_TESTS_INTEGRATED_COMMAND_FIXTURE_HPP
#define REPO_TESTS_INTEGRATED_COMMAND_FIXTURE_HPP

#include "../identity-management-fixture.hpp"

#include <ndn-cxx/mgmt/dispatcher.hpp>
#include <ndn-cxx/security/validator-config.hpp>

namespace repo::tests {

class CommandFixture : public virtual IdentityManagementFixture
{
protected:
  CommandFixture()
  {
    addIdentity("/ndn/test/repo");
    saveIdentityCertificate("/ndn/test/repo", "tests/integrated/insert-delete-test.cert");
    validator.load("tests/integrated/insert-delete-validator-config.conf");
  }

protected:
  Face repoFace;
  Scheduler scheduler{repoFace.getIoContext()};
  ndn::mgmt::Dispatcher dispatcher{repoFace, m_keyChain};
  /// \todo #4091 switch to ValidatorPolicyConf and load insert-delete-validator-config.conf
  ndn::security::ValidatorConfig validator{repoFace};
};

} // namespace repo::tests

#endif // REPO_TESTS_INTEGRATED_COMMAND_FIXTURE_HPP
