self.assertEqual('''[remotebuild]
build_server = https://api
+# WARNING: passwordx can be decoded, don't expose gbs.conf to the outside
passwdx = QlpoOTFBWSZTWYfNdxYAAAIBgAoAHAAgADDNAMNEA24u5IpwoSEPmu4s
[build]
repo1.url = https://repo1
+# WARNING: passwordx can be decoded, don't expose gbs.conf to the outside
repo1.passwdx = QlpoOTFBWSZTWYfNdxYAAAIBgAoAHAAgADDNAMNEA24u5IpwoSEPmu4s
''', conf.getvalue())
self.assertEqual('''[remotebuild]
build_server = https://api
+# WARNING: passwordx can be decoded, don't expose gbs.conf to the outside
passwdx = QlpoOTFBWSZTWYfNdxYAAAIBgAoAHAAgADDNAMNEA24u5IpwoSEPmu4s
[build]
repo1.url = https://repo1
+# WARNING: passwordx can be decoded, don't expose gbs.conf to the outside
repo1.passwdx = QlpoOTFBWSZTWYfNdxYAAAIBgAoAHAAgADDNAMNEA24u5IpwoSEPmu4s
''', confs[0].getvalue())
self.assertEqual('''[remotebuild]
build_server = https://api
user = test
+# WARNING: passwordx can be decoded, don't expose gbs.conf to the outside
passwdx = QlpoOTFBWSZTWYfNdxYAAAIBgAoAHAAgADDNAMNEA24u5IpwoSEPmu4s
[build]
repo1.url = https://repo1
repo1.user = test
+# WARNING: passwordx can be decoded, don't expose gbs.conf to the outside
repo1.passwdx = QlpoOTFBWSZTWYfNdxYAAAIBgAoAHAAgADDNAMNEA24u5IpwoSEPmu4s
''', confs[1].getvalue())
@Fixture()
def test_auto_generate_conf(self, fake_open, _fake_chmod):
- 'test auto generate conf should contain obs and repos'
+ 'test auto generate conf should contain repos'
conf = FakeFile()
fake_open.return_value = conf
parser.readfp(StringIO(conf.getvalue()))
name = parser.get('general', 'profile')
- obs = parser.get(name, 'obs')
repos = parser.get(name, 'repos')
- self.assertTrue(parser.has_section(obs))
for repo in repos.split(','):
self.assertTrue(parser.has_section(repo.strip()))