SetApplyCommandValues randomly sets/updates apply command attributes to random values
(command *schema.Command)
| 229 | |
| 230 | // SetApplyCommandValues randomly sets/updates apply command attributes to random values |
| 231 | func (testDevFile *TestDevfile) SetApplyCommandValues(command *schema.Command) { |
| 232 | applyCommand := command.Apply |
| 233 | |
| 234 | applyCommand.Component = testDevFile.GetContainerName() |
| 235 | |
| 236 | if GetRandomDecision(2, 1) { |
| 237 | applyCommand.Group = testDevFile.addGroup() |
| 238 | } |
| 239 | |
| 240 | if GetBinaryDecision() { |
| 241 | applyCommand.Label = GetRandomString(63, false) |
| 242 | LogInfoMessage(fmt.Sprintf("....... label: %s", applyCommand.Label)) |
| 243 | } |
| 244 | |
| 245 | testDevFile.commandUpdated(*command) |
| 246 | } |
no test coverage detected