Create/delete containerd containerd
Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
@@ -56,6 +56,8 @@ type SandboxMetadata struct {
|
||||
CreatedAt int64
|
||||
// NetNS is the network namespace used by the sandbox.
|
||||
NetNS string
|
||||
// Pid is the process id of the sandbox.
|
||||
Pid uint32
|
||||
}
|
||||
|
||||
// SandboxUpdateFunc is the function used to update SandboxMetadata.
|
||||
|
||||
@@ -42,6 +42,7 @@ func TestSandboxStore(t *testing.T) {
|
||||
},
|
||||
CreatedAt: time.Now().UnixNano(),
|
||||
NetNS: "TestNetNS-1",
|
||||
Pid: 1001,
|
||||
},
|
||||
"2": {
|
||||
ID: "2",
|
||||
@@ -56,6 +57,7 @@ func TestSandboxStore(t *testing.T) {
|
||||
},
|
||||
CreatedAt: time.Now().UnixNano(),
|
||||
NetNS: "TestNetNS-2",
|
||||
Pid: 1002,
|
||||
},
|
||||
"3": {
|
||||
ID: "3",
|
||||
@@ -70,6 +72,7 @@ func TestSandboxStore(t *testing.T) {
|
||||
},
|
||||
CreatedAt: time.Now().UnixNano(),
|
||||
NetNS: "TestNetNS-3",
|
||||
Pid: 1003,
|
||||
},
|
||||
}
|
||||
assert := assertlib.New(t)
|
||||
|
||||
Reference in New Issue
Block a user