mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-02 22:34:56 -04:00
AB#2439 Containerized libvirt (#191)
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
abe40de3e5
commit
2ea695896f
20 changed files with 746 additions and 50 deletions
|
@ -225,3 +225,20 @@ func (c *stubTerraformClient) CleanUpWorkspace() error {
|
|||
func (c *stubTerraformClient) RemoveInstaller() {
|
||||
c.removeInstallerCalled = true
|
||||
}
|
||||
|
||||
type stubLibvirtRunner struct {
|
||||
startCalled bool
|
||||
stopCalled bool
|
||||
startErr error
|
||||
stopErr error
|
||||
}
|
||||
|
||||
func (r *stubLibvirtRunner) Start(_ context.Context, _, _ string) error {
|
||||
r.startCalled = true
|
||||
return r.startErr
|
||||
}
|
||||
|
||||
func (r *stubLibvirtRunner) Stop(context.Context) error {
|
||||
r.stopCalled = true
|
||||
return r.stopErr
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue