getRemotes creates and returns a map of remotes
(numRemotes int)
| 79 | |
| 80 | // getRemotes creates and returns a map of remotes |
| 81 | func getRemotes(numRemotes int) map[string]string { |
| 82 | remotes := make(map[string]string) |
| 83 | for i := 0; i < numRemotes; i++ { |
| 84 | key := GetRandomUniqueString(GetRandomNumber(6, 12), false) |
| 85 | remotes[key] = GetRandomUniqueString(GetRandomNumber(6, 12), false) |
| 86 | LogInfoMessage(fmt.Sprintf("Set remote key= %s, value= %s", key, remotes[key])) |
| 87 | } |
| 88 | return remotes |
| 89 | } |
| 90 | |
| 91 | // AddProject adds a project of the specified type, with random attributes, to the devfile schema |
| 92 | func (testDevfile *TestDevfile) AddProject(projectType schema.ProjectSourceType) string { |
no test coverage detected