Skip to content

Commit 8dc0f4d

Browse files
Merge pull request #5386 from sergiordlr/mco-1911-migrate-password-tests-use-right-naming
MCO-1911: Use the right naming in migrated test cases
2 parents 5ae01fc + 6b1ad29 commit 8dc0f4d

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

test/extended-priv/mco_ocb.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var _ = g.Describe("[sig-mco][Suite:openshift/machine-config-operator/disruptive
2222
skipTestIfOCBIsEnabled(oc)
2323
})
2424

25-
g.It("PolarionID:83141-A valid MachineOSConfig leads to a successful MachineOSBuild and cleanup of its associated resources", func() {
25+
g.It("[PolarionID:83141][OTP] A valid MachineOSConfig leads to a successful MachineOSBuild and cleanup of its associated resources", func() {
2626
var (
2727
mcpAndMoscName = "infra"
2828
)
@@ -53,7 +53,7 @@ var _ = g.Describe("[sig-mco][Suite:openshift/machine-config-operator/disruptive
5353

5454
})
5555

56-
g.It("PolarionID:83138-A MachineOSConfig fails to apply or degrades if invalid inputs are given", func() {
56+
g.It("[PolarionID:83138][OTP] A MachineOSConfig fails to apply or degrades if invalid inputs are given", func() {
5757
var (
5858
mcpAndMoscName = "infra"
5959
pushSpec = fmt.Sprintf("%s/openshift-machine-config-operator/ocb-%s-image:latest", InternalRegistrySvcURL, mcpAndMoscName)
@@ -106,7 +106,7 @@ var _ = g.Describe("[sig-mco][Suite:openshift/machine-config-operator/disruptive
106106
logger.Infof("OK!")
107107
})
108108

109-
g.It("PolarionID:83140-A MachineOSConfig with custom containerfile definition can be successfully applied", func() {
109+
g.It("[PolarionID:83140][OTP] A MachineOSConfig with custom containerfile definition can be successfully applied", func() {
110110
var (
111111
mcp = GetCompactCompatiblePool(oc.AsAdmin())
112112

@@ -145,7 +145,7 @@ var _ = g.Describe("[sig-mco][Suite:openshift/machine-config-operator/disruptive
145145
testContainerFile([]ContainerFile{{Content: containerFileContent}}, MachineConfigNamespace, mcp, checkers, false)
146146
})
147147

148-
g.It("PolarionID:77781-A successfully built MachineOSConfig can be re-build", func() {
148+
g.It("[PolarionID:77781][OTP] A successfully built MachineOSConfig can be re-build", func() {
149149

150150
var (
151151
mcp = GetCompactCompatiblePool(oc.AsAdmin())
@@ -167,7 +167,7 @@ var _ = g.Describe("[sig-mco][Suite:openshift/machine-config-operator/disruptive
167167
logger.Infof("OK!\n")
168168
})
169169

170-
g.It("PolarionID:77782-A MachineOSConfig with an unfinished build can be re-build", func() {
170+
g.It("[PolarionID:77782][OTP] A MachineOSConfig with an unfinished build can be re-build", func() {
171171

172172
var (
173173
mcp = GetCompactCompatiblePool(oc.AsAdmin())

test/extended-priv/mco_password.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ var _ = g.Describe("[sig-mco][Suite:openshift/machine-config-operator/disruptive
4141
preChecks(oc)
4242
})
4343

44-
g.It("PolarionID:59417-MCD create/update password with MachineConfig in CoreOS nodes", func() {
44+
g.It("[PolarionID:59417][OTP] MCD create/update password with MachineConfig in CoreOS nodes", func() {
4545
var (
4646
mcName = "tc-59417-test-core-passwd"
4747
mcc = NewController(oc.AsAdmin()).IgnoreLogsBeforeNowOrFail()
@@ -129,7 +129,7 @@ var _ = g.Describe("[sig-mco][Suite:openshift/machine-config-operator/disruptive
129129

130130
})
131131

132-
g.It("PolarionID:72137-Create a password for a user different from 'core' user", func() {
132+
g.It("[PolarionID:72137][OTP] Create a password for a user different from 'core' user", func() {
133133
var (
134134
mcName = "mco-tc-59900-wrong-user-password"
135135
wrongUser = "root"
@@ -149,7 +149,7 @@ var _ = g.Describe("[sig-mco][Suite:openshift/machine-config-operator/disruptive
149149
})
150150

151151
// https://issues.redhat.com/browse/MCO-1696
152-
g.It("PolarionID:59424-ssh keys can be found in new dir on RHCOS9 node", func() {
152+
g.It("[PolarionID:59424][OTP] ssh keys can be found in new dir on RHCOS9 node", func() {
153153
var (
154154
allCoreOsNodes = wMcp.GetCoreOsNodesOrFail()
155155
allMasters = mMcp.GetNodesOrFail()
@@ -191,7 +191,7 @@ var _ = g.Describe("[sig-mco][Suite:openshift/machine-config-operator/disruptive
191191
}
192192
})
193193

194-
g.It("PolarionID:59426-ssh keys can be updated in new dir on RHCOS9 node", func() {
194+
g.It("[PolarionID:59426][LEVEL0][OTP] ssh keys can be updated in new dir on RHCOS9 node", func() {
195195

196196
var (
197197
mcName = "tc-59426-add-ssh-key"
@@ -276,7 +276,7 @@ var _ = g.Describe("[sig-mco][Suite:openshift/machine-config-operator/disruptive
276276

277277
})
278278

279-
g.It("PolarionID:62533-Passwd login must not work with ssh", func() {
279+
g.It("[PolarionID:62533][OTP] Passwd login must not work with ssh", func() {
280280
var (
281281
mcName = "tc-62533-test-passwd-ssh-login"
282282
password = exutil.GetRandomString()
@@ -312,7 +312,7 @@ var _ = g.Describe("[sig-mco][Suite:openshift/machine-config-operator/disruptive
312312
logger.Infof("OK!\n")
313313
})
314314

315-
g.It("PolarionID:64986-Remove all ssh keys", func() {
315+
g.It("[PolarionID:64986][OTP] Remove all ssh keys", func() {
316316
var (
317317
sshMCName = "99-" + mcp.GetName() + "-ssh"
318318
backupMCFile = filepath.Join(e2e.TestContext.OutputDir, "tc-64986-"+sshMCName+".backup.json")
@@ -373,7 +373,7 @@ var _ = g.Describe("[sig-mco][Suite:openshift/machine-config-operator/disruptive
373373
logger.Infof("OK!\n")
374374
})
375375

376-
g.It("PolarionID:75552-apply ssh keys when root owns .ssh", func() {
376+
g.It("[PolarionID:75552][OTP] apply ssh keys when root owns .ssh", func() {
377377
var (
378378
node = mcp.GetSortedNodesOrFail()[0]
379379
authKeysdDir = NewRemoteFile(node, "/home/core/.ssh/authorized_keys.d")

test/extended-priv/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ func IsCapabilityEnabled(oc *exutil.CLI, capability string) bool {
419419
func GetCurrentTestPolarionIDNumber() string {
420420
name := g.CurrentSpecReport().FullText()
421421

422-
r := regexp.MustCompile(`PolarionID:(?P<id>\d+)`)
422+
r := regexp.MustCompile(`\[PolarionID:(?P<id>\d+)\]`)
423423

424424
matches := r.FindStringSubmatch(name)
425425
number := r.SubexpIndex("id")

0 commit comments

Comments
 (0)