Messages = Standard
}
+JobDefs {
+ Name = "BackupJob"
+ Type = Backup
+ Pool = Default
+ Storage = File
+ Messages = Standard
+ Priority = 10
+ Client=@hostname@-fd
+ Write Bootstrap = "@working_dir@/%n-%f.bsr"
+}
JobDefs {
Name = "Default"
Storage = File1
Messages = Standard
Write Bootstrap = "@working_dir@/%c.bsr"
- Pool = SmallVols
+ Pool = Default
SpoolData = yes
Max Run Time = 30min
}
+Job {
+ Name = "PluginK8STestProtocol1"
+ JobDefs = "BackupJob"
+ FileSet="TestPluginK8SSetProtocol1"
+}
+
+FileSet {
+ Name = "TestPluginK8SSetProtocol1"
+ Include {
+ Options { signature=MD5 }
+ Plugin = "kubernetes:"
+ }
+}
+
+Job {
+ Name = "PluginK8STestProtocol2"
+ JobDefs = "BackupJob"
+ FileSet="TestPluginK8SSetProtocol2"
+}
+
+FileSet {
+ Name = "TestPluginK8SSetProtocol2"
+ Include {
+ Options { signature=MD5 }
+ Plugin = "kubernetes: regress_backup_plugin_objects"
+ }
+}
+
+Job {
+ Name = "PluginK8STestProtocol3"
+ JobDefs = "BackupJob"
+ FileSet="TestPluginK8SSetProtocol3"
+}
+
+FileSet {
+ Name = "TestPluginK8SSetProtocol3"
+ Include {
+ Options { signature=MD5 }
+ Plugin = "kubernetes:"
+ Plugin = "kubernetes: regress_backup_other_file"
+ }
+}
+
+Job {
+ Name = "PluginK8STestProtocol4"
+ JobDefs = "BackupJob"
+ FileSet="TestPluginK8SSetProtocol4"
+}
+
+FileSet {
+ Name = "TestPluginK8SSetProtocol4"
+ Include {
+ Options { signature=MD5 }
+ Plugin = "kubernetes: regress_error_backup_stderr"
+ }
+}
+
FileSet {
Name = "TestPluginKubernetesSet"
Include { Options { signature=SHA1 }
# Definiton of file storage device
Storage {
- Name = File1
+ Name = File
Address = @hostname@ # N.B. Use a fully qualified name here
SDPort = @sdport@
Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
Media Type = File
}
+# Definiton of file storage device
Storage {
- Name = File2
+ Name = File1
Address = @hostname@ # N.B. Use a fully qualified name here
SDPort = @sdport@
Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9"
- Device = FileStorage1
+ Device = FileStorage
Media Type = File1
}
AutoPrune = yes # Prune expired volumes
Volume Retention = 365d # one year
}
-
-Pool {
- Name = SmallVols
- Pool Type = Backup
- Recycle = yes # Bacula can automatically recycle Volumes
- AutoPrune = yes # Prune expired volumes
- Volume Retention = 365d # one year
- Maximum Volumes = 10
- MaximumVolumeBytes = 10M
- LabelFormat = Small
-}
--- /dev/null
+#!/bin/sh
+#
+# Copyright (C) 2020 Radosław Korzeniewski
+# License: BSD 2-Clause; see file LICENSE-FOSS
+#
+
+TestName="kubernetes-plugin-protocol-test"
+JobBackup1="PluginK8STestProtocol1"
+FilesetBackup1="TestPluginK8SSetProtocol1"
+JobBackup2="PluginK8STestProtocol2"
+JobBackup3="PluginK8STestProtocol3"
+JobBackup4="PluginK8STestProtocol4"
+Plugin="kubernetes:"
+
+. scripts/functions
+
+# export debug=1
+
+scripts/cleanup
+scripts/copy-kubernetes-plugin-confs
+make -C $src/src/plugins/fd/kubernetes/src/plugin install-test-plugin
+
+. scripts/metaplugin-protocol-tests.sh