Fix data_test
@@ -588,7 +588,7 @@ func (s *DataSuite) TestDescribeBackupsWrongPassword(c *C) {
// Test backup
bp := *newBackupDataBlueprint()
- bp.Actions["backup"].Phases[0].Args[BackupDataBackupArtifactPrefixArg] = "abc-foo-bar"
+ bp.Actions["backup"].Phases[0].Args[BackupDataBackupArtifactPrefixArg] = fmt.Sprintf("%s/%s", bp.Actions["backup"].Phases[0].Args[BackupDataBackupArtifactPrefixArg], "abd")
bp.Actions["backup"].Phases[0].Args[BackupDataEncryptionKeyArg] = restic.GeneratePassword()
out := runAction(c, bp, "backup", tp)
c.Assert(out[BackupDataOutputBackupID].(string), Not(Equals), "")
@@ -596,7 +596,7 @@ func (s *DataSuite) TestDescribeBackupsWrongPassword(c *C) {
// Test DescribeBackups
bp2 := *newDescribeBackupsBlueprint()
- bp2.Actions["describeBackups"].Phases[0].Args[DescribeBackupsArtifactPrefixArg] = "abc-foo-bar"
+ bp2.Actions["describeBackups"].Phases[0].Args[DescribeBackupsArtifactPrefixArg] = fmt.Sprintf("%s/%s", bp2.Actions["describeBackups"].Phases[0].Args[DescribeBackupsArtifactPrefixArg], "abd")
out2 := runAction(c, bp2, "describeBackups", tp)
c.Assert(out2[DescribeBackupsPasswordIncorrect].(string), Equals, "true")
}
@@ -612,7 +612,7 @@ func (s *DataSuite) TestDescribeBackupsRepoNotAvailable(c *C) {
// Test DescribeBackups
bp2 := *newDescribeBackupsBlueprint()
- bp2.Actions["describeBackups"].Phases[0].Args[DescribeBackupsArtifactPrefixArg] = "foobar"
+ bp2.Actions["describeBackups"].Phases[0].Args[DescribeBackupsArtifactPrefixArg] = fmt.Sprintf("%s/%s", bp2.Actions["describeBackups"].Phases[0].Args[DescribeBackupsArtifactPrefixArg], "foobar")
out2 := runAction(c, bp2, "describeBackups", tp)
c.Assert(out2[DescribeBackupsRepoDoesNotExist].(string), Equals, "true")
}
