replaceSchemaProject replaces a Project in the saved devfile schema structure
(project schema.Project)
| 59 | |
| 60 | // replaceSchemaProject replaces a Project in the saved devfile schema structure |
| 61 | func (testDevfile *TestDevfile) replaceSchemaProject(project schema.Project) { |
| 62 | for i := 0; i < len(testDevfile.SchemaDevFile.Projects); i++ { |
| 63 | if testDevfile.SchemaDevFile.Projects[i].Name == project.Name { |
| 64 | testDevfile.SchemaDevFile.Projects[i] = project |
| 65 | break |
| 66 | } |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | // replaceSchemaStarterProject replaces a Starter Project in the saved devfile schema structure |
| 71 | func (testDevfile *TestDevfile) replaceSchemaStarterProject(starterProject schema.StarterProject) { |