summaryrefslogtreecommitdiffstats
path: root/kubernetes/common/mysql/.helmignore
blob: f0c13194444163d1cba5c67d9e79231a62bc8f44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
@media only all and (prefers-color-scheme: dark) {
.highlight .hll { background-color: #49483e }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { co
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
_policies class TestLocalPolicies(unittest.TestCase): def __init__(self, *args, **kwargs): super(self.__class__, self).__init__(*args, **kwargs) self.folder = './test/policy-local-files' self.valid_policies_file = self.folder + '/' + 'meta-valid-policies.txt' self.invalid_policies_file = self.folder + '/' + 'meta-invalid-policies.txt' self.valid_policies = local_policies.get_policy_names_from_file(self.valid_policies_file) self.invalid_policies = local_policies.get_policy_names_from_file(self.invalid_policies_file) def test_get_local_policies_no_policies(self): with self.assertRaises(FileNotFoundError): res = local_policies.get_local_policies(self.folder, self.invalid_policies) assert res is None def test_get_local_valid_policies(self): res = local_policies.get_local_policies(self.folder, self.valid_policies) assert len(res) == len(self.valid_policies) def test_get_subset_valid_policies(self): wanted = [ x[:-5] for x in self.valid_policies[:1] ] res = local_policies.get_local_policies(self.folder, self.valid_policies, wanted) assert len(res) == len(wanted) if __name__ == "__main__": unittest.main()