Tests: remove fedoratest and replace it with test_distro
fedoratest was yet another dummy distribution used by unit tests. After the rework of test_distro, there is no reason to not use it as the only distro implementation for testing purposes. Remove fedoratest distro and replace it with test_distro in all affected tests. Signed-off-by: Tomas Hozza <thozza@redhat.com>
This commit is contained in:
parent
e5dd45b71c
commit
f7f064274a
11 changed files with 151 additions and 270 deletions
|
|
@ -14,10 +14,11 @@ import (
|
|||
)
|
||||
|
||||
type TestState struct {
|
||||
socket *http.Client
|
||||
apiVersion int
|
||||
repoDir string
|
||||
unitTest bool
|
||||
socket *http.Client
|
||||
apiVersion int
|
||||
repoDir string
|
||||
unitTest bool
|
||||
imageTypeName string
|
||||
}
|
||||
|
||||
// isStringInSlice returns true if the string is present, false if not
|
||||
|
|
@ -31,8 +32,8 @@ func isStringInSlice(slice []string, s string) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
func setUpTestState(socketPath string, unitTest bool) (*TestState, error) {
|
||||
state := TestState{unitTest: unitTest}
|
||||
func setUpTestState(socketPath string, imageTypeName string, unitTest bool) (*TestState, error) {
|
||||
state := TestState{imageTypeName: imageTypeName, unitTest: unitTest}
|
||||
|
||||
state.socket = &http.Client{
|
||||
Transport: &http.Transport{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue