func getAWSSuiteFiles(dir string) (files []string, err error) {
	d, err := os.Open(dir)
	if err != nil {
		return
	}
	f, err := d.Readdirnames(0)
	if err != nil {
		return
	}
	sort.Strings(f)
	files = make([]string, 0)
	for i := 0; i < len(f)-1; {
		if filepath.Ext(f[i]) == ".req" &&
			filepath.Ext(f[i+1]) == ".sreq" {
			files = append(files, f[i][:len(f[i])-4])
			i += 2
		} else {
			i++
		}
	}
	return
}
Get a list of the files in the AWS test suite.
package aws
import (
	"bufio"
	"bytes"
	"crypto/sha256"
	"fmt"
	"io"
	"io/ioutil"
	"net/http"
	"net/url"
	"os"
	"path/filepath"
	"sort"
	"testing"
	"time"
)
type awsTestCase struct {
	base    string
	req     []byte
	sreq    []byte
	request *http.Request
	body    io.ReadSeeker
}