Skip to content
Snippets Groups Projects
Commit fe6ce68c authored by Riccardo Boero's avatar Riccardo Boero :innocent:
Browse files

Fixed tests and added CITATION

parent d9c05314
No related branches found
No related tags found
No related merge requests found
cff-version: 1.2.0
title: 'FACT Utils: Docker Julia Client'
message: >-
If you use this software, please cite it using the
metadata from this file.
type: software
doi: 10.17605/OSF.IO/JWQYT
authors:
- given-names: Riccardo
family-names: Boero
email: ribo@nilu.no
orcid: 'https://orcid.org/0000-0002-7468-9096'
affiliation: NILU
identifiers:
- type: doi
value: 10.17605/OSF.IO/JWQYT
description: This DOI represents all software versions.
repository-code: 'https://git.nilu.no/fact/utils/DockerJuliaClient'
url: 'https://osf.io/jwqyt/'
abstract: >-
A lightweight Julia package to communicate with docker engines through Docker Remote API.
keywords:
- Cloud Optimized GeoTIFF
- Microservice
- Python
- Raster
- Geo statistics
license: AGPL-3.0-only
...@@ -11,8 +11,13 @@ using JuliaDockerClient ...@@ -11,8 +11,13 @@ using JuliaDockerClient
@testset "registry_login Tests" begin @testset "registry_login Tests" begin
@testset "registry_login Tests" begin @testset "registry_login Tests" begin
# Testing with mock data # Access environment variables using ENV dictionary
encoded_auth = registry_login($REGISTRY_URL, $REGISTRY_USERNAME, $REGISTRY_PASS) registry_url = ENV["REGISTRY_URL"]
registry_username = ENV["REGISTRY_USERNAME"]
registry_pass = ENV["REGISTRY_PASS"]
# Testing with environment-provided data
encoded_auth = registry_login(registry_url, registry_username, registry_pass)
# Check if the return value is a valid base64-encoded string # Check if the return value is a valid base64-encoded string
@test typeof(encoded_auth) == String && !isempty(encoded_auth) @test typeof(encoded_auth) == String && !isempty(encoded_auth)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment