Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3854fe41 authored by Charlie Boutier's avatar Charlie Boutier Committed by Gerrit Code Review
Browse files

Merge "[PTS-Bot] Added 6 SM test cases:"

parents 5f4fe2db b4f491c6
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
@@ -54,9 +54,11 @@ class SMProxy(ProfileProxy):
        """
        Please start pairing process.
        """

        def secure():
            if self.connection:
                self.security.Secure(connection=self.connection, le=LE_LEVEL3)

        Thread(target=secure).start()
        return "OK"

@@ -96,6 +98,7 @@ class SMProxy(ProfileProxy):
            connectable=True,
            own_address_type=PUBLIC,
        )

        return "OK"

    @assert_description
@@ -165,6 +168,28 @@ class SMProxy(ProfileProxy):
        """
        return "OK"

    @assert_description
    def MMI_IUT_INITIATE_CONNECTION_BR_EDR_PAIRING(self, test: str, pts_addr: bytes, **kwargs):
        """
        Please initiate a connection over BR/EDR to the PTS, and initiate
        pairing process.
    
        Description: Verify that the Implementation Under Test
        (IUT) can initiate a connect request over BR/EDR to PTS, and initiate
        pairing process.
        """
        self.connection = self.host.Connect(address=pts_addr).connection

        return "OK"

    @assert_description
    def MMI_ASK_IUT_PERFORM_FEATURE_EXCHANGE_OVER_BR(self, **kwargs):
        """
        Please start pairing feature exchange over BR/EDR.
        """

        return "OK"

    def _handle_pairing_requests(self):

        def task():
+6 −6
Original line number Diff line number Diff line
@@ -631,6 +631,8 @@
    "SM/CEN/PKE/BI-02-C",
    "SM/CEN/PKE/BV-04-C",
    "SM/CEN/PROT/BV-01-C",
    "SM/CEN/SCCT/BV-03-C",
    "SM/CEN/SCCT/BV-05-C",
    "SM/CEN/SCJW/BI-01-C",
    "SM/CEN/SCJW/BV-04-C",
    "SM/CEN/SCPK/BI-01-C",
@@ -650,6 +652,10 @@
    "SM/PER/PKE/BV-02-C",
    "SM/PER/PKE/BV-05-C",
    "SM/PER/PROT/BV-02-C",
    "SM/PER/SCCT/BV-04-C",
    "SM/PER/SCCT/BV-06-C",
    "SM/PER/SCCT/BV-08-C",
    "SM/PER/SCCT/BV-10-C",
    "SM/PER/SCJW/BI-02-C",
    "SM/PER/SCJW/BV-03-C",
    "SM/PER/SCPK/BI-03-C",
@@ -916,8 +922,6 @@
    "RFCOMM/DEVA-DEVB/RFC/BV-21-C",
    "RFCOMM/DEVA-DEVB/RFC/BV-22-C",
    "SM/CEN/PKE/BV-01-C",
    "SM/CEN/SCCT/BV-03-C",
    "SM/CEN/SCCT/BV-05-C",
    "SM/CEN/SCCT/BV-07-C",
    "SM/CEN/SCCT/BV-09-C",
    "SM/CEN/SCJW/BV-01-C",
@@ -925,10 +929,6 @@
    "SM/CEN/SCPK/BV-01-C",
    "SM/CEN/SCPK/BV-04-C",
    "SM/CEN/SIP/BV-02-C",
    "SM/PER/SCCT/BV-04-C",
    "SM/PER/SCCT/BV-06-C",
    "SM/PER/SCCT/BV-08-C",
    "SM/PER/SCCT/BV-10-C",
    "SM/PER/SCJW/BV-02-C",
    "SM/PER/SCPK/BI-04-C",
    "SM/PER/SCPK/BV-03-C",