createExecCommand creates and returns an empty exec command in a schema structure
()
| 101 | |
| 102 | // createExecCommand creates and returns an empty exec command in a schema structure |
| 103 | func (testDevFile *TestDevfile) createExecCommand() *schema.Command { |
| 104 | |
| 105 | LogInfoMessage("Create an exec command :") |
| 106 | command := schema.Command{} |
| 107 | command.Id = GetRandomUniqueString(8, true) |
| 108 | LogInfoMessage(fmt.Sprintf("command Id: %s", command.Id)) |
| 109 | command.Exec = &schema.ExecCommand{} |
| 110 | testDevFile.commandAdded(command) |
| 111 | return &command |
| 112 | |
| 113 | } |
| 114 | |
| 115 | // SetExecCommandValues randomly sets/updates exec command attributes to random values |
| 116 | func (testDevFile *TestDevfile) SetExecCommandValues(command *schema.Command) { |
no test coverage detected