diff --git a/README.md b/README.md index 0896435..a8da840 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# File Resource +# cURL File Resource -Tracks the update of a single URL-addressable file. (a.k.a. cURL resource) +Tracks the update of a single URL-addressable file. This is a useful resource for pipeline development time, while a required artifact is temporarily available from a URL-addressable location, until it is moved to a more robust file management repository such as [git](https://github.com/concourse/git-resource) or [S3](https://github.com/concourse/s3-resource). diff --git a/test/test-check.sh b/test/test-check.sh index ca53177..8c92f12 100755 --- a/test/test-check.sh +++ b/test/test-check.sh @@ -10,8 +10,7 @@ export FILE_URL_WITH_LAST_MODIFIED_INFO=https://s3-us-west-1.amazonaws.com/lsilv # set FILE_URL_WITHOUT_LAST_MODIFIED_INFO with a URL of a file whose HTTP HEADER info DOES NOT provide a Last-Modified entry # to check it do "curl -I -R " export FILE_URL_WITHOUT_LAST_MODIFIED_INFO=https://raw.githubusercontent.com/pivotalservices/concourse-curl-resource/master/test/data/pivotal-1.0.0.txt -# set FILE_URL_WITHOUT_LAST_MODIFIED_INFO with a URL of a file whose HTTP HEADER info DOES NOT provide a Last-Modified entry -# to check it do "curl -I -R " +# set FILE_URL_BASIC_AUTH with a URL of a file that requires basic authentication export FILE_URL_BASIC_AUTH=https://auth-demo.aerobatic.io/protected-standard it_can_get_file_with_last_modified_info() { diff --git a/test/test-in.sh b/test/test-in.sh index 34d380c..3a8c3d1 100755 --- a/test/test-in.sh +++ b/test/test-in.sh @@ -39,6 +39,9 @@ it_can_get_file_with_basic_auth() { } }" | $resource_dir/in "$src" | tee /dev/stderr + # cat "$src"/basicauth.txt | grep expect + # should return "...Hi, we've been expecting you!..." + } run it_can_get_file_with_date_info