0.5.1-pre.004
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
<!-- file: ks-pipeline/CHANGELOG.md -->
|
||||
<!-- version: 32 -->
|
||||
<!-- version: 33 -->
|
||||
|
||||
# CHANGELOG — ks-pipeline
|
||||
|
||||
## `0.5.1-pre.004`
|
||||
|
||||
- migre les variables des tests Devnet SPL Token vers le namespace interne `KS_*` ;
|
||||
- ne modifie aucune orchestration, opération, simulation ou postcondition.
|
||||
|
||||
## `0.5.1-pre.003`
|
||||
|
||||
- aligne les tests d'orchestration sur les nouvelles identités d'exécuteurs `ks-lib-executor.*` ;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: ks-pipeline/src/spl_token_stateful.rs
|
||||
// version: 3
|
||||
// version: 4
|
||||
|
||||
//! Stateful Localnet and Devnet readiness checks for classic SPL Token operations.
|
||||
|
||||
@@ -1614,45 +1614,45 @@ mod tests {
|
||||
|
||||
#[tokio::test]
|
||||
async fn optional_devnet_checked_transfer_readiness_from_env() {
|
||||
if std::env::var("KB_DEVNET_SPL_TOKEN_PREFLIGHT_TEST").ok().as_deref()
|
||||
if std::env::var("KS_DEVNET_SPL_TOKEN_PREFLIGHT_TEST").ok().as_deref()
|
||||
!= std::option::Option::Some("1")
|
||||
{
|
||||
return;
|
||||
}
|
||||
let source = match std::env::var("KB_DEVNET_SPL_TOKEN_SOURCE") {
|
||||
let source = match std::env::var("KS_DEVNET_SPL_TOKEN_SOURCE") {
|
||||
std::result::Result::Ok(value) => ks_lib::MdPubkey(value),
|
||||
std::result::Result::Err(error) => {
|
||||
panic!("KB_DEVNET_SPL_TOKEN_SOURCE is required: {error}");
|
||||
panic!("KS_DEVNET_SPL_TOKEN_SOURCE is required: {error}");
|
||||
},
|
||||
};
|
||||
let mint = match std::env::var("KB_DEVNET_SPL_TOKEN_MINT") {
|
||||
let mint = match std::env::var("KS_DEVNET_SPL_TOKEN_MINT") {
|
||||
std::result::Result::Ok(value) => ks_lib::MdPubkey(value),
|
||||
std::result::Result::Err(error) => {
|
||||
panic!("KB_DEVNET_SPL_TOKEN_MINT is required: {error}");
|
||||
panic!("KS_DEVNET_SPL_TOKEN_MINT is required: {error}");
|
||||
},
|
||||
};
|
||||
let destination = match std::env::var("KB_DEVNET_SPL_TOKEN_DESTINATION") {
|
||||
let destination = match std::env::var("KS_DEVNET_SPL_TOKEN_DESTINATION") {
|
||||
std::result::Result::Ok(value) => ks_lib::MdPubkey(value),
|
||||
std::result::Result::Err(error) => {
|
||||
panic!("KB_DEVNET_SPL_TOKEN_DESTINATION is required: {error}");
|
||||
panic!("KS_DEVNET_SPL_TOKEN_DESTINATION is required: {error}");
|
||||
},
|
||||
};
|
||||
let authority = match std::env::var("KB_DEVNET_SPL_TOKEN_AUTHORITY") {
|
||||
let authority = match std::env::var("KS_DEVNET_SPL_TOKEN_AUTHORITY") {
|
||||
std::result::Result::Ok(value) => ks_lib::MdPubkey(value),
|
||||
std::result::Result::Err(error) => {
|
||||
panic!("KB_DEVNET_SPL_TOKEN_AUTHORITY is required: {error}");
|
||||
panic!("KS_DEVNET_SPL_TOKEN_AUTHORITY is required: {error}");
|
||||
},
|
||||
};
|
||||
let decimals = match std::env::var("KB_DEVNET_SPL_TOKEN_DECIMALS") {
|
||||
let decimals = match std::env::var("KS_DEVNET_SPL_TOKEN_DECIMALS") {
|
||||
std::result::Result::Ok(value) => match value.parse::<u8>() {
|
||||
std::result::Result::Ok(value) => value,
|
||||
std::result::Result::Err(error) => {
|
||||
panic!("KB_DEVNET_SPL_TOKEN_DECIMALS must be a u8: {error}");
|
||||
panic!("KS_DEVNET_SPL_TOKEN_DECIMALS must be a u8: {error}");
|
||||
},
|
||||
},
|
||||
std::result::Result::Err(_) => 9,
|
||||
};
|
||||
let amount = match std::env::var("KB_DEVNET_SPL_TOKEN_AMOUNT") {
|
||||
let amount = match std::env::var("KS_DEVNET_SPL_TOKEN_AMOUNT") {
|
||||
std::result::Result::Ok(value) => value,
|
||||
std::result::Result::Err(_) => "1".to_string(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user