import { Common , CLI , ReplExpect } from '@kui-shell/test' ; import cd from './cd' ; import S3Utils from './util' ; import basics from './basics' ; import rimraf from './rimraf' ; import pseudo from './pseudo' ; import folders from './folders' ; import wildcardRimraf from './wildcard-rimraf' ; if ( process . env . NEEDS_MINIO ) { describe ( 's3 vfs sanity check' , function ( this ) { before ( Common . before ( this ) ) ; after ( Common . after ( this ) ) ; const { init } = S3Utils . bind ( this ) ( ) ; init ( ) ; it ( 'should show minio in /s3' , ( ) => CLI . command ( 'ls -l /s3' , this . app ) . then ( ReplExpect . okWith ( 'minio' ) ) . catch ( Common . oops ( this , true ) ) ) ; } ) ; xdescribe ( 's3 vfs pseudo mounts' , function ( this ) { before ( Common . before ( this ) ) ; after ( Common . after ( this ) ) ; const { init } = S3Utils . bind ( this ) ( ) ; init ( ) ; pseudo . bind ( this ) ( ) ; } ) ; describe ( 's3 vfs folders' , function ( this ) { before ( Common . before ( this ) ) ; after ( Common . after ( this ) ) ; const { init } = S3Utils . bind ( this ) ( ) ; init ( ) ; folders . bind ( this ) ( ) ; } ) ; describe ( 's3 vfs basics' , function ( this ) { before ( Common . before ( this ) ) ; after ( Common . after ( this ) ) ; const { init } = S3Utils . bind ( this ) ( ) ; init ( ) ; basics . bind ( this ) ( ) ; } ) ; describe ( 's3 vfs cd' , function ( this ) { before ( Common . before ( this ) ) ; after ( Common . after ( this ) ) ; const { init } = S3Utils . bind ( this ) ( ) ; init ( ) ; cd . bind ( this ) ( ) ; } ) ; describe ( 's3 vfs rimraf' , function ( this ) { before ( Common . before ( this ) ) ; after ( Common . after ( this ) ) ; const { init } = S3Utils . bind ( this ) ( ) ; init ( ) ; rimraf . bind ( this ) ( ) ; } ) ; describe ( 's3 vfs wildcard rimraf' , function ( this ) { before ( Common . before ( this ) ) ; after ( Common . after ( this ) ) ; const { init } = S3Utils . bind ( this ) ( ) ; init ( ) ; wildcardRimraf . bind ( this ) ( ) ; } ) ; }