Skip to content

Commit 26eb87a

Browse files
authored
fix: add skipamtcertcheck flag for AMT19+ activation support (#3195)
1 parent cdc4f53 commit 26eb87a

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

cypress/e2e/integration/rpc/cloud.activation.spec.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ if (Cypress.env('ISOLATE').charAt(0).toLowerCase() !== 'y') {
2929

3030
// Default: use Docker (Linux/Mac); Windows overrides below use rpc.exe directly
3131
let infoCommand = `docker run --rm --network host --device=/dev/mei0 ${rpcDockerImage} amtinfo --json`
32-
let activateCommand = `docker run --rm --network host --device=/dev/mei0 ${rpcDockerImage} activate -u wss://${fqdn}/activate -v -n --profile ${profileName} --json`
33-
let deactivateCommand = `docker run --rm --network host --device=/dev/mei0 ${rpcDockerImage} deactivate -u wss://${fqdn}/activate -v -n -f --json --password ${password}`
32+
let activateCommand = `docker run --rm --network host --device=/dev/mei0 ${rpcDockerImage} activate -u wss://${fqdn}/activate -v -n -skipamtcertcheck --profile ${profileName} --json`
33+
let deactivateCommand = `docker run --rm --network host --device=/dev/mei0 ${rpcDockerImage} deactivate -u wss://${fqdn}/activate -v -n -skipamtcertcheck -f --json --password ${password}`
3434

3535
if (isWin) {
36-
activateCommand = `rpc.exe activate -u wss://${fqdn}/activate -v -n --profile ${profileName} --json`
36+
activateCommand = `rpc.exe activate -u wss://${fqdn}/activate -v -n -skipamtcertcheck --profile ${profileName} --json`
3737
infoCommand = 'rpc.exe amtinfo --json'
38-
deactivateCommand = `rpc.exe deactivate -u wss://${fqdn}/activate -v -n -f --json --password ${password}`
38+
deactivateCommand = `rpc.exe deactivate -u wss://${fqdn}/activate -v -n -skipamtcertcheck -f --json --password ${password}`
3939
}
4040

4141
describe('Device Activation - Cloud', () => {
42-
context('TC_DEVICE_ACTIVATE_AND_DEACTIVATE', () => {
42+
context('TC_ACTIVATION_DEVICE_ACTIVATE_AND_DEACTIVATE', () => {
4343
beforeEach(() => {
4444
cy.setup()
4545
cy.exec(infoCommand, execConfig).then((result) => {
@@ -69,9 +69,9 @@ if (Cypress.env('ISOLATE').charAt(0).toLowerCase() !== 'y') {
6969
}
7070

7171
if (isAdminControlModeProfile) {
72-
expect(combined).to.contain('Status: Admin control mode')
72+
expect(combined).to.match(/Status: admin control mode/i)
7373
} else {
74-
expect(combined).to.contain('Status: Client control mode')
74+
expect(combined).to.match(/Status: client control mode/i)
7575
}
7676

7777
if (parts[2] === 'CIRA') {
@@ -156,6 +156,7 @@ if (Cypress.env('ISOLATE').charAt(0).toLowerCase() !== 'y') {
156156
const { combined } = buildOutput(result)
157157
cy.log(combined)
158158
expect(combined).to.contain('Status: Deactivated')
159+
cy.wait(10000)
159160
})
160161
}
161162
})

cypress/e2e/integration/rpc/console.activation.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ if (Cypress.env('ISOLATE').charAt(0).toLowerCase() !== 'y') {
3434

3535
// Default: use Docker (Linux/Mac); Windows overrides below use rpc.exe directly
3636
let infoCommand = `docker run --rm --network host --device=/dev/mei0 -v ${profileDir}:/config ${rpcDockerImage} amtinfo -json`
37-
let activateCommand = `docker run --rm --network host --device=/dev/mei0 -v ${profileDir}:/config ${rpcDockerImage} activate -local -configv2 /config/${profileFileName} -configencryptionkey ${encryptionKey} -skipamtcertcheck -v -n -json`
38-
let deactivateCommand = `docker run --rm --network host --device=/dev/mei0 -v ${profileDir}:/config ${rpcDockerImage} deactivate -local -v -n -f -json -password ${password}`
37+
let activateCommand = `docker run --rm --network host --device=/dev/mei0 -v ${profileDir}:/config ${rpcDockerImage} activate -local -configv2 /config/${profileFileName} -configencryptionkey ${encryptionKey} -v -skipamtcertcheck -json`
38+
let deactivateCommand = `docker run --rm --network host --device=/dev/mei0 -v ${profileDir}:/config ${rpcDockerImage} deactivate -local -v -skipamtcertcheck -f -json -password ${password}`
3939

4040
if (isWin) {
41-
activateCommand = `rpc.exe activate -local -configv2 ${profileYamlFile} -configencryptionkey ${encryptionKey} -skipamtcertcheck -v -n -json`
41+
activateCommand = `rpc.exe activate -local -configv2 ${profileYamlFile} -configencryptionkey ${encryptionKey} -v -skipamtcertcheck -json`
4242
infoCommand = 'rpc.exe amtinfo -json'
43-
deactivateCommand = `rpc.exe deactivate -local -v -n -f -json -password ${password}`
43+
deactivateCommand = `rpc.exe deactivate -local -v -skipamtcertcheck -f -json -password ${password}`
4444
}
4545

4646
describe('Device Activation - Console', () => {
47-
context('TC_DEVICE_ACTIVATE_AND_DEACTIVATE', () => {
47+
context('TC_ACTIVATION_DEVICE_ACTIVATE_AND_DEACTIVATE', () => {
4848
beforeEach(() => {
4949
cy.setup()
5050
cy.exec(infoCommand, execConfig).then((result) => {

0 commit comments

Comments
 (0)