server: add inspect unit test
The inspect endpoint is used mainly in the CRI-O cAdvisor handler. Let's make sure we don't break it by adding some trivial unit tests. Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
400713a58b
commit
e26e48ec87
6 changed files with 332 additions and 54 deletions
|
@ -233,3 +233,10 @@ func (c *Container) SetMountPoint(mp string) {
|
|||
func (c *Container) MountPoint() string {
|
||||
return c.mountPoint
|
||||
}
|
||||
|
||||
// SetState sets the conainer state
|
||||
//
|
||||
// XXX: DO NOT EVER USE THIS, THIS IS JUST USEFUL FOR MOCKING!!!
|
||||
func (c *Container) SetState(state *ContainerState) {
|
||||
c.state = state
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue