aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitlab/issue_templates/mytemplate.md3
-rw-r--r--.gitlab/merge_request_templates/mytemplate.md3
-rw-r--r--conf.d/packaging/deb/agl-service-platform-info.dsc18
-rw-r--r--conf.d/packaging/deb/debian.agl-service-platform-info.install1
-rw-r--r--conf.d/packaging/deb/debian.changelog5
-rw-r--r--conf.d/packaging/deb/debian.compat1
-rw-r--r--conf.d/packaging/deb/debian.control19
-rw-r--r--conf.d/packaging/deb/debian.rules14
-rw-r--r--conf.d/packaging/rpm/agl-service-platform-info.spec66
-rw-r--r--test/afb-test/tests/aft-BasicAPITests.lua13
10 files changed, 15 insertions, 128 deletions
diff --git a/.gitlab/issue_templates/mytemplate.md b/.gitlab/issue_templates/mytemplate.md
new file mode 100644
index 0000000..25d91d8
--- /dev/null
+++ b/.gitlab/issue_templates/mytemplate.md
@@ -0,0 +1,3 @@
+**Please use https://gerrit.automotivelinux.org for code contributions.**
+See also: https://docs.automotivelinux.org/ chapter "How to contribute".
+
diff --git a/.gitlab/merge_request_templates/mytemplate.md b/.gitlab/merge_request_templates/mytemplate.md
new file mode 100644
index 0000000..25d91d8
--- /dev/null
+++ b/.gitlab/merge_request_templates/mytemplate.md
@@ -0,0 +1,3 @@
+**Please use https://gerrit.automotivelinux.org for code contributions.**
+See also: https://docs.automotivelinux.org/ chapter "How to contribute".
+
diff --git a/conf.d/packaging/deb/agl-service-platform-info.dsc b/conf.d/packaging/deb/agl-service-platform-info.dsc
deleted file mode 100644
index 0c603de..0000000
--- a/conf.d/packaging/deb/agl-service-platform-info.dsc
+++ /dev/null
@@ -1,18 +0,0 @@
-Format: 1.0
-Source: agl-service-os-info
-Binary: agl-service-os-info-bin
-Architecture: any
-Version: 2.0-0
-Maintainer: Iot-Team <secretaria@iot.bzh>
-Standards-Version: 3.8.2
-Homepage: https://github.com/iotbzh/agl-service-os-info
-Build-Depends: debhelper (>= 5),
- pkg-config,
- cmake,
- gcc,
- g++,
- libjson-c-dev ,
- libsystemd-dev (>= 222),
- agl-app-framework-binder-dev ,
- agl-libmicrohttpd-dev (>= 0.9.55)
-Debtransform-Tar: agl-service-os-info_1.0.orig.tar.gz
diff --git a/conf.d/packaging/deb/debian.agl-service-platform-info.install b/conf.d/packaging/deb/debian.agl-service-platform-info.install
deleted file mode 100644
index 6399692..0000000
--- a/conf.d/packaging/deb/debian.agl-service-platform-info.install
+++ /dev/null
@@ -1 +0,0 @@
-/opt/AGL/*
diff --git a/conf.d/packaging/deb/debian.changelog b/conf.d/packaging/deb/debian.changelog
deleted file mode 100644
index de0a835..0000000
--- a/conf.d/packaging/deb/debian.changelog
+++ /dev/null
@@ -1,5 +0,0 @@
-agl-service-os-info (1.0-0) UNRELEASED; urgency=low
-
- * init build
-
- -- Iot-Team <romain.forlot@iot.bzh> Wed, 7 Nov 2018 10:50:38 +0100
diff --git a/conf.d/packaging/deb/debian.compat b/conf.d/packaging/deb/debian.compat
deleted file mode 100644
index ec63514..0000000
--- a/conf.d/packaging/deb/debian.compat
+++ /dev/null
@@ -1 +0,0 @@
-9
diff --git a/conf.d/packaging/deb/debian.control b/conf.d/packaging/deb/debian.control
deleted file mode 100644
index 4eb8b99..0000000
--- a/conf.d/packaging/deb/debian.control
+++ /dev/null
@@ -1,19 +0,0 @@
-Priority: optional
-Maintainer: Iot-Team <secretaria@iot.bzh>
-Source: agl-service-os-info
-Build-Depends: debhelper (>= 5),
- pkg-config,
- cmake,
- gcc,
- g++,
- libjson-c-dev ,
- libsystemd-dev (>= 222),
- agl-app-framework-binder-dev ,
- agl-libmicrohttpd-dev (>= 0.9.55)
-Standards-Version: 3.8.2
-Homepage: https://github.com/iotbzh/agl-service-os-info
-
-Package: agl-service-os-info
-Section: libs
-Architecture: any
-Description: Provide an AGL OS information Binding
diff --git a/conf.d/packaging/deb/debian.rules b/conf.d/packaging/deb/debian.rules
deleted file mode 100644
index 5bc5fc2..0000000
--- a/conf.d/packaging/deb/debian.rules
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/usr/bin/make -f
-# -*- makefile -*-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-%:
- bash /etc/profile.d/AGL-app-framework-binder.sh
- dh $@
-
-override_dh_auto_configure:
- dh_auto_configure -- -DCMAKE_INSTALL_PREFIX=/opt/AGL/afm/applications/
-
-override_dh_auto_install:
- dh_auto_install --destdir=/usr/src/packages/BUILD/debian/tmp
diff --git a/conf.d/packaging/rpm/agl-service-platform-info.spec b/conf.d/packaging/rpm/agl-service-platform-info.spec
deleted file mode 100644
index d495571..0000000
--- a/conf.d/packaging/rpm/agl-service-platform-info.spec
+++ /dev/null
@@ -1,66 +0,0 @@
-###########################################################################
-# Copyright 2015, 2016, 2017 IoT.bzh
-#
-# author: Iot-Team <secretaria@iot.bzh>
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-###########################################################################
-
-
-Name: agl-helloworld-service
-Version: 1.0
-Release: 1
-Group: AGL
-License: APL2.0
-Summary: Provide an AGL Helloworld Binding
-Url: https://github.com/iotbzh/helloworld-service
-Source0: %{name}_%{version}.orig.tar.gz
-
-BuildRequires: cmake
-BuildRequires: gcc gcc-c++
-BuildRequires: pkgconfig(json-c)
-BuildRequires: pkgconfig(libsystemd) >= 222
-BuildRequires: pkgconfig(afb-daemon)
-BuildRequires: pkgconfig(libmicrohttpd) >= 0.9.55
-
-
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-
-%define _prefix /opt/AGL/helloworld-service
-%define __cmake cmake
-
-%description
-Provide an AGL Helloworld Binding
-
-%prep
-%setup -q
-
-%build
-%cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_libdir}
-make %{?_smp_mflags}
-
-%install
-CURDIR=$(pwd)
-[ -d build ] && cd build
-make populate
-mkdir -p %{?buildroot}%{_prefix}
-cp -r package/* %{?buildroot}%{_prefix}
-
-cd $CURDIR
-find %{?buildroot}%{_prefix} -type d -exec echo "%dir {}" \;>> pkg_file
-find %{?buildroot}%{_prefix} -type f -exec echo "{}" \;>> pkg_file
-sed -i 's@%{?buildroot}@@g' pkg_file
-
-
-%files -f pkg_file
-%defattr(-,root,root)
diff --git a/test/afb-test/tests/aft-BasicAPITests.lua b/test/afb-test/tests/aft-BasicAPITests.lua
index b2d4bdd..77b645a 100644
--- a/test/afb-test/tests/aft-BasicAPITests.lua
+++ b/test/afb-test/tests/aft-BasicAPITests.lua
@@ -52,6 +52,8 @@ _AFT.setBeforeAll(function()
end
end)
+local ev_mon_arg = "monitor-devices"
+
-- This tests the 'get' verb of the platform-info API
_AFT.testVerbStatusSuccess(testPrefix.."get", "platform-info", "get", ".layers.agl-manifest")
@@ -61,8 +63,11 @@ _AFT.testVerbStatusSuccess(testPrefix.."get", "platform-info", "get", {})
-- This tests the 'set' verb of the platform-info API
_AFT.testVerbStatusSuccess(testPrefix.."set", "platform-info", "set", {arg=".build.layers.agl-manifest.revision", value="test"})
--- This tests the 'subscribe' verb of the platform-info API
-_AFT.testVerbStatusSuccess(testPrefix.."subscribe", "platform-info", "subscribe", {})
+-- This tests the 'subscribe' verb of the platform-info API for monitoring devices
+_AFT.testVerbStatusSuccess(testPrefix.."subscribe", "platform-info", "subscribe", {event=ev_mon_arg})
+
+-- This tests the 'unsubscribe' verb of the platform-info API for monitoring devices
+_AFT.testVerbStatusSuccess(testPrefix.."unsubscribe", "platform-info", "unsubscribe", {event=ev_mon_arg})
--- This tests the 'unsubscribe' verb of the platform-info API
-_AFT.testVerbStatusSuccess(testPrefix.."unsubscribe", "platform-info", "unsubscribe", {}) \ No newline at end of file
+-- This tests the 'scan' verb of the platform-info API
+_AFT.testVerbStatusSuccess(testPrefix.."scan", "platform-info", "scan", {}) \ No newline at end of file