Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"automerge": true,
"customDatasources": {
"charmhub": {
"defaultRegistryUrlTemplate": "https://api.charmhub.io/v2/charms/info/{{packageName}}?fields=channel-map",
"format": "json",
"transformTemplates": [
"{\"releases\": [{\"version\": $string($$.(`channel-map`[channel.risk = 'edge' and channel.track = 'latest' and channel.base.architecture = 'amd64' and channel.base.channel = '24.04'].revision.revision))}]}"
]
}
},
"customManagers": [
{
"customType": "regex",
Expand All @@ -15,12 +24,20 @@
],
"matchStringsStrategy": "any",
"versioningTemplate": "ubuntu"
},
{
"customType": "regex",
"fileMatch": ["\\.py$"],
"matchStrings": ["# renovate: depName=\"(?<packageName>[^\"]+)\"\\s*\\n\\s*(?<fieldName>[a-zA-Z0-9_]+)\\s*=\\s*(?<currentValue>\\d+)"],
"versioningTemplate": "semver-coerced",
"datasourceTemplate": "custom.charmhub"
}
],
"extends": [
"config:recommended",
"group:allNonMajor"
],
"ignorePaths": [],
"packageRules": [
{
"enabled": true,
Expand All @@ -29,6 +46,13 @@
],
"pinDigests": true
},
{
"matchDatasources": [
"custom.charmhub"
],
"automerge": true,
"enabled": true
},
{
"enabled": false,
"matchFileNames": [
Expand Down
13 changes: 13 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,16 @@ def pytest_addoption(parser: Parser) -> None:
"--hockeypuck-image", action="store", help="Hockeypuck app image to be deployed"
)
parser.addoption("--charm-file", action="store", help="Charm file to be deployed")
parser.addoption("--model", action="store", help="Juju model to use for testing")
parser.addoption(
"--use-existing",
action="store_true",
default=False,
help="Use existing Juju model without tearing down",
)
parser.addoption(
"--keep-models",
action="store_true",
default=False,
help="Keep Juju models after tests",
)
Loading
Loading