use of com.redhat.devtools.intellij.tektoncd.utils.model.resources.PipelineConfigurationModel in project intellij-tekton by redhat-developer.
the class PipelineConfigurationModelTest method checkPipelineModelWithMultipleInputs.
@Test
public void checkPipelineModelWithMultipleInputs() throws IOException {
String configuration = load("pipeline6.yaml");
PipelineConfigurationModel model = (PipelineConfigurationModel) ConfigurationModelFactory.getModel(configuration);
assertEquals(model.getName(), "foo");
assertEquals(model.getNamespace(), "tekton");
assertEquals(model.getKind(), "Pipeline");
assertTrue(model.getParams().size() == 1);
assertEquals(model.getParams().get(0).name(), "path");
assertTrue(model.getInputResources().size() == 1);
assertEquals(model.getInputResources().get(0).name(), "source-repo");
assertEquals(model.getInputResources().get(0).type(), "git");
assertTrue(model.getOutputResources().isEmpty());
assertTrue(model.getWorkspaces().size() == 2);
assertEquals(model.getWorkspaces().get(0).getName(), "password-vault");
assertEquals(model.getWorkspaces().get(1).getName(), "recipe-store");
}
Aggregations