diff --git a/go.mod b/go.mod index 7607c0d63..4416973a4 100644 --- a/go.mod +++ b/go.mod @@ -29,7 +29,7 @@ require ( k8s.io/kubelet v0.0.0 k8s.io/kubernetes v1.17.0 k8s.io/utils v0.0.0-20191114184206-e782cd3c129f - kubevirt.io/qe-tools v0.1.4 + kubevirt.io/qe-tools v0.1.6 sigs.k8s.io/controller-runtime v0.4.0 ) diff --git a/go.sum b/go.sum index 3f0d1c90a..6157db040 100644 --- a/go.sum +++ b/go.sum @@ -1196,8 +1196,8 @@ k8s.io/utils v0.0.0-20190801114015-581e00157fb1/go.mod h1:sZAwmy6armz5eXlNoLmJcl k8s.io/utils v0.0.0-20190920012459-5008bf6f8cd6/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew= k8s.io/utils v0.0.0-20191114184206-e782cd3c129f h1:GiPwtSzdP43eI1hpPCbROQCCIgCuiMMNF8YUVLF3vJo= k8s.io/utils v0.0.0-20191114184206-e782cd3c129f/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew= -kubevirt.io/qe-tools v0.1.4 h1:q4xvpLIyO6Ljl7u4Bu27EM2guNAuPolOqwCYJ2QeIik= -kubevirt.io/qe-tools v0.1.4/go.mod h1:PJyH/YXC4W0AmxfheDmXWMbLNsMSboVGXKpMAwfKzVE= +kubevirt.io/qe-tools v0.1.6 h1:S6z9CATmgV2/z9CWetij++Rhu7l/Z4ObZqerLdNMo0Y= +kubevirt.io/qe-tools v0.1.6/go.mod h1:PJyH/YXC4W0AmxfheDmXWMbLNsMSboVGXKpMAwfKzVE= modernc.org/cc v1.0.0/go.mod h1:1Sk4//wdnYJiUIxnW8ddKpaOJCF37yAdqYnkxUpaYxw= modernc.org/golex v1.0.0/go.mod h1:b/QX9oBD/LhixY6NDh+IdGv17hgB+51fET1i2kPSmvk= modernc.org/mathutil v1.0.0/go.mod h1:wU0vUrJsVWBZ4P6e7xtFJEhFSNsfRLJ8H458uRjg03k= diff --git a/vendor/kubevirt.io/qe-tools/pkg/ginkgo-reporters/README.md b/vendor/kubevirt.io/qe-tools/pkg/ginkgo-reporters/README.md index f04fb7571..60454914a 100644 --- a/vendor/kubevirt.io/qe-tools/pkg/ginkgo-reporters/README.md +++ b/vendor/kubevirt.io/qe-tools/pkg/ginkgo-reporters/README.md @@ -15,6 +15,8 @@ This reporter fills in the xunit file the needed fields in order to upload it in - --polarion-report-file the output file will be generated under working directory, the default is polarion_results.xml - --test-suite-params="OS=EL8 Storage=NFS Arch=x86" will be set under 'properties' and the values will get concatenated to the test run name - --test-id-prefix="PREFIX" will set "PREFIX" for each test ID in test properties, if this parameter is not passed, the project ID parameter is set to be that prefix by default +- --test-run-template="Existing template name" will create the test run from an existing template +- --test-run-title="Title" will set the test run title ### Usage diff --git a/vendor/kubevirt.io/qe-tools/pkg/ginkgo-reporters/polarion_reporter.go b/vendor/kubevirt.io/qe-tools/pkg/ginkgo-reporters/polarion_reporter.go index 110318861..7ae5aaaf6 100644 --- a/vendor/kubevirt.io/qe-tools/pkg/ginkgo-reporters/polarion_reporter.go +++ b/vendor/kubevirt.io/qe-tools/pkg/ginkgo-reporters/polarion_reporter.go @@ -42,6 +42,8 @@ func init() { flag.StringVar(&Polarion.LookupMethod, "polarion-lookup-method", "id", "Set Polarion lookup method - id or name") flag.StringVar(&Polarion.TestSuiteParams, "test-suite-params", "", "Set test suite params in space seperated name=value structure. Note that the values will be appended to the test run ID") flag.StringVar(&Polarion.TestIDPrefix, "test-id-prefix", "", "Set Test ID prefix, in the case it is different than project ID") + flag.StringVar(&Polarion.TestRunTemplate, "test-run-template", "", "Set Test run template, if you wish to create your test run from an existing template") + flag.StringVar(&Polarion.TestRunTitle, "test-run-title", "", "Set Test run title, if you wish to nane your test run") } type PolarionTestSuite struct { @@ -89,6 +91,8 @@ type PolarionReporter struct { LookupMethod string TestSuiteParams string TestIDPrefix string + TestRunTemplate string + TestRunTitle string } func (reporter *PolarionReporter) SpecSuiteWillBegin(config config.GinkgoConfigType, summary *types.SuiteSummary) { @@ -121,6 +125,14 @@ func (reporter *PolarionReporter) SpecSuiteWillBegin(config config.GinkgoConfigT reporter.Suite.Properties.Property, "polarion-custom-isautomated", "True") reporter.Suite.Properties.Property = addProperty( reporter.Suite.Properties.Property, "polarion-testrun-status-id", "inprogress") + if reporter.TestRunTemplate != "" { + reporter.Suite.Properties.Property = addProperty( + reporter.Suite.Properties.Property, "polarion-testrun-template-id", reporter.TestRunTemplate) + } + if reporter.TestRunTitle != "" { + reporter.Suite.Properties.Property = addProperty( + reporter.Suite.Properties.Property, "polarion-testrun-title", reporter.TestRunTitle) + } reporter.TestSuiteName = summary.SuiteDescription } diff --git a/vendor/modules.txt b/vendor/modules.txt index 9e96d002f..f700fe779 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -454,7 +454,7 @@ k8s.io/utils/pointer k8s.io/utils/buffer k8s.io/utils/trace k8s.io/utils/integer -# kubevirt.io/qe-tools v0.1.4 +# kubevirt.io/qe-tools v0.1.6 kubevirt.io/qe-tools/pkg/ginkgo-reporters kubevirt.io/qe-tools/pkg/polarion-xml # sigs.k8s.io/controller-runtime v0.4.0