Skip to content

Commit

Permalink
CBQE-5999: [16/n] CBQE-6046: Expect disable_ft_alias=True when disabl…
Browse files Browse the repository at this point in the history
…e-ft-indexes=True

When you configure an archive, if you've disabled backing up fts-indexes
cbbackupmgr implicitly disables backing up aliases.

https://github.com/couchbase/backup/blob/mad-hatter/cmd/cbbackupmgr/config.go#L124

Consequently, we need to expect disable_ft_alias=True in the
backup-meta.json if disable-ft-indexes=True in the the backup-meta.json
verification.

Change-Id: I3dcac72a83accf082212a9c6114e1e5e516b3606
Reviewed-on: http://review.couchbase.org/c/testrunner/+/135547
Tested-by: Asad Zaidi <asad.zaidi@couchbase.com>
Reviewed-by: James Lee <james.lee@couchbase.com>
  • Loading branch information
Asad Zaidi committed Sep 8, 2020
1 parent 58e06d6 commit 5f39f85
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def validate_backup_meta_json(self):
exclude_data = {}
exclude_data["bucket"] = self.backupset.exclude_buckets[0]
expected_meta_json["exclude_data"].append(exclude_data)
if self.backupset.disable_ft_alias:
if self.backupset.disable_ft_alias or self.backupset.disable_ft_indexes:
expected_meta_json['disable_ft_alias'] = True
if self.backupset.disable_analytics:
expected_meta_json['disable_analytics'] = True
Expand Down

0 comments on commit 5f39f85

Please sign in to comment.