blob: 34e6666970490793864ef80f25f00484ba3f5e79 [file] [log] [blame]
Patrick Venture16ab2a12019-05-31 08:52:51 -07001/* The goal of these tests is to verify the behavior of all blob commands given
2 * the current state is updateStarted. This state is achieved as an exit from
3 * updatePending.
4 */
5#include "firmware_handler.hpp"
6#include "firmware_unittest.hpp"
7#include "status.hpp"
8#include "util.hpp"
9
10#include <cstdint>
11#include <string>
12#include <vector>
13
14#include <gtest/gtest.h>
15
16namespace ipmi_flash
17{
18namespace
19{
20
21using ::testing::Return;
22
23/*
24 * There are the following calls (parameters may vary):
25 * canHandleBlob(blob)
26 * getBlobIds
27 * deleteBlob(blob)
28 * stat(blob)
29 * stat(session)
30 * open(blob)
31 * close(session)
32 * writemeta(session)
33 * write(session)
34 * read(session)
35 * commit(session)
36 */
37
38class FirmwareHandlerUpdateStartedTest : public IpmiOnlyFirmwareStaticTest
39{
40};
41
42/* canHandleBlob(blob)
43 * getBlobIds
44 */
45
46/*
47 * TODO: deleteBlob(blob)
48 */
49
50/*
51 * stat(blob)
52 */
53
54/*
55 * stat(session)
56 */
57/*
58 * open(blob)
59 */
60
61/*
62 * close(session)
63 */
64
65/*
66 * writemeta(session)
67 */
68
69/*
70 * write(session)
71 */
72
73/*
74 * read(session)
75 */
76
77/*
78 * commit(session)
79 */
80
81} // namespace
82} // namespace ipmi_flash