#!/bin/bash
# meta: proxy=false
# meta: preconfig=./NFS-config
#
# Tests for the PyNFS 'create_session' suite.
#
# SEQ1   : Do a simple SEQUENCE
# SEQ2   : SEQUENCE must be first
# SEQ5   : SEQUENCE sent on unknown session
# SEQ8   : Send a request with a bad slot
# SEQ10b : Send two successful non-idempotent compounds with same seqid and False cache_this
#
# Disabled due to currently failing:
#
#   SEQ3   : SEQUENCE sent on unbound connection
#     "TODO - need to set up state-protection"
#   SEQ4   : SEQUENCE sent on unbound connection will bind it if no enforcing done
#     "AttributeError: 'NFS4Client' object has no attribute'close'"
#   SEQ4a  : SEQUENCE sent on unbound connection will bind it if no enforcing done
#     "AttributeError: 'NFS4Client' object has no attribute'close'"
#   SEQ6   : Send a request bigger than session can handle
#     "OP_LOOKUP should return NFS4ERR_REQ_TOO_BIG, instead got NFS4ERR_NAMETOOLONG"
#   SEQ7   : Send a request with more ops than the session can handle
#     This one actually crashes the server
#   SEQ9a  : Send two successful idempotent compounds with same seqid
#     "Error: value=0 not in enum nfs_opnum4" 
#   SEQ9b  : Send two successful non-idempotent compounds with same seqid
#     "RPCTimeout" 
#   SEQ9c  : Send two unsuccessful idempotent compounds with same seqid
#     "RPCTimeout" 
#   SEQ9d  : Send two unsuccessful non-idempotent compounds with same seqid
#     "RPCTimeout" 
#   SEQ9e  : Send two unsupported compounds with same seqid
#     "RPCTimeout" 
#   SEQ9f  : Send two solo sequence compounds with same seqid
#     "RPCTimeout" 
#
# Disabled due to not making sense in our implementation:
#
# Needing further investigation:
# 

source ./Macros

#PYNFS_EXEC "$NFS41_EXEC $NFS_HOST:$NFS_HOME SEQ1 SEQ2 SEQ5 SEQ8 --noinit"
exit $?
