Sync against taskchampion-sync-server (#3118)

This removes use of gnutls and the TLS implementation, which is no
longer needed (task synchronization is handled via Taskchampion, which
uses `reqwest`, which handles TLS via other Rust dependencies). This
incidentally removes the following config options:
 * `debug.tls`
 * `taskd.ca`
 * `taskd.certificate`
 * `taskd.ciphers`
 * `taskd.credentials`
 * `taskd.key`
 * `taskd.server`
 * `taskd.trust`
This commit is contained in:
Dustin J. Mitchell
2023-07-08 10:27:33 -04:00
committed by GitHub
parent 771977aa69
commit 31105c2ba3
57 changed files with 403 additions and 1615 deletions

View File

@@ -32,7 +32,7 @@ import unittest
# Ensure python finds the local simpletap module
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
from basetest import Task, TestCase, Taskd, ServerTestCase
from basetest import Task, TestCase
class TestDefaultProject(TestCase):
@@ -226,51 +226,6 @@ class TestDefaultProject(TestCase):
self.assertNotIn(self.default_project, out)
class ServerTestDefaultProject(ServerTestCase):
@classmethod
def setUpClass(cls):
cls.taskd = Taskd()
# This takes a while...
cls.taskd.start()
def setUp(self):
self.t1 = Task(taskd=self.taskd)
self.t2 = Task(taskd=self.taskd)
self.t3 = Task(taskd=self.taskd)
def test_default_project_sync(self):
"""default.project is not applied to projectless tasks during sync"""
# NOTE - reported on TW-1287
desc = "Testing task"
self.t1(("add", desc))
self.t1("sync")
code, out, err = self.t1()
self.assertIn(desc, out)
# Testing scenario - default.project is applied on task arrival
proj2 = "Client2"
self.t2.config("default.project", proj2)
self.t2("sync")
code, out, err = self.t2()
self.assertIn(desc, out)
self.assertNotIn(proj2, out)
self.t2("sync")
# Testing scenario - default.project is applied on task delivery
proj3 = "Client3"
self.t3.config("default.project", proj3)
self.t3("sync")
code, out, err = self.t3()
self.assertIn(desc, out)
self.assertNotIn(proj2, out)
self.assertNotIn(proj3, out)
if __name__ == "__main__":
from simpletap import TAPTestRunner
unittest.main(testRunner=TAPTestRunner())