[openstack-dev] [all] Zuul job backlog
Doug Hellmann
doug at doughellmann.com
Mon Oct 8 18:07:07 UTC 2018
Abhishek Kekane <akekane at redhat.com> writes:
> Hi Doug,
>
> Should I use something like SimpleHttpServer to upload a file and download
> the same, or there are other efficient ways to handle it,
> Kindly let me know if you are having any suggestions for the same.
Sure, that would work, especially if your tests are running in the unit
test jobs. If you're running a functional test, it seems like it would
also be OK to just copy a file into the directory Apache is serving from
and then download it from there.
Doug
>
> Thanks & Best Regards,
>
> Abhishek Kekane
>
>
> On Fri, Oct 5, 2018 at 4:57 PM Doug Hellmann <doug at doughellmann.com> wrote:
>
>> Abhishek Kekane <akekane at redhat.com> writes:
>>
>> > Hi Matt,
>> >
>> > Thanks for the input, I guess I should use '
>> > http://git.openstack.org/static/openstack.png' which will definitely
>> work.
>> > Clark, Matt, Kindly let me know your opinion about the same.
>>
>> That URL would not be on the local node running the test, and would
>> eventually exhibit the same problems. In fact we have seen issues
>> cloning git repositories as part of the tests in the past.
>>
>> You need to use a localhost URL to ensure that the download doesn't have
>> to go off of the node. That may mean placing something into the directory
>> where Apache is serving files as part of the test setup.
>>
>> Doug
>>
More information about the OpenStack-dev
mailing list