Skip to content

Commit b29b418

Browse files
Move resubscription tests to system-test category
1 parent 278b388 commit b29b418

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

.github/workflows/system-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ jobs:
7272
uses: actions-rs/cargo@v1
7373
with:
7474
command: test
75-
args: --test '*' -p yagna -p ya-exe-unit -p ya-transfer -p ya-payment -p ya-identity --features system-test
75+
args: --test '*' -p yagna -p ya-exe-unit -p ya-transfer -p ya-payment -p ya-identity -p ya-provider --features system-test

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ system-test = [
2121
'ya-exe-unit/system-test',
2222
'ya-payment/system-test',
2323
'ya-identity/system-test',
24+
'ya-provider/system-test'
2425
]
2526
# Temporary to make goth integration tests work
2627
central-net = ['ya-net/central-net']

agent/provider/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ path = "src/lib.rs"
1212
name = "ya-provider"
1313
path = "src/main.rs"
1414

15+
[features]
16+
system-test = []
17+
1518
[dependencies]
1619
ya-agreement-utils = { workspace = true }
1720
ya-manifest-utils.workspace = true

agent/provider/tests/test_provider_market.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ fn create_default_offer(name: &str) -> CreateOffer {
6565
}
6666
}
6767

68-
//#[cfg_attr(not(feature = "system-test"), ignore)]
68+
#[cfg_attr(not(feature = "system-test"), ignore)]
6969
#[test_context::test_context(DroppableTestContext)]
7070
#[serial_test::serial]
7171
/// Provider should resubscribe Offer after it expires.
@@ -102,7 +102,7 @@ async fn test_offer_resubscription_after_expiration(
102102
Ok(())
103103
}
104104

105-
//#[cfg_attr(not(feature = "system-test"), ignore)]
105+
#[cfg_attr(not(feature = "system-test"), ignore)]
106106
#[test_context::test_context(DroppableTestContext)]
107107
#[serial_test::serial]
108108
/// Error when creating offer on GolemBase, should result in retry attempt with exponential backoff.
@@ -166,7 +166,7 @@ async fn test_offer_resubscription_retry_on_creation_error(
166166
Ok(())
167167
}
168168

169-
//#[cfg_attr(not(feature = "system-test"), ignore)]
169+
#[cfg_attr(not(feature = "system-test"), ignore)]
170170
#[test_context::test_context(DroppableTestContext)]
171171
#[serial_test::serial]
172172
/// When Offer retry is triggered and at the same time the preset change happens, we shouldn't

tests/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ To run all tests including framework tests and unit tests (but without market te
1111
`cargo test --workspace --features system-test`
1212

1313
To run only framework tests use command:
14-
`cargo test --test '*' -p yagna -p ya-exe-unit -p ya-transfer -p ya-payment -p ya-identity --features system-test`
14+
`cargo test --test '*' -p yagna -p ya-exe-unit -p ya-transfer -p ya-payment -p ya-identity -p ya-provider --features system-test`
1515

1616
## Creating tests
1717

0 commit comments

Comments
 (0)