-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TC-OPCREDS-3.4: Automate #33541
base: master
Are you sure you want to change the base?
TC-OPCREDS-3.4: Automate #33541
Conversation
PR #33541: Size comparison from 9b6bb5b to 65c76cf Decreases (1 build for efr32)
Full report (83 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink)
|
PR #33541: Size comparison from 2005be9 to 64c0cdf Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #33541: Size comparison from 10531e1 to ee0e41c Full report (84 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #33541: Size comparison from 9ee0499 to 9b14683 Full report (67 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
# for details about the block below. | ||
# | ||
# === BEGIN CI TEST ARGUMENTS === | ||
# test-runner-runs: run1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need to be swapped over to use the yaml style. See new tests.
return " UpdateNOC-Error Condition [DUT-Server]" | ||
|
||
def steps_TC_OPCREDS_3_4(self): | ||
return [TestStep(0, "Preconditions"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this test has preconditions.
return [TestStep(0, "Preconditions"), |
|
||
@async_test_body | ||
async def test_TC_OPCREDS_3_4(self): | ||
self.step(0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.step(0) |
|
||
def steps_TC_OPCREDS_3_4(self): | ||
return [TestStep(0, "Preconditions"), | ||
TestStep(1, "TH1 fully commissions the DUT"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TestStep(1, "TH1 fully commissions the DUT"), | |
TestStep(1, "TH1 fully commissions the DUT", is_commissioning=True), |
def steps_TC_OPCREDS_3_4(self): | ||
return [TestStep(0, "Preconditions"), | ||
TestStep(1, "TH1 fully commissions the DUT"), | ||
TestStep(2, "TH1 reads the NOCs attribute from the Node Operational Credentials cluster using a fabric-filtered read"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you mind adding the expected outcomes to these test steps as well?
except InteractionModelError as e: | ||
asserts.assert_equal(e.status, Status.ConstraintError, "Failure status returned from UpdateNOC") | ||
|
||
cmd = Clusters.GeneralCommissioning.Commands.ArmFailSafe(0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once that test plan change lands, the step numbers here will need to be updated. I'll get Raju to review once he gets back from vacation.
|
||
self.step(12) | ||
th1_ca_new = self.certificate_authority_manager.NewCertificateAuthority() | ||
th1_fabric_admin_new = th1_ca_new.NewFabricAdmin(vendorId=0xFFF1, fabricId=1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you might be using the same fabric id as the original. Instead, can you get the fabric ID from matter_test_config and increment it? self.matter_test_config.fabric_id
"NOCResponse with the StatusCode InvalidNOC") | ||
|
||
self.step(15) | ||
cmd = opcreds |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cmd = opcreds |
resp = await self.openCommissioningWindow(self.default_controller, self.dut_node_id) | ||
|
||
self.step(23) | ||
# self.FindAndEstablishPase(dev_ctrl=th1_new_fabric_ctrl, longDiscriminator=resp.randomDiscriminator, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can these comments be removed now?
|
||
self.step(25) | ||
new_noc_chain = await self.default_controller.IssueNOCChain(csr_pase, self.dut_node_id) | ||
# cmd = opcreds.Commands.AddTrustedRootCertificate(trusted_root_original) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same, these can be deleted.
TC-OPCREDS-3.4 - Automate