Skip to content

Commit

Permalink
Merge pull request #751 from Epic-Breakfast-Productions/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
GregJohnStewart authored Dec 24, 2024
2 parents b722b3a + a75bb52 commit 880e72e
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 9 deletions.
2 changes: 1 addition & 1 deletion deployment/Single Host/Station-Captain/properties.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"packageName":"oqm-manager-station+captain",
"version":"2.4.2",
"version":"2.4.3",
"description":"Utility for setting up and maintaining an instance of Open QuarterMaster.",
"maintainer": {
"name":"EBP"
Expand Down
8 changes: 8 additions & 0 deletions deployment/Single Host/Station-Captain/src/lib/CertsUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
from LogUtils import *
from ipaddress import *

from PackageManagement import PackageManagement

log = LogUtils.setupLogger(__name__)

class CertsUtils:
Expand Down Expand Up @@ -72,6 +74,12 @@ def ensureCaInstalled(force: bool = False) -> (bool, str):
ffPoliciesFile = "/etc/firefox/policies/policies.json"
ffPoliciesDir = os.path.basename(ffPoliciesFile)
ffCertsDir = "/etc/firefox/policies/certificates/"
elif PackageManagement.checkFirefoxSnapInstalled():
log.debug("Firefox probably installed via newer snap.")
ffInstalled = True
ffPoliciesFile = "/etc/firefox/policies/policies.json"
ffPoliciesDir = os.path.basename(ffPoliciesFile)
ffCertsDir = "/etc/firefox/policies/certificates/"
else:
log.debug("Firefox not found on system.")

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
import subprocess
import platform
import re

from ServiceUtils import *
from LogUtils import *
Expand Down Expand Up @@ -220,3 +221,22 @@ def ensureOnlyPluginsInstalled(pluginList:list) -> (bool, str):
PackageManagement.installPackages(pluginList)

ServiceUtils.doServiceCommand(ServiceStateCommand.restart, ServiceUtils.SERVICE_ALL)

@staticmethod
def checkSnapInstalled():
packageInfo = PackageManagement.getPackageInfo("snapd")


@staticmethod
def checkFirefoxSnapInstalled() -> (bool, str):
log.debug("Checking if ")
snapInfoResult = subprocess.run(['snap', 'info', 'firefox'], shell=False, capture_output=True, text=True, check=False)
# print("Firefox snap output: " + snapInfoResult.stdout)
if snapInfoResult.returncode != 0:
# print("snap command for firefox failed")
return False

if re.search("^installed: ", snapInfoResult.stdout, re.MULTILINE):
return True
# print("Installed not found.")
return False
4 changes: 2 additions & 2 deletions software/oqm-core-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ dependencies {

// https://mvnrepository.com/artifact/tech.units/indriya
// https://unitsofmeasurement.gitbook.io/uom-guide/getting-started/getting-started-with-indriya
implementation 'tech.units:indriya:2.2'
implementation 'tech.units:indriya:2.2.1'
implementation 'systems.uom:systems-common:2.1'
// https://mvnrepository.com/artifact/tech.uom.lib/uom-lib-jackson
implementation 'tech.uom.lib:uom-lib-jackson:2.1'
Expand All @@ -65,7 +65,7 @@ dependencies {
testImplementation group: 'io.rest-assured', name: 'rest-assured'
testImplementation 'io.quarkus:quarkus-smallrye-jwt-build'
testImplementation 'io.quarkus:quarkus-test-kafka-companion'
testImplementation 'net.datafaker:datafaker:2.4.1'
testImplementation 'net.datafaker:datafaker:2.4.2'
testImplementation 'org.assertj:assertj-core:3.26.3'
testImplementation 'io.jaegertracing:jaeger-testcontainers:0.7.0'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static Stream<Arguments> getInvalid() {
Arguments.of(
new ListAmountStoredWrapper(Units.DAY),
new HashMap<>() {{
put("parentUnit", "Invalid unit. day not applicable for item storage.");
put("parentUnit", "Invalid unit. d not applicable for item storage.");
}}
)
);
Expand Down
8 changes: 4 additions & 4 deletions software/oqm-core-base-station/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ dependencies {
implementation 'org.apache.commons:commons-io:1.3.2'
implementation 'org.apache.commons:commons-text:1.12.0'

implementation group: 'org.jsoup', name: 'jsoup', version: '1.18.1'
implementation 'uk.org.okapibarcode:okapibarcode:0.4.8'
implementation group: 'org.jsoup', name: 'jsoup', version: '1.18.3'
implementation 'uk.org.okapibarcode:okapibarcode:0.4.9'
implementation 'com.itextpdf:html2pdf:6.0.0'

//webjars
Expand All @@ -44,9 +44,9 @@ dependencies {
testImplementation 'io.quarkus:quarkus-junit5'
testImplementation "org.junit.jupiter:junit-jupiter-params:5.11.3"
testImplementation 'io.rest-assured:rest-assured'
testImplementation 'net.datafaker:datafaker:2.4.1'
testImplementation 'net.datafaker:datafaker:2.4.2'

testImplementation 'com.microsoft.playwright:playwright:1.48.0'
testImplementation 'com.microsoft.playwright:playwright:1.49.0'
testImplementation 'com.deque.html.axe-core:playwright:4.10.1'
}

Expand Down
2 changes: 1 addition & 1 deletion software/plugins/external-item-search/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies {
implementation 'io.quarkus:quarkus-container-image-jib'
implementation 'io.quarkus:quarkus-arc'

implementation group: 'org.jsoup', name: 'jsoup', version: '1.18.1'
implementation group: 'org.jsoup', name: 'jsoup', version: '1.18.3'
implementation 'io.quarkiverse.wiremock:quarkus-wiremock:1.4.0'


Expand Down

0 comments on commit 880e72e

Please sign in to comment.