Merge pull request #2628 from bergwolf/runtime-reorg

runtime: refactor commandline code directory
This commit is contained in:
Hui Zhu
2021-09-17 10:37:22 +08:00
committed by GitHub
85 changed files with 171 additions and 204 deletions

View File

@@ -689,18 +689,3 @@ func TestConfigValid(t *testing.T) {
result = config.valid()
assert.True(result)
}
func TestStoreContainer(t *testing.T) {
hConfig := newHypervisorConfig(nil, nil)
sandbox, err := testCreateSandbox(t, testSandboxID, MockHypervisor, hConfig, NetworkConfig{}, nil, nil)
assert.NoError(t, err)
defer cleanUp()
container := &Container{
sandbox: sandbox,
}
err = container.storeContainer()
assert.Nil(t, err, "store container should succeed")
}