unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#27039: (tests guix-download) fails when DNS is bogus
@ 2017-05-23 16:24 Leo Famulari
  2017-05-23 16:47 ` Maxim Cournoyer
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Leo Famulari @ 2017-05-23 16:24 UTC (permalink / raw)
  To: 27039

[-- Attachment #1: Type: text/plain, Size: 445 bytes --]

The guix-download test includes this snippet:

------
# Make sure it fails here.
if guix download http://does.not/exist
then false; else true; fi
------

Unfortunately, many ISPs (such as T-Mobile) return bogus results for
otherwise unclaimed domain names, causing this test to fail.

Does anyone know if there is some domain that is designed to fail as a
"standard", as <http://example.com> is intended to be used for examples
of good domains?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#27039: (tests guix-download) fails when DNS is bogus
  2017-05-23 16:24 bug#27039: (tests guix-download) fails when DNS is bogus Leo Famulari
@ 2017-05-23 16:47 ` Maxim Cournoyer
  2017-05-23 17:07 ` ng0
  2017-05-23 21:03 ` Ludovic Courtès
  2 siblings, 0 replies; 4+ messages in thread
From: Maxim Cournoyer @ 2017-05-23 16:47 UTC (permalink / raw)
  To: 27039, leo

On May 23, 2017 9:24:31 AM PDT, Leo Famulari <leo@famulari.name> wrote:
>The guix-download test includes this snippet:
>
>------
># Make sure it fails here.
>if guix download http://does.not/exist
>then false; else true; fi
>------
>
>Unfortunately, many ISPs (such as T-Mobile) return bogus results for
>otherwise unclaimed domain names, causing this test to fail.
>
>Does anyone know if there is some domain that is designed to fail as a
>"standard", as <http://example.com> is intended to be used for examples
>of good domains?

Could we simply mock the expected response?

Maxim

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#27039: (tests guix-download) fails when DNS is bogus
  2017-05-23 16:24 bug#27039: (tests guix-download) fails when DNS is bogus Leo Famulari
  2017-05-23 16:47 ` Maxim Cournoyer
@ 2017-05-23 17:07 ` ng0
  2017-05-23 21:03 ` Ludovic Courtès
  2 siblings, 0 replies; 4+ messages in thread
From: ng0 @ 2017-05-23 17:07 UTC (permalink / raw)
  To: 27039



On Tue, 23 May 2017 12:24:31 -0400, Leo Famulari <leo@famulari.name> wrote:

> The guix-download test includes this snippet:
> 
> ------
> # Make sure it fails here.
> if guix download http://does.not/exist
> then false; else true; fi
> ------
> 
> Unfortunately, many ISPs (such as T-Mobile) return bogus results for
> otherwise unclaimed domain names, causing this test to fail.
> 
> Does anyone know if there is some domain that is designed to fail as a
> "standard", as <http://example.com> is intended to be used for examples
> of good domains?

http://fail.0

fails to resolve with "ping: bad address 'fail.0'. This was run on an OpenNIC connected computer.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#27039: (tests guix-download) fails when DNS is bogus
  2017-05-23 16:24 bug#27039: (tests guix-download) fails when DNS is bogus Leo Famulari
  2017-05-23 16:47 ` Maxim Cournoyer
  2017-05-23 17:07 ` ng0
@ 2017-05-23 21:03 ` Ludovic Courtès
  2 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2017-05-23 21:03 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 27039

Leo Famulari <leo@famulari.name> skribis:

> The guix-download test includes this snippet:
>
> ------
> # Make sure it fails here.
> if guix download http://does.not/exist
> then false; else true; fi
> ------
>
> Unfortunately, many ISPs (such as T-Mobile) return bogus results for
> otherwise unclaimed domain names, causing this test to fail.

Yes, this has been reported several times in the past and marked as
“wontfix”.  :-)

> Does anyone know if there is some domain that is designed to fail as a
> "standard", as <http://example.com> is intended to be used for examples
> of good domains?

There’s an RFC defining example.org et al.  These domain names are
guaranteed to exist, so we’d be testing something different; also, I
don’t know if the RFC defines pages guaranteed to be 404, for instance.

Ludo’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-05-23 21:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-23 16:24 bug#27039: (tests guix-download) fails when DNS is bogus Leo Famulari
2017-05-23 16:47 ` Maxim Cournoyer
2017-05-23 17:07 ` ng0
2017-05-23 21:03 ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).