Skip to content
Open
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
34 changes: 34 additions & 0 deletions .github/actions/export-container/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#
# This file is part of Edgehog.
#
# Copyright 2025 SECO Mind Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#

name: export-container
description: "Export backend conteatiner into a `backend.tar` artifact."
runs:
using: "composite"
steps:
- name: Create image tar
shell: bash
run: |
docker image save edgehogdevicemanager/edgehog-backend:latest -o backend.tar
- uses: actions/upload-artifact@v4
with:
path: backend.tar
name: backend.tar
if-no-files-found: error
30 changes: 30 additions & 0 deletions .github/actions/import-container/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#
# This file is part of Edgehog.
#
# Copyright 2025 SECO Mind Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#

name: import container
description: "Export backend conteatiner into a `backend.tar` artifact."
runs:
using: "composite"
steps:
- uses: actions/download-artifact@v5
- name: Import backend container
shell: bash
run: |
docker image load < backend.tar
Empty file.
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ _init-edgehog:
_create-edgehog-tenant edgehog-hostname="api.edgehog.localhost":
#!/usr/bin/env bash
admin_jwt=$(cat backend/priv/repo/seeds/keys/admin_jwt.txt)
curl -sf -X POST "http://{{edgehog-hostname}}/admin-api/v1/tenants" \
curl --fail-with-body -X POST "http://{{edgehog-hostname}}/admin-api/v1/tenants" \
-H "Content-Type: application/vnd.api+json" \
-H "Accept: application/vnd.api+json" \
-H "Authorization: Bearer $admin_jwt" \
Expand Down
17 changes: 17 additions & 0 deletions tools/e2e_test/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# SPDX-FileCopyrightText: 2025 SECO Mind Srl
# SPDX-License-Identifier: CC0-1.0

# Generated by Cargo
# will have compiled files and executables
debug
target

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

# Generated by cargo mutants
# Contains mutation testing data
**/mutants.out*/
Loading
Loading