mirror of
https://github.com/amigan/rustypaste-pretty.git
synced 2024-11-21 11:59:48 -05:00
fix(fixtures): enable random URLs for duplicate file fixture
This commit is contained in:
parent
cccbf98acc
commit
00167db3d6
2 changed files with 3 additions and 3 deletions
|
@ -4,6 +4,6 @@ max_content_length="10MB"
|
||||||
upload_path="./upload"
|
upload_path="./upload"
|
||||||
|
|
||||||
[paste]
|
[paste]
|
||||||
random_url = { enabled = false, type = "petname", words = 2, separator = "-" }
|
random_url = { enabled = true, type = "petname", words = 2, separator = "-" }
|
||||||
default_extension = "txt"
|
default_extension = "txt"
|
||||||
duplicate_files = true
|
duplicate_files = false
|
||||||
|
|
|
@ -11,7 +11,7 @@ setup() {
|
||||||
|
|
||||||
run_test() {
|
run_test() {
|
||||||
first_file_url=$(curl -s -F "file=@file" localhost:8000)
|
first_file_url=$(curl -s -F "file=@file" localhost:8000)
|
||||||
test "$duplicate_content" = "$(cat upload/file.txt)"
|
test "$duplicate_content" = "$(cat upload/${first_file_url/http:\/\/localhost:8000\//})"
|
||||||
|
|
||||||
second_file_url=$(curl -s -F "file=@file" localhost:8000)
|
second_file_url=$(curl -s -F "file=@file" localhost:8000)
|
||||||
test "$first_file_url" = "$second_file_url"
|
test "$first_file_url" = "$second_file_url"
|
||||||
|
|
Loading…
Reference in a new issue