SetProjectValues sets project attributes, common to all projects, to random values.
(project *schema.Project)
| 148 | |
| 149 | // SetProjectValues sets project attributes, common to all projects, to random values. |
| 150 | func (testDevfile *TestDevfile) SetProjectValues(project *schema.Project) { |
| 151 | |
| 152 | if GetBinaryDecision() { |
| 153 | project.ClonePath = "./" + GetRandomString(GetRandomNumber(4, 12), false) |
| 154 | LogInfoMessage(fmt.Sprintf("Set ClonePath : %s", project.ClonePath)) |
| 155 | } |
| 156 | |
| 157 | if project.Git != nil { |
| 158 | setGitProjectValues(project.Git) |
| 159 | } else if project.Zip != nil { |
| 160 | setZipProjectValues(project.Zip) |
| 161 | } |
| 162 | |
| 163 | testDevfile.projectUpdated(*project) |
| 164 | } |
| 165 | |
| 166 | // SetStarterProjectValues sets starter project attributes, common to all starter projects, to random values. |
| 167 | func (testDevfile *TestDevfile) SetStarterProjectValues(starterProject *schema.StarterProject) { |
no test coverage detected