Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fs policy test. #3010

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading