Skip to content
Snippets Groups Projects
Commit 822fb8b8 authored by Baghmar Tarun's avatar Baghmar Tarun
Browse files

Test cases related to folks-ofono, tracker and telepathy dropped.


After the discussions following test cases will be dropped.
apparmor-tracker
folks-ofono-backend
telepathy-ring
tracker-indexing-local-storage
tracker-indexing-mass-storage
traffic-control-basic

Apertis: T5734
Signed-off-by: default avatarTarun Baghmar <tarun.baghmar@in.bosch.com>
parent 6119c710
No related branches found
No related tags found
No related merge requests found
metadata:
name: apparmor-tracker
format: "Apertis Test Definition 1.0"
image-types:
target: [ armhf-internal, armhf, amd64 ]
sdk: [ amd64 ]
image-deployment:
- APT
type: functional
exec-type: automated
priority: medium
maintainer: "Apertis Project"
description: "Tests that the tracker abstraction and tracker profiles don't
cause false negatives and that it does not allow arbitrary reading
of files in the home directory."
pre-conditions:
- "Requires the multimedia demopack to be pre-installed on the tested image under /home/shared"
expected:
- "Both tests should report pass and not fail:"
- |
>tracker.normal.expected: pass
tracker.malicious.expected: pass
notes:
- "Make sure that you have disconnect the ethernet connection to the target
before you start the tethering process."
- "The results of the tests printed to the standard output are enough to
determine whether they passed or fail."
- "If you get a failure and need to report a bug please run sudo watch-aa on
a terminal and run the case that is failing (separately, if both), and add
the logs you get to the bug report."
install:
deps:
- busybox
- apertis-tests-apparmor-report
- apertis-tests-apparmor-tracker
- auditd
- gir1.2-grilo-0.3
- gir1.2-tracker-2.0
- python3
- python3-gi
- wget
git-repos:
- url: https://gitlab.apertis.org/infrastructure/apertis-tests.git
branch: 'apertis/v2021dev3'
run:
steps:
- "# Enter test directory:"
- cd apertis-tests
- "# Execute the following commands:"
- echo -n | sudo tee /var/log/audit/audit.log
- common/run-test-in-systemd --name run-test-tracker --timeout 3000 apparmor/tracker/test-tracker
- sudo journalctl -b -t audit -o cat | /usr/bin/aa_log_extract_tokens.sh ALLOWED DENIED
parse:
pattern: ^(?P<test_case_id>[\w\-\.]+):\s(?P<result>PASS|pass|FAIL|fail|SKIP|skip|UNKNOWN|unknown)$
metadata:
name: folks-ofono-backend
format: "Apertis Test Definition 1.0"
image-types:
target: [ armhf-internal, armhf, amd64 ]
sdk: [ amd64 ]
image-deployment:
- APT
type: functional
exec-type: manual
priority: medium
maintainer: "Apertis Project"
description: "Reading contacts from 3G modem SIM card."
resources:
- "A 3G USB Modem."
- "A SIM card with contacts on it (SIM should *not* have a PIN configured)"
pre-conditions:
- "Ensure Rootfs is remounted as read/write."
- $ sudo mount -o remount,rw /
- "Install dependencies"
- $ sudo apt install folks-tools apertis-tests libfolks-ofono25 connman-tests
- "Please note that connman disables cellular by default on a fresh image."
- "Make sure that the 3G USB modem is seen by Connman:"
- $ connmanctl technologies
- "should display a technology:"
- |
>/net/connman/technology/cellular
- "To enable the device (If it's already enabled, test-connman will give an
\"In progress\" error that may be ignored):"
- $ /usr/share/connman/test/test-connman enable cellular
- $ sudo reboot
expected:
- "folks-inspect should show the personas with their details grabbed
from your SIM card."
notes:
- "Please ignore the following warning about the eds backend: the goal of this
test is to test the ofono backend so other backends (such as the eds
backend) are explicitly disabled:"
- |
>(folks-inspect:853): folks-WARNING **: Failed to find primary PersonaStore with type ID 'eds' and ID 'system-address-book'.
Individuals will not be linked properly and creating new links between Personas will not work.
The configured primary PersonaStore's backend may not be installed. If you are unsure, check with your distribution.
run:
steps:
- "Note: apertis-tests must be version > 20121011.0"
- "Execute test script:"
- $ /usr/lib/chaiwala-tests/contacts/folks-ofonotest.sh
metadata:
name: telepathy-ring
format: "Apertis Test Definition 1.0"
image-types:
target: [ armhf-internal, armhf, amd64 ]
sdk: [ amd64 ]
image-deployment:
- APT
type: functional
exec-type: manual
priority: medium
maintainer: "Apertis Project"
description: "Support making and receiving phone calls in Telepathy manually,
with a bluetooth-paired phone."
resources:
- "A Bluetooth adapter"
- "A Bluetooth-enabled phone"
macro_install_packages_preconditions: ofono-tests telepathy-ring apertis-tests
gir1.2-telepathyglib-0.12
telepathy-mission-control-5
pre-conditions:
- "Start simple agent:"
- $ /usr/lib/chaiwala-tests/bluez/simple-agent -y
- "Pair both devices initiating from the phone side"
- "Pay attention to the simple-agent window as it requires input during
the pairing process."
expected:
- "It should show PASSED:"
- |
>telepathy-ring: PASSED
run:
steps:
- "Pair phone. First scan for devices:"
- $ hcitool scan
- "Determine what the ID for your phone is. This will show a list of modems,
from which you can get the ID of your phone (which starts with a '/'), to
be used in the next 2 commands:"
- $ /usr/share/ofono/tests/list-modems
- "Power up modem:"
- $ /usr/share/ofono/tests/enable-modem $your_phone_id
- $ /usr/share/ofono/tests/online-modem $your_phone_id
- "Add a telepathy-ring account:"
- $ mc-tool add ring/tel tp-ring-test
- "Enable account:"
- $ mc-tool enable ring/tel/account0
- "Test making a call:"
- $ /usr/lib/chaiwala-tests/telepathy/telepathy-ring call $number_to_call
- "Remove temporary account:"
- $ mc-tool remove ring/tel/account0
metadata:
name: tracker-indexing-local-storage
format: "Apertis Test Definition 1.0"
image-types:
target: [ armhf-internal, armhf, amd64 ]
sdk: [ amd64 ]
image-deployment:
- APT
type: functional
exec-type: automated
priority: medium
description: "Check tracker indexing of local storage and journal behaviour."
maintainer: "Apertis Project"
pre-conditions:
- "Requires the multimedia demopack to be pre-installed on the tested image under /home/shared"
expected:
- "The output should be similar to that:"
- |
>----------------------------------------------------------------------
Ran 1 test in 16.406s
OK
- "If any test failed, they will be listed instead of the success message:"
- |
>======================================================================
ERROR: test_all (__main__.TrackerTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "./apertis-tests/tracker/automated/test-tracker.py", line 30, in setUp
self.indexer = TrackerIndexer()
File "./apertis-tests/tracker/automated/../common.py", line 29, in __init__
shell=True)
File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
CalledProcessError: Command 'systemctl --user stop tracker-store tracker-miner-fs' returned non-zero exit status 1
----------------------------------------------------------------------
Ran 1 test in 0.013s
FAILED (errors=1)
install:
deps:
- apertis-tests
- gir1.2-grilo-0.3
- gir1.2-tracker-2.0
- python3
- python3-gi
- tracker
- wget
git-repos:
- url: https://gitlab.apertis.org/infrastructure/apertis-tests.git
branch: 'apertis/v2021dev3'
run:
steps:
- "# Enter test directory:"
- cd apertis-tests
- "# Execute the following command:"
- common/run-test-in-systemd --user=user --name=run-test --timeout=900 tracker/automated/test-tracker.py
parse:
pattern: ^(?P<test_case_id>[a-zA-Z0-9_\-\./]+):\s*(?P<result>pass|fail|skip|unknown)$
metadata:
name: tracker-indexing-mass-storage
format: "Apertis Test Definition 1.0"
image-types:
target: [ armhf-internal, armhf, amd64 ]
basesdk: [ amd64 ]
sdk: [ amd64 ]
image-deployment:
- APT
type: functional
exec-type: manual
priority: medium
maintainer: "Apertis Project"
description: "Check tracker indexes mass storage devices on insertion."
resources:
- "A USB mass storage device."
- "Format mass storage device with a single FAT32 partition."
macro_install_packages_preconditions: apertis-tests gvfs libglib2.0-bin python3
python3-gi gir1.2-tracker-2.0 tracker
expected:
- "The output should be similar to this:"
- |
>Please insert storage ...
Warning: Stopping tracker-store.service, but it can still be activated by:
tracker-store.timer
Warning: Stopping tracker-miner-fs.service, but it can still be activated by:
tracker-miner-fs.timer
TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Userguides' initial status is 'Idle'
TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Applications' initial status is 'Idle'
TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Files' initial status is 'Crawl finished for directory 'file:///home/shared''
TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Extract' initial status is 'Idle'
TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Userguides' status changed to 'Initializing'
TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Userguides' status changed to 'Idle'
TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Applications' status changed to 'Crawling recursively directory 'file:///usr/local/share/applications''
TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Applications' status changed to 'Crawling recursively directory 'file:///usr/share/applications''
TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Applications' status changed to 'Crawl finished for directory 'file:///home/user/.local/share/desktop-directories''
TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Files' status changed to 'Crawling recursively directory 'file:///media/user/6114-D5FD''
TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Applications' status changed to 'Idle'
TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Files' status changed to 'Crawling recursively directory 'file:///home/user/Documents''
TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Files' status changed to 'Crawling recursively directory 'file:///home/user/Downloads''
TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Files' status changed to 'Crawling recursively directory 'file:///home/user/Music''
TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Files' status changed to 'Crawling recursively directory 'file:///home/user/Pictures''
TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Files' status changed to 'Crawling recursively directory 'file:///home/user/Videos''
TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Files' status changed to 'Crawling recursively directory 'file:///home/shared''
TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Files' status changed to 'Crawl finished for directory 'file:///home/shared''
TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Files' status changed to 'Processing…'
TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Files' status changed to 'Idle'
TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Extract' status changed to 'Extracting metadata'
TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Extract' status changed to 'Idle'
TrackerIndexer: quit main loop
.
----------------------------------------------------------------------
Ran 1 test in 16.406s
OK
- "If any test failed, they will be listed instead of the success message:"
- |
>======================================================================
FAIL: test_removable_device (__main__.TestRemovableDevice)
----------------------------------------------------------------------
Traceback (most recent call last):
File "./apertis-tests/tracker/manual/test-removable-device.py", line 46, in test_removable_device
self.assertTrue(False)
AssertionError: False is not true
----------------------------------------------------------------------
Ran 1 test in 13.306s
FAILED (failures=1)
run:
steps:
- "Execute the test script:"
- $ /usr/lib/apertis-tests/tracker/manual/test-removable-device.py
- "Insert the USB mass storage device when prompted to do so. You may need to
click on it in the file manager to mount it so the test can proceed."
- "The test will continue once the device is automounted."
metadata:
name: traffic-control-basic
format: "Apertis Test Definition 1.0"
image-types:
target: [ armhf-internal, armhf, amd64 ]
basesdk: [ amd64 ]
sdk: [ amd64 ]
image-deployment:
- APT
type: functional
exec-type: manual
priority: low
maintainer: "Apertis Project"
description: "Test basic traffic control support. This test does not use tcmmd
but it could catch missing support in the kernel or misbehaving
traffic control."
resources:
- "A web server with a large file to download."
macro_install_packages_preconditions: wget
pre-conditions:
- "Check whether tcmmd >= 0.1.6 is installed:"
- "$ dpkg -l tcmmd"
- "Check that tcmmd is not running (kill it if it was launched from a
previous test)"
- "$ ps aux | grep tcmmd"
- "Check you have connectivity to your web server:"
- "$ wget http://$SERVER_IP/file"
- "Check what is your main network interface (eth0, ens32, wlan0...) and note
your IP."
- "$ ifconfig"
expected:
- "There should be no error."
- "Bandwidth usage with a random TCP source port should be around 4.8KB/s."
- "Bandwidth usage with a specific TCP source port should be around 78KB/s."
post-conditions:
- "If the script was interrupted, the traffic control rules can be removed
with:"
- "$ sudo tc qdisc del dev $NET_INTERFACE ingress"
run:
steps:
- "As root, run the script:"
- "$ sudo MAIN_LINK=$NET_INTERFACE PORT=12345 /usr/share/tcmmd/tests/manual-test.sh"
- "The script will install traffic control rules with different ingress
bandwidth for TCP connections using the source port 12345 and other TCP
connections. The rules will wait and you will have time to check the
bandwidth with wget in another terminal."
- "Check bandwidth usage from a random TCP source port:"
- "$ wget http://$SERVER_IP/file -O /dev/null"
- "Check bandwidth usage with a specific TCP source port:"
- "$ wget --bind-address=$SOURCE_IP --bind-port=12345 http://$SERVER_IP/file -O /dev/null"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment