#!/bin/bash
# meta: proxy=false
# meta: preconfig=./NFS-config
#
# Tests for the PyNFS 'create_session' suite.
#
# CSESS1  : Simple CREATE_SESSION
# CSESS2  : CREATE_SESSION after a SEQUENCE (for same client)
# CSESS2b : CREATE_SESSION after a SEQUENCE (for different client)
# CSESS3  : CREATE_SESSION when server has no record of clientid
# CSESS7  : Send too large seqnum
# CSESS8  : Send too small seqnum
# CSESS15 : Use invalid flag bits
# CSESS16 : Send each type of security parameter
# CSESS17 : Test 0 length rdma arrays
# CSESS18 : Test length 1 rdma arrays
# CSESS19 : Test length 2 rdma arrays
# CSESS200: Create and confirm many clients
#
# Disabled due to currently failing:
#
#   CSESS4:  Server is supposed to create a contrived replay result
#     "Error: value=430672521 not in enum nfsstat4"
#   CSESS5:  Replay a successful CREATE_SESSION
#     "Error: value=0 not in enum nfs_opnum4"
#   CSESS5a: Replay a successful CREATE_SESSION with a SEQUENCE from a different session
#     "Replay results not equal"
#   CSESS5b: Replay a successful SEQUENCE:CREATE_SESSION without a preceeding SEQUENCE
#     "Error: value=0 not in enum nfs_opnum4"
#   CSESS6:  Replay a unsuccessful CREATE_SESSION
#     "Depends on CSESS9"
#   CSESS9:  Change of principal before confirmation is bad
#     "OP_CREATE_SESSION should return NFS4ERR_CLID_INUSE, instead got NFS4_OK"
#   CSESS10: Change of principal after confirmation is good
#     "Error: value=0 not in enum nfs_opnum4"
#   CSESS20: Check server can handle random transient program number
#     "No CB_NULL sent"
#   CSESS21: Check server sends callback program with version==4
#     "No CB_NULL sent"
#
# Disabled due to not making sense in our implementation:
#
# Needing further investigation:
# 

source ./Macros

#PYNFS_EXEC "$NFS41_EXEC $NFS_HOST:$NFS_HOME CSESS1 CSESS2 CSESS2b CSESS3 CSESS7 CSESS8 \
#            CSESS15 CSESS16 CSESS17 CSESS18 CSESS19 CSESS200 --noinit"
exit $?
