posix-mq attributes cause review failure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
review-tools |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The snap.yaml has this (abbreviated):
apps:
something:
command: bin/something.sh
daemon: simple
refresh-mode: endure
restart-
plugs:
- posix-mq-ipc
plugs:
posix-mq-ipc:
interface: posix-mq
slots:
msgque:
interface: posix-mq
posix-mq: posix-mq-ipc
path: /hvp-queue
permissions:
- read
- write
- delete
slots.json has this:
{
"posix-mq": {
"allow-
"on-store": [
],
"
"posix-mq": "$SLOT(posix-mq)"
},
"
]
},
"allow-
{
"on-store": [
],
"path": [
],
]
}
}
]
}
}
snapd reports the snap installs and auto-connects properly, so that is working. But review-tools is unhappy:
Errors
------
- declaration-
human review required due to 'allow-
- declaration-
declaration malformed (wrong type '['/hvp-queue']' for attribute 'path')
This example doesn't need multiple elements in the path, but some others do, so I can't just make the path attribute a string. Even if I do, one error remains:
- declaration-
human review required due to 'allow-
I tested this with commit 8295b7670e1a812
Related branches
- Emilia Torino: Approve
- Daniel Manrique: Pending requested
-
Diff: 88 lines (+54/-1)3 files modifiedreviewtools/sr_common.py (+1/-1)
reviewtools/tests/test_sr_declaration.py (+25/-0)
reviewtools/tests/test_sr_lint.py (+28/-0)
description: | updated |
The associated merge proposal has been merged and a new review-tools snap / tag is now available: https:/ /git.launchpad. net/review- tools/commit/ ?h=20230206- 2000UTC& amp;id= 76b09881c682c20 ef22d71e0fc7d7a 4b45f47b52