def test_output_schema_secret_param_masking(self):
        """Test that the output marked as secret in the output schema is masked in the output result

        In this test case, one of the output parameters is marked as secret in the output schema
        while the other output parameter is not marked as secret. The value of the first output
        parameter should be masked in the output result.
        """

        masked = self.executions["execution_3"].mask_secrets(
            self.executions["execution_3"].to_serializable_dict()
        )
        self.assertEqual(
            masked["result"]["result"]["os_secret_param"], MASKED_ATTRIBUTE_VALUE
        )
        self.assertEqual(
            masked["result"]["result"]["os_non_secret_param"], "not_to_be_masked"
        )
Test that the output marked as secret in the output schema is masked in the output result

        In this test case, one of the output parameters is marked as secret in the output schema
        while the other output parameter is not marked as secret. The value of the first output
        parameter should be masked in the output result.
        
st2common/tests/unit/test_db_execution.py