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

Add Supplementary group tests #63

Closed
wants to merge 5 commits into from

Commits on Mar 23, 2024

  1. test-info.yml: remove private_interfaces from examples

    We do not use this section in any of our current tests and I don't
    forsee the need for this in the near future.
    
    Signed-off-by: Sachin Prabhu <[email protected]>
    spuiuk committed Mar 23, 2024
    Configuration menu
    Copy the full SHA
    c0d99df View commit details
    Browse the repository at this point in the history
  2. testcases: introduce get_exported_shares() helper function

    Avoid directly accessing the test_info dict and use helper function
    instead. This will allow us to modify the test_info.yml with minimal
    disruption.
    
    Signed-off-by: Sachin Prabhu <[email protected]>
    spuiuk committed Mar 23, 2024
    Configuration menu
    Copy the full SHA
    205468d View commit details
    Browse the repository at this point in the history
  3. testhelper: introduce shares in test-info.yml

    Change the way we list shares in test-info.yml
    This will be used to add additional functionality to tests.
    
    eg:
    shares:
      # share name export1
      export1:
        # If present, it means the share is pre-mounted
        path: /mnt/share/export1-cephfs-vfs
        backend:
          # If present backend filesystem
          name: cephfs.vfs
        # If present, username to perform the tests with on this share
        users:
          test2: x
        # If present, the hostname to use to connect to the test server
        server: hostname1
      export2:
    
    This commit still supports the old format of test-info.yml. The new
    changes deprecates the old test-info.yml format which can be removed
    once the sit-environment has been updated.
    
    Signed-off-by: Sachin Prabhu <[email protected]>
    spuiuk committed Mar 23, 2024
    Configuration menu
    Copy the full SHA
    e8961cd View commit details
    Browse the repository at this point in the history
  4. testhelper: add filesystem direct mounts and get_shares_with_directmnt

    Add  share["backend"]["path"] to indicate where direct access to the
    share is available.
    
    Add helper function get_shares_with_directmnt() to locate shares with
    direct access to the exported path available
    
    Signed-off-by: Sachin Prabhu <[email protected]>
    spuiuk committed Mar 23, 2024
    Configuration menu
    Copy the full SHA
    01b5c79 View commit details
    Browse the repository at this point in the history
  5. misc: Add test for supplementary groups

    Signed-off-by: Sachin Prabhu <[email protected]>
    spuiuk committed Mar 23, 2024
    Configuration menu
    Copy the full SHA
    469175b View commit details
    Browse the repository at this point in the history