package
0.0.0-20241104161355-939959eb3a81
Repository: https://github.com/uyuni-project/uyuni-tools.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AssertEquals ensures two values are equals and raises and error if not.
AssertHasAllFlags ensures that all the flags of a command are present in the args slice.
AssertTrue ensures a value is true and raises and error if not.
FailedLoginTestDo is a helper function to mock a failed login response due to incorrect credentials.
GetResponse is a helper function to generate a response with the given status and json body.
GetResponseWithCookie is a helper function to generate a response with the given status and json body.
ReadFile returns the content of a file as a string and fails is anything wrong happens.
ReadFileAsBinary returns the content of a file as a slice of int8.
SuccessfulLoginTestDo is a helper function to mock a successful login response.
WriteFile writes the content in a file at the given path and fails if anything wrong happens.