2024-07-02 10:13:11 +02:00
|
|
|
// Copyright (C) NHR@FAU, University Erlangen-Nuremberg.
|
|
|
|
// All rights reserved.
|
|
|
|
// Use of this source code is governed by a MIT-style
|
|
|
|
// license that can be found in the LICENSE file.
|
2024-07-03 12:11:43 +02:00
|
|
|
package archive_test
|
2024-07-02 10:13:11 +02:00
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/json"
|
|
|
|
"testing"
|
2024-07-03 12:11:43 +02:00
|
|
|
|
|
|
|
"github.com/ClusterCockpit/cc-backend/pkg/archive"
|
|
|
|
"github.com/davecgh/go-spew/spew"
|
2024-07-02 10:13:11 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestClusterConfig(t *testing.T) {
|
2024-07-03 12:11:43 +02:00
|
|
|
if err := archive.Init(json.RawMessage("{\"kind\":\"testdata/archive\"}"), false); err != nil {
|
|
|
|
t.Fatal(err)
|
|
|
|
}
|
|
|
|
|
|
|
|
c := archive.GetCluster("fritz")
|
|
|
|
spew.Dump(c)
|
|
|
|
t.Fail()
|
2024-07-02 10:13:11 +02:00
|
|
|
}
|