CSE 291 Project 1 test cases
2018 April 27: Project 1 test cases

This is the first year of using GradeScope to manage programming projects. Due to a bug in my configuration, it seems that some students saw the raw output of the autograder under certain circumstances. Because of that, I’m making these 15 tests visible to you. They are below. I’m not providing the underlying htdocs directory, but you can use the requests (and their names) to infer what they are trying to do. We will add some new hidden tests to cover the remaining 10 points of the submission. Our mistake is your gain!

  • GoodIndexTest
GET /index.html HTTP/1.1<CR><LF>
Host: localhost<CR><LF>
User-Agent: cse124-tester/1.0<CR><LF>
Connection: close<CR><LF>
<CR><LF>
  • GoodKittenTest
GET /kitten1.jpg HTTP/1.1<CR><LF>
Host: localhost<CR><LF>
User-Agent: cse124-tester/1.0<CR><LF>
Connection: close<CR><LF>
<CR><LF>
  • GoodGetAppleTest
GET /apple.png HTTP/1.1<CR><LF>
Host: localhost<CR><LF>
User-Agent: cse124-tester/1.0<CR><LF>
Connection: close<CR><LF>
<CR><LF>
  • GoodGetWolvesTest
GET /subdir1/wolves.jpg HTTP/1.1<CR><LF>
Host: localhost<CR><LF>
User-Agent: cse124-tester/1.0<CR><LF>
Connection: close<CR><LF>
<CR><LF>
  • GoodGetDefaultTest
GET / HTTP/1.1<CR><LF>
Host: localhost<CR><LF>
User-Agent: cse124-tester/1.0<CR><LF>
Connection: close<CR><LF>
<CR><LF>
  • GoodGetNestedDirTest
GET /subdir1/subdir3/hello.html HTTP/1.1<CR><LF>
Host: localhost<CR><LF>
User-Agent: cse124-tester/1.0<CR><LF>
Connection: close<CR><LF>
<CR><LF>
  • GoodGetEmptyFileTest
GET /empty.html HTTP/1.1<CR><LF>
Host: localhost<CR><LF>
User-Agent: cse124-tester/1.0<CR><LF>
Connection: close<CR><LF>
<CR><LF>
  • GoodGetNotFound1Test
GET /notfound.html HTTP/1.1<CR><LF>
Host: localhost<CR><LF>
User-Agent: cse124-tester/1.0<CR><LF>
Connection: close<CR><LF>
<CR><LF>
  • GoodGetNotFound2Test
GET /my_file/notfound.html HTTP/1.1<CR><LF>
Host: localhost<CR><LF>
User-Agent: cse124-tester/1.0<CR><LF>
Connection: close<CR><LF>
<CR><LF>
  • GoodGetPermissionDeniedTest
GET /subdir2/kitten1.jpg HTTP/1.1<CR><LF>
Host: localhost<CR><LF>
User-Agent: cse124-tester/1.0<CR><LF>
Connection: close<CR><LF>
<CR><LF>
  • GoodGetPermissionAllowedTest
GET /subdir2/ship.jpg HTTP/1.1<CR><LF>
Host: localhost<CR><LF>
User-Agent: cse124-tester/1.0<CR><LF>
Connection: close<CR><LF>
<CR><LF>
  • BasicMaliciousURLTest
GET /subdir1/../../another_grpc_example/helloworld.proto HTTP/1.1<CR><LF>
Host: localhost<CR><LF>
User-Agent: cse124-tester/1.0<CR><LF>
Connection: close<CR><LF>
<CR><LF>
  • BasicMalformedGetTest
GET<CR><LF>
Host: localhost<CR><LF>
User-Agent: cse124-tester/1.0<CR><LF>
Connection: close<CR><LF>
<CR><LF>
  • BasicGoodGetBigDataTest
GET /subdir1/big.html HTTP/1.1<CR><LF>
Host: localhost<CR><LF>
User-Agent: cse124-tester/1.0<CR><LF>
Connection: close<CR><LF>
<CR><LF>
  • BasicMultipleRecvTest
GET /subdir1/wolves.jpg HTTP/1.1<CR><LF>
Host: localhost<CR><LF>
User-Agent: cse124-tester/1.0<CR><LF>