summaryrefslogtreecommitdiff
path: root/tests/toml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/toml')
-rw-r--r--tests/toml/default.toml46
-rw-r--r--tests/toml/genivi.toml30
-rw-r--r--tests/toml/old.toml45
-rw-r--r--tests/toml/polling.toml5
4 files changed, 126 insertions, 0 deletions
diff --git a/tests/toml/default.toml b/tests/toml/default.toml
new file mode 100644
index 0000000..77a663b
--- /dev/null
+++ b/tests/toml/default.toml
@@ -0,0 +1,46 @@
+[auth]
+server = "http://127.0.0.1:9001"
+client_id = "client-id"
+client_secret = "client-secret"
+credentials_file = "/tmp/sota_credentials.toml"
+
+[core]
+server = "http://127.0.0.1:8080"
+polling = true
+polling_sec = 10
+
+[dbus]
+name = "org.genivi.SotaClient"
+path = "/org/genivi/SotaClient"
+interface = "org.genivi.SotaClient"
+software_manager = "org.genivi.SoftwareLoadingManager"
+software_manager_path = "/org/genivi/SoftwareLoadingManager"
+timeout = 60
+
+[device]
+uuid = "123e4567-e89b-12d3-a456-426655440000"
+vin = "V1234567890123456"
+packages_dir = "/tmp/"
+package_manager = "off"
+certificates_path = "/tmp/sota_certificates"
+system_info = "system_info.sh"
+
+[gateway]
+console = false
+dbus = false
+http = false
+rvi = false
+socket = false
+websocket = false
+
+[network]
+http_server = "127.0.0.1:8888"
+rvi_edge_server = "127.0.0.1:9080"
+socket_commands_path = "/tmp/sota-commands.socket"
+socket_events_path = "/tmp/sota-events.socket"
+websocket_server = "127.0.0.1:3012"
+
+[rvi]
+client = "http://127.0.0.1:8901"
+storage_dir = "/var/sota"
+timeout = 20
diff --git a/tests/toml/genivi.toml b/tests/toml/genivi.toml
new file mode 100644
index 0000000..5c93d8a
--- /dev/null
+++ b/tests/toml/genivi.toml
@@ -0,0 +1,30 @@
+# Replace 192.168.1.40 with your IP address
+[core]
+server = "http://192.168.1.40:8080"
+polling = false
+
+[dbus]
+name = "org.genivi.SotaClient"
+path = "/org/genivi/SotaClient"
+interface = "org.genivi.SotaClient"
+software_manager = "org.genivi.SoftwareLoadingManager"
+software_manager_path = "/org/genivi/SoftwareLoadingManager"
+timeout = 60
+
+[device]
+uuid = "9ea653bc-3486-44cd-aa86-d936bd957e52"
+packages_dir = "/tmp/"
+package_manager = "off"
+certificates_path = "run/sota_certificates"
+
+[gateway]
+dbus = true
+rvi = true
+
+[network]
+rvi_edge_server = "192.168.1.40:9080"
+
+[rvi]
+client = "http://192.168.1.40:8901"
+storage_dir = "/tmp"
+timeout = 20
diff --git a/tests/toml/old.toml b/tests/toml/old.toml
new file mode 100644
index 0000000..21447cd
--- /dev/null
+++ b/tests/toml/old.toml
@@ -0,0 +1,45 @@
+[auth]
+server = "http://127.0.0.1:9001"
+client_id = "client-id"
+client_secret = "client-secret"
+credentials_file = "/tmp/sota_credentials.toml"
+
+[core]
+server = "http://127.0.0.1:8080"
+
+[dbus]
+name = "org.genivi.SotaClient"
+path = "/org/genivi/SotaClient"
+interface = "org.genivi.SotaClient"
+software_manager = "org.genivi.SoftwareLoadingManager"
+software_manager_path = "/org/genivi/SoftwareLoadingManager"
+timeout = 60
+
+[device]
+uuid = "123e4567-e89b-12d3-a456-426655440000"
+vin = "V1234567890123456"
+packages_dir = "/tmp/"
+package_manager = "off"
+certificates_path = "/tmp/sota_certificates"
+system_info = "system_info.sh"
+polling_interval = 10
+
+[gateway]
+console = false
+dbus = false
+http = false
+rvi = false
+socket = false
+websocket = false
+
+[network]
+http_server = "127.0.0.1:8888"
+rvi_edge_server = "127.0.0.1:9080"
+socket_commands_path = "/tmp/sota-commands.socket"
+socket_events_path = "/tmp/sota-events.socket"
+websocket_server = "127.0.0.1:3012"
+
+[rvi]
+client = "http://127.0.0.1:8901"
+storage_dir = "/var/sota"
+timeout = 20
diff --git a/tests/toml/polling.toml b/tests/toml/polling.toml
new file mode 100644
index 0000000..a0e29d6
--- /dev/null
+++ b/tests/toml/polling.toml
@@ -0,0 +1,5 @@
+[core]
+polling_sec = 1
+
+[device]
+polling_interval = 2