File: http_test.go

package info (click to toggle)
rdap 0.9.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 608 kB
  • sloc: makefile: 4
file content (22 lines) | stat: -rw-r--r-- 386 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// OpenRDAP
// Copyright 2017 Tom Harwood
// MIT License, see the LICENSE file.

package test

import (
	"testing"
	"strings"
)

func TestSmoke(t *testing.T) {
	Start(Bootstrap)
	defer Finish()

	var bytes []byte
	bytes = Get("https://data.iana.org/rdap/asn.json")

	if !strings.Contains(string(bytes), "ripe.net") {
		t.Fatalf("ASN doesn't contain ripe.net: %s\n", string(bytes))
	}
}