• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mendersoftware / mender-auth-azure-iot / 10243881686

17 Nov 2021 07:12PM UTC coverage: 34.239%. Remained the same
10243881686

push

coveralls-python

web-flow
Merge pull request #7 from oleorhagen/MEN-5141-bak

MEN-5141: Implement the Device Twin sync with IoT Hub

63 of 181 new or added lines in 5 files covered. (34.81%)

63 of 184 relevant lines covered (34.24%)

0.34 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/daemon/settings/settings.py
1
# Copyright 2021 Northern.tech AS
2
#
3
#    Licensed under the Apache License, Version 2.0 (the "License");
4
#    you may not use this file except in compliance with the License.
5
#    You may obtain a copy of the License at
6
#
7
#        http://www.apache.org/licenses/LICENSE-2.0
8
#
9
#    Unless required by applicable law or agreed to in writing, software
10
#    distributed under the License is distributed on an "AS IS" BASIS,
11
#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
#    See the License for the specific language governing permissions and
13
#    limitations under the License.
NEW
14
import os.path
×
15

16

NEW
17
class Path:
×
18
    """Hold all the path configuration for the client
19

20
    Usage::
21

22
      >>> from daemon.settings import settings
23
      >>> conf = settings.PATHS.conf
24

25

26
    """
27

NEW
28
    def __init__(self, data_store="/var/lib/mender"):
×
NEW
29
        self.conf_file = "/etc/mender/mender-auth-azure-iot.conf"
×
NEW
30
        self.server_cert = ""
×
NEW
31
        self.data_store = data_store
×
NEW
32
        self.identity_scripts = os.path.join(
×
33
            self.data_store, "identity", "mender-device-identity"
34
        )
35

36

37
# Global singleton
NEW
38
PATHS = Path()
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc