Skip to content

Commit

Permalink
Fix fs policy test. (#3010)
Browse files Browse the repository at this point in the history
* Fix fs policy test.

* changelog

* no changelog
  • Loading branch information
meowjesty authored Jan 9, 2025
1 parent 81da4e4 commit 007597c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion changelog.d/+104-policy-fs.added.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Add policy to control file ops.
Add policy to control file ops from the operator.
6 changes: 3 additions & 3 deletions tests/src/operator/policies/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ async fn fs_service(#[future] kube_client: kube::Client) -> KubeService {
#[rstest]
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
#[timeout(Duration::from_secs(60))]
pub async fn create_cluster_fs_policy_and_try_file_operations(
#[future] service: KubeService,
pub async fn create_namespaced_fs_policy_and_try_file_open(
#[future] fs_service: KubeService,
#[future] kube_client: kube::Client,
) {
let kube_client = kube_client.await;
let service = service.await;
let service = fs_service.await;

// Create policy, delete it when test exits.
let _policy_guard = PolicyGuard::namespaced(
Expand Down

0 comments on commit 007597c

Please sign in to comment.