addEnv creates and returns a specifed number of env attributes in a schema structure
(numEnv int)
| 44 | |
| 45 | // addEnv creates and returns a specifed number of env attributes in a schema structure |
| 46 | func addEnv(numEnv int) []schema.EnvVar { |
| 47 | commandEnvs := make([]schema.EnvVar, numEnv) |
| 48 | for i := 0; i < numEnv; i++ { |
| 49 | commandEnvs[i].Name = "Name_" + GetRandomString(5, false) |
| 50 | commandEnvs[i].Value = "Value_" + GetRandomString(5, false) |
| 51 | LogInfoMessage(fmt.Sprintf("Add Env: %s", commandEnvs[i])) |
| 52 | } |
| 53 | return commandEnvs |
| 54 | } |
| 55 | |
| 56 | // addAttributes creates returns a specifed number of attributes in a schema structure |
| 57 | func addAttributes(numAtrributes int) map[string]string { |
no test coverage detected