@@ -25,6 +25,7 @@ var _ = g.Describe("[sig-cli] templates", func() {
2525 appTemplateStiPath = filepath .Join (testDataPath , "application-template-stibuild.json" )
2626 guestbookTemplatePath = filepath .Join (testDataPath , "templates" , "guestbook.json" )
2727 guestbookTemplateEnvPath = filepath .Join (testDataPath , "templates" , "guestbook.env" )
28+ templateWithCRDNSPath = filepath .Join (testDataPath , "new-app" , "template-with-crd-ns.yaml" )
2829 templateRequiredParamPath = filepath .Join (testDataPath , "templates" , "template_required_params.yaml" )
2930 templateRequiredParamEnvPath = filepath .Join (testDataPath , "templates" , "template_required_params.env" )
3031 templateTypePrecisionPath = filepath .Join (testDataPath , "templates" , "template-type-precision.json" )
@@ -45,6 +46,8 @@ var _ = g.Describe("[sig-cli] templates", func() {
4546 o .Expect (err ).NotTo (o .HaveOccurred ())
4647 err = oc .WithoutNamespace ().Run ("process" ).Args ("-f" , outputYamlFile ).Execute ()
4748 o .Expect (err ).NotTo (o .HaveOccurred ())
49+ err = oc .WithoutNamespace ().Run ("process" ).Args ("-f" , templateWithCRDNSPath ).Execute ()
50+ o .Expect (err ).NotTo (o .HaveOccurred ())
4851 err = oc .Run ("process" ).Args ("ruby-helloworld-sample" ).Execute ()
4952 o .Expect (err ).NotTo (o .HaveOccurred ())
5053 out , err := oc .Run ("process" ).Args ("ruby-helloworld-sample" , "-o" , "template" , "--template" , "{{.kind}}" ).Output ()
0 commit comments