Skip to content

Commit 69dd27b

Browse files
feat(cli): rudimentary support for http authentication
Signed-off-by: Tilo Wiklund <tilo.wiklund@sensmetry.com>
1 parent 2da44d9 commit 69dd27b

23 files changed

Lines changed: 1102 additions & 265 deletions

File tree

bindings/java/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use jni::{
99
objects::{JClass, JObject, JObjectArray, JString},
1010
};
1111
use sysand_core::{
12+
auth::Unauthenticated,
1213
build::KParBuildError,
1314
commands,
1415
env::local_directory::{self, LocalWriteError},
@@ -225,6 +226,8 @@ pub extern "system" fn Java_com_sensmetry_sysand_Sysand_info<'local>(
225226
Some(client),
226227
index_base_url.map(|x| vec![x]),
227228
runtime,
229+
// FIXME: Add Java support for authentication
230+
Arc::new(Unauthenticated {}),
228231
);
229232

230233
let results = match commands::info::do_info(&uri, &combined_resolver) {

bindings/py/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ use pyo3::{
1414
use semver::{Version, VersionReq};
1515
use sysand_core::{
1616
add::do_add,
17+
auth::Unauthenticated,
1718
build::{KParBuildError, do_build_kpar},
1819
commands::{
1920
env::{EnvError, do_env_local_dir},
@@ -141,6 +142,8 @@ fn do_info_py(
141142
Some(client),
142143
index_url,
143144
runtime,
145+
// FIXME: Add Python support for authentication
146+
Arc::new(Unauthenticated {}),
144147
);
145148

146149
match do_info(&uri, &combined_resolver) {

core/scripts/run_tests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ PACKAGE_DIR=$(dirname "$SCRIPT_DIR")
88

99
cd "$PACKAGE_DIR"
1010

11-
cargo test --features filesystem,networking,alltests
12-
cargo test --features js
13-
cargo test --features python
11+
cargo test --features filesystem,networking,alltests $@
12+
cargo test --features js $@
13+
cargo test --features python $@

0 commit comments

Comments
 (0)