Skip to content

Commit d5d53c5

Browse files
committed
in-progress
Signed-off-by: Jeromy Cannon <[email protected]>
1 parent f2476be commit d5d53c5

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

application.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# testing
2+
# line #2

charts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../full-stack-testing/charts

test/e2e/commands/node.test.mjs

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
import { AccountBalanceQuery, AccountCreateTransaction, Hbar, PrivateKey } from '@hashgraph/sdk'
1818
import {
19-
afterAll,
19+
afterAll, beforeAll,
2020
describe,
2121
expect,
2222
it
@@ -111,4 +111,29 @@ describe.each([
111111
}
112112
}, 20000)
113113
})
114+
115+
describe(`Node should refresh successfully [release ${input.keyFormat}, keyFormat: ${input.releaseTag}]`, () => {
116+
let podName = ''
117+
beforeAll(async () => {
118+
const podArray = await k8.getPodsByLabel(['app=haproxy-node0', 'fullstack.hedera.com/type=haproxy'])
119+
120+
if (podArray.length > 0) {
121+
podName = podArray[0].metadata.name
122+
const resp = await k8.kubeClient.deleteNamespacedPod(podName, namespace)
123+
expect(resp.response.statusCode).toEqual(200)
124+
} else {
125+
throw new Error('pod for node0 not found')
126+
}
127+
})
128+
129+
it('Node 0 should not be running', async () => {
130+
expect(podName).toContain('node0')
131+
const podArray = await this.k8.getPodsByLabel(['app=haproxy-node0', 'fullstack.hedera.com/type=haproxy'])
132+
console.log(podArray)
133+
})
134+
it('Node refresh should succeed', async () => {
135+
})
136+
// TODO need to test with PVCs
137+
// TODO will have changes when configMap/secrets are implemented
138+
})
114139
})

0 commit comments

Comments
 (0)