Skip to content

Commit

Permalink
Merge pull request #2 from geniusdynamics/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
compgeniuses authored Feb 21, 2024
2 parents 4ac4ea2 + e7a1f16 commit c79167f
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 8 deletions.
4 changes: 2 additions & 2 deletions imageroot/etc/state-include.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@


state/smarthost.env
volumes/html
volumes/mysql-data
volumes/glpi_html
volumes/mysql-data
6 changes: 4 additions & 2 deletions imageroot/systemd/user/glpi-app.service
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ ExecStartPre=-runagent discover-smarthost
ExecStart=/usr/bin/podman run --conmon-pidfile %t/glpi-app.pid \
--cidfile %t/glpi-app.ctr-id --cgroups=no-conmon \
--pod-id-file %t/glpi.pod-id --replace -d --name glpi-app \
--volume html:/var/www/html/glpi \
--env=MARIADB_* \
--volume glpi_html:/var/www/html/glpi \
--env=GLPI_* \
--env VERSION_GLPI=10.0.12 \
--env TIMEZONE=Europe/Brussels \
--env MARIADB_DB_TYPE=mysql \
--env MARIADB_DB_HOST=127.0.0.1 \
--env MARIADB_DB_PORT=3306 \
Expand Down
2 changes: 1 addition & 1 deletion imageroot/update-module.d/20restart
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ set -e
# Redirect any output to the journal (stderr)
exec 1>&2

systemctl --user try-restart kickstart.service
systemctl --user try-restart glpi.service
25 changes: 25 additions & 0 deletions tests/glpi.robot
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
*** Settings ***
Library SSHLibrary

*** Test Cases ***
Check if glpi is installed correctly
${output} ${rc} = Execute Command add-module ${IMAGE_URL} 1
... return_rc=True
Should Be Equal As Integers ${rc} 0
&{output} = Evaluate ${output}
Set Suite Variable ${module_id} ${output.module_id}

Check if glpi can be configured
${rc} = Execute Command api-cli run module/${module_id}/configure-module --data '{}'
... return_rc=True return_stdout=False
Should Be Equal As Integers ${rc} 0

Check if glpi works as expected
${rc} = Execute Command curl -f http://127.0.0.1/glpi/
... return_rc=True return_stdout=False
Should Be Equal As Integers ${rc} 0

Check if glpi is removed correctly
${rc} = Execute Command remove-module --no-preserve ${module_id}
... return_rc=True return_stdout=False
Should Be Equal As Integers ${rc} 0
6 changes: 3 additions & 3 deletions ui/public/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
],
"docs": {
"documentation_url": "https://glpi-project.org/documentation/",
"bug_url": "https://github.com/kemboi22/ns8-glpi",
"code_url": "https://github.com/kemboi22/ns8-glpi"
"bug_url": "https://github.com/geniusdynamics/ns8-glpi",
"code_url": "https://github.com/geniusdynamics/ns8-glpi"
},
"source": "ghcr.io/kemboi22/glpi"
"source": "ghcr.io/geniusdynamics/glpi"
}

0 comments on commit c79167f

Please sign in to comment.