/openbmc/telemetry/tests/src/ |
H A D | test_persistent_json_storage.cpp | 14 using FilePath = interfaces::JsonStorage::FilePath; typedef in TestPersistentJsonStorage 30 const FilePath fileName = FilePath("report/1/file.txt"); 59 sut.store(FilePath("report/domain-1/name-1/conf-1.json"), in TEST_F() 61 sut.store(FilePath("report/domain-1/name-2/conf-1.json"), in TEST_F() 63 sut.store(FilePath("report/domain-1/name-2/conf-2.json"), in TEST_F() 65 sut.store(FilePath("report/domain-2/name-1/conf-1.json"), in TEST_F() 70 UnorderedElementsAre(FilePath("report/domain-1/name-1/conf-1.json"), in TEST_F() 71 FilePath("report/domain-1/name-2/conf-1.json"), in TEST_F() 72 FilePath("report/domain-1/name-2/conf-2.json"), in TEST_F() 73 FilePath("report/domain-2/name-1/conf-1.json"))); in TEST_F() [all …]
|
H A D | test_trigger_manager.cpp | 451 using FilePath = interfaces::JsonStorage::FilePath; typedef in TestTriggerManagerStorage 457 .WillByDefault(Return(std::vector<FilePath>{ in SetUp() 458 {FilePath("trigger1")}, {FilePath("trigger2")}})); in SetUp() 460 ON_CALL(storageMock, load(FilePath("trigger1"))) in SetUp() 465 ON_CALL(storageMock, load(FilePath("trigger2"))) in SetUp() 511 EXPECT_CALL(storageMock, remove(FilePath("trigger1"))).Times(0); in TEST_F() 521 EXPECT_CALL(storageMock, remove(FilePath("trigger1"))).Times(0); in TEST_F() 534 EXPECT_CALL(storageMock, remove(FilePath("trigger1"))); in TEST_F()
|
/openbmc/telemetry/src/interfaces/ |
H A D | json_storage.hpp | 16 BOOST_STRONG_TYPEDEF(std::filesystem::path, FilePath) 21 virtual void store(const FilePath& subPath, const nlohmann::json& data) = 0; 22 virtual bool remove(const FilePath& subPath) = 0; 23 virtual bool exist(const FilePath& path) const = 0; 25 const FilePath& subPath) const = 0; 26 virtual std::vector<FilePath> list() const = 0;
|
/openbmc/telemetry/tests/src/mocks/ |
H A D | json_storage_mock.hpp | 10 MOCK_METHOD(void, store, (const FilePath&, const nlohmann::json&), 12 MOCK_METHOD(bool, remove, (const FilePath&), (override)); 13 MOCK_METHOD(bool, exist, (const FilePath&), (const, override)); 14 MOCK_METHOD(std::optional<nlohmann::json>, load, (const FilePath&), 16 MOCK_METHOD(std::vector<FilePath>, list, (), (const, override));
|
/openbmc/telemetry/src/ |
H A D | persistent_json_storage.hpp | 10 void store(const FilePath& subPath, const nlohmann::json& data) override; 11 bool remove(const FilePath& subPath) override; 12 bool exist(const FilePath& path) const override; 13 std::optional<nlohmann::json> load(const FilePath& subPath) const override; 14 std::vector<FilePath> list() const override;
|
H A D | persistent_json_storage.cpp | 33 void PersistentJsonStorage::store(const FilePath& filePath, in store() 71 bool PersistentJsonStorage::remove(const FilePath& filePath) in remove() 99 const FilePath& filePath) const in load() 124 std::vector<interfaces::JsonStorage::FilePath> PersistentJsonStorage::list() in list() 127 std::vector<interfaces::JsonStorage::FilePath> result; in list() 162 bool PersistentJsonStorage::exist(const FilePath& subPath) const in exist()
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 256 | 32 with iotests.FilePath('img0') as img0_path, \ 33 iotests.FilePath('img1') as img1_path, \ 34 iotests.FilePath('img0-full') as img0_full_path, \ 35 iotests.FilePath('img1-full') as img1_full_path, \ 36 iotests.FilePath('img0-incr') as img0_incr_path, \ 37 iotests.FilePath('img1-incr') as img1_incr_path, \
|
H A D | 255 | 33 with iotests.FilePath('t.qcow2') as disk_path, \ 34 iotests.FilePath('t.qcow2.mid') as mid_path, \ 35 iotests.FilePath('t.qcow2.base') as base_path, \ 85 with iotests.FilePath('src.qcow2') as src_path, \ 86 iotests.FilePath('dst.qcow2') as dst_path, \
|
H A D | 258 | 69 with iotests.FilePath('node4.img') as node4_path, \ 70 iotests.FilePath('node3.img') as node3_path, \ 71 iotests.FilePath('node2.img') as node2_path, \ 72 iotests.FilePath('node1.img') as node1_path, \ 73 iotests.FilePath('node0.img') as node0_path, \
|
H A D | 202 | 31 with iotests.FilePath('disk0.img') as disk0_img_path, \ 32 iotests.FilePath('disk1.img') as disk1_img_path, \ 33 iotests.FilePath('disk0-snap.img') as disk0_snap_img_path, \ 34 iotests.FilePath('disk1-snap.img') as disk1_snap_img_path, \
|
H A D | 208 | 28 with iotests.FilePath('disk.img') as disk_img_path, \ 29 iotests.FilePath('disk-snapshot.img') as disk_snapshot_img_path, \ 30 iotests.FilePath('nbd.sock', base_dir=iotests.sock_dir) as nbd_sock_path, \
|
H A D | 234 | 30 with iotests.FilePath('img') as img_path, \ 31 iotests.FilePath('backing') as backing_path, \ 32 iotests.FilePath('mig_fifo_a') as fifo_a, \ 33 iotests.FilePath('mig_fifo_b') as fifo_b, \
|
H A D | 310 | 38 with iotests.FilePath('base.img') as base_img_path, \ 39 iotests.FilePath('mid.img') as mid_img_path, \ 40 iotests.FilePath('top.img') as top_img_path, \
|
H A D | 237 | 30 with iotests.FilePath('t.vmdk') as disk_path, \ 31 iotests.FilePath('t.vmdk.1') as extent1_path, \ 32 iotests.FilePath('t.vmdk.2') as extent2_path, \ 33 iotests.FilePath('t.vmdk.3') as extent3_path, \
|
H A D | 224 | 45 with iotests.FilePath('base.img') as base_img_path, \ 46 iotests.FilePath('mid.img') as mid_img_path, \ 47 iotests.FilePath('top.img') as top_img_path, \
|
H A D | 194 | 28 with iotests.FilePath('source.img') as source_img_path, \ 29 iotests.FilePath('dest.img') as dest_img_path, \ 30 iotests.FilePath('migration.sock', 'nbd.sock', base_dir=iotests.sock_dir) \
|
H A D | 216 | 47 with iotests.FilePath('base.img') as base_img_path, \ 48 iotests.FilePath('top.img') as top_img_path, \
|
H A D | 203 | 32 with iotests.FilePath('disk0.img') as disk0_img_path, \ 33 iotests.FilePath('disk1.img') as disk1_img_path, \
|
H A D | 280 | 32 with iotests.FilePath('base') as base_path , \ 33 iotests.FilePath('top') as top_path, \
|
H A D | 262 | 31 with iotests.FilePath('img') as img_path, \ 32 iotests.FilePath('mig_fifo') as fifo, \
|
/openbmc/qemu/tests/qemu-iotests/tests/ |
H A D | iothreads-stream | 28 with iotests.FilePath('disk1.img') as base1_path, \ 29 iotests.FilePath('disk1-snap.img') as snap1_path, \ 30 iotests.FilePath('disk2.img') as base2_path, \ 31 iotests.FilePath('disk2-snap.img') as snap2_path, \
|
H A D | iothreads-commit-active | 28 with iotests.FilePath('disk0.img') as img_path, \ 29 iotests.FilePath('disk0-snap.img') as snap_path, \ 30 iotests.FilePath('mirror-src.img') as src_path, \ 31 iotests.FilePath('mirror-dst.img') as dst_path, \
|
H A D | image-fleecing | 280 with iotests.FilePath('base.img') as base_img_path, \ 281 iotests.FilePath('fleece.img') as fleece_img_path, \ 288 with iotests.FilePath('nbd.sock', 294 with iotests.FilePath('target.img') as target_img_path:
|
H A D | iothreads-nbd-export | 28 with iotests.FilePath('disk1.img') as path, \ 29 iotests.FilePath('nbd.sock', base_dir=iotests.sock_dir) as nbd_sock, \
|
/openbmc/phosphor-dbus-interfaces/gen/xyz/openbmc_project/Common/FilePath/ |
H A D | meson.build | 3 sdbusplus_current_path = 'xyz/openbmc_project/Common/FilePath' 8 '../../../../../yaml/xyz/openbmc_project/Common/FilePath.interface.yaml', 28 'xyz/openbmc_project/Common/FilePath',
|