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

NAS-130240 / 24.10 / skip known failing test #14078

Merged
merged 3 commits into from
Jul 25, 2024
Merged
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
14 changes: 7 additions & 7 deletions tests/api2/test_001_ssh.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
from collections import defaultdict
import sys
import collections
import json
import os
apifolder = os.getcwd()
sys.path.append(apifolder)

import json
import pytest

from functions import if_key_listed, SSH_TEST
Expand Down Expand Up @@ -148,13 +145,16 @@ def test_008_check_root_dataset_settings(ws_client):
# This is a run where root filesystem is unlocked. Don't obther checking remaining
continue

for opt in fhs_entry['options']:
# FIXME: c.f. NAS-127825
# NOSUID is broken at boot, OS team is aware but fix is complicated.
# Skip this specific property for now.
for opt in filter(lambda x: x != 'NOSUID', fhs_entry['options']):
if opt not in fs['mount_opts']:
assert opt in fs['mount_opts'], f'{opt}: mount option not present for {mp}: {fs["mount_opts"]}'


def test_009_check_listening_ports():
listen = defaultdict(set)
listen = collections.defaultdict(set)
for line in ssh("netstat -tuvpan | grep LISTEN").splitlines():
proto, _, _, local, _, _, process = line.split(maxsplit=6)
if proto == "tcp":
Expand Down
Loading