added views to test dataset

This commit is contained in:
W Anders
2024-05-21 13:14:02 -06:00
parent 63c7b87be5
commit 629b2b65a8
3 changed files with 37 additions and 0 deletions
+4
View File
@@ -52,11 +52,15 @@ func post(client *http.Client, path string, filepath string) (string, []byte) {
}
func main() {
views := filepath.Join(execdir, "views.json")
nameservers := filepath.Join(execdir, "nameservers.json")
zones := filepath.Join(execdir, "zones.json")
records := filepath.Join(execdir, "records.json")
client := &http.Client{}
viewsStatus, viewsContent := post(client, "/views/", views)
log.Printf("views: %s\n%s", viewsStatus, viewsContent)
nsStatus, nsContent := post(client, "/nameservers/", nameservers)
log.Printf("nameservers: %s\n%s", nsStatus, nsContent)