Skip to content

Commit

Permalink
apply multi-file test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
starpit committed Sep 3, 2022
1 parent bf6ee7e commit cbc4616
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const waitForCreate = function(this: Common.ISuite, spec: CreateSpec) {
const textExists = verifyTextExists.bind(this)

const waitForDescribeContent = async () => {
await SidecarExpect.yaml({ Name: name, Status: spec.status })(res)
await SidecarExpect.yaml({ Name: name })(res)
}

const waitForRawContent = async () => {
Expand Down
2 changes: 1 addition & 1 deletion plugins/plugin-kubectl/src/test/k8s1/apply-multi-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe(`kubectl apply multi-file ${process.env.MOCHA_RUN_TARGET || ''}`, funct
resources.forEach(resource => {
it(`should create two sample pods from URL via "${kubectl} apply ${dashF}" for test: ${this.title}`, async () => {
return openSidecarByList(this, `${kubectl} apply ${files} ${inNamespace}`, resource)
.then(SidecarExpect.descriptionList({ Status: 'Running' }))
.then(SidecarExpect.descriptionList({ Ready: '1/1' }))
.catch(Common.oops(this, true))
})
})
Expand Down
2 changes: 1 addition & 1 deletion plugins/plugin-kubectl/src/test/k8s1/apply-pod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe(`kubectl apply pod ${process.env.MOCHA_RUN_TARGET || ''}`, function(thi
this,
`${kubectl} apply ${dashF} ${remotePodYaml} ${inNamespace}`,
'nginx'
).then(SidecarExpect.descriptionList({ Status: 'Running' }))
).then(SidecarExpect.descriptionList({ Ready: '1/1' }))
} catch (err) {
return Common.oops(this, true)(err)
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/plugin-kubectl/src/test/k8s1/describe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ commands.forEach(command => {
*
*/
const testSummaryTab = async (ctx: Common.ISuite, res: ReplExpect.AppAndCount) => {
await Util.switchToTab(defaultModeForGet)(res).then(SidecarExpect.descriptionList({ Status: 'Running' }))
await Util.switchToTab(defaultModeForGet)(res).then(SidecarExpect.descriptionList({ Ready: '1/1' }))
}

allocateNS(this, ns, command)
Expand Down
2 changes: 1 addition & 1 deletion plugins/plugin-kubectl/src/test/k8s1/get-dash-o-name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe(`kubectl get dash o name ${process.env.MOCHA_RUN_TARGET || ''}`, functi
)
// now click on the table row
await Util.openSidecarByClick(this, `${selector} .clickable`, 'nginx', defaultModeForGet).then(
SidecarExpect.descriptionList({ Status: 'Running' })
SidecarExpect.descriptionList({ Ready: '1/1' })
)
} catch (err) {
return Common.oops(this, true)(err)
Expand Down

0 comments on commit cbc4616

Please sign in to comment.