// 2019 Rackspace, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"): you may // not use this file except in compliance with the License. You may obtain // a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the // License for the specific language governing permissions and limitations // under the License. // To build this app, run the following command: // CGO_ENABLED=0 GOARCH=amd64 go build -a -installsuffix cgo -o bin/change_dc change_dc.go package post import ( "testing" "github.rackspace.com/DCM/tools" "github.rackspace.com/gorax/gokeys" ) func TestPostMigration(t *testing.T) { cfg, err := gokeys.New(nil) if err != nil { t.Fatalf("gokeys.New:%s", err) } key, err := cfg.Identity(false) if err != nil { t.Fatal(err) } var d = tools.Device{ ID: 879665, MoveGroup: "", } r := getPostAudit(d, "ord1_01", key.Password, "", 600) for k, v := range r.Audits { for _, i := range v { t.Fatalf("SUCCESS:%s:%s", k, i) } } }