func TestCheckListTagsForResourceMessage(t *testing.T) { ts, tc := getTestClient(200, srListTagsForResourceResponse) defer ts.Close() dbID := "rds-try-test" var ti rds.DBInstance ti.DBInstanceIdentifier = &dbID ri, err := tc.checkListTagsForResource(&ti) if err != nil { t.Errorf("[checkListTagsFor] result error: %s", err.Error()) } if !ri { t.Error("tags count not match") } }
iamsvc = iam.New(awsSession) rdssvc = rds.New(awsSession) logger = lager.NewLogger("rdsdbinstance_test") testSink = lagertest.NewTestSink() logger.RegisterSink(testSink) rdsDBInstance = NewRDSDBInstance(region, iamsvc, rdssvc, logger) }) var _ = Describe("Describe", func() { var ( properDBInstanceDetails DBInstanceDetails describeDBInstances []*rds.DBInstance describeDBInstance *rds.DBInstance describeDBInstancesInput *rds.DescribeDBInstancesInput describeDBInstanceError error ) BeforeEach(func() { properDBInstanceDetails = DBInstanceDetails{ Identifier: dbInstanceIdentifier, Status: "available", Engine: "test-engine", EngineVersion: "1.2.3", DBName: "test-dbname", MasterUsername: "******", AllocatedStorage: int64(100), }