Browse Source

Update test scripts

master
Luciano Silva 8 years ago
parent
commit
bea5cde8a7
  1. 4
      README.md
  2. 3
      test/test-check.sh
  3. 3
      test/test-in.sh

4
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).

3
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 <url>"
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 <url>"
# 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() {

3
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

Loading…
Cancel
Save