Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Julia Docker Client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FACT
FACT Utils
Julia Docker Client
Commits
fe6ce68c
Commit
fe6ce68c
authored
6 months ago
by
Riccardo Boero
Browse files
Options
Downloads
Patches
Plain Diff
Fixed tests and added CITATION
parent
d9c05314
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CITATION.cff
+28
-0
28 additions, 0 deletions
CITATION.cff
test/runtests.jl
+7
-2
7 additions, 2 deletions
test/runtests.jl
with
35 additions
and
2 deletions
CITATION.cff
0 → 100644
+
28
−
0
View file @
fe6ce68c
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
This diff is collapsed.
Click to expand it.
test/runtests.jl
+
7
−
2
View file @
fe6ce68c
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment