Skip to content

Commit

Permalink
Update rpm-ostree tests with new signatures
Browse files Browse the repository at this point in the history
We changed the interface for RpmOstreeClient, so we need to make sure
the mocks are also up to date with the new signatures
  • Loading branch information
jkyros committed Jul 19, 2022
1 parent 05541a2 commit aae5594
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkg/daemon/rpm-ostree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,15 @@ func (r RpmOstreeClientMock) GetStatus() (string, error) {
func (r RpmOstreeClientMock) GetBootedDeployment() (*RpmOstreeDeployment, error) {
return &RpmOstreeDeployment{}, nil
}

func (r RpmOstreeClientMock) GetBootedAndStagedDeployment() (booted, staged *RpmOstreeDeployment, err error) {
return nil, nil, nil
}

func (r RpmOstreeClientMock) IsBootableImage(string) (bool, error) {
return false, nil
}

func (r RpmOstreeClientMock) RebaseLayered(string) error {
return nil
}

0 comments on commit aae5594

Please sign in to comment.