From cdfde4adbb95d6a5a3dc06828027b89c7da4fd75 Mon Sep 17 00:00:00 2001 From: khushal Date: Thu, 12 Dec 2024 15:32:40 +0530 Subject: [PATCH] (20241212) Had accidentally deleted some files. Recovered now. --- cred/README.md | 6 ++++++ cred/README_CERTS.md | 18 ------------------ servers.txt | 2 +- tests/mongo_test.py | 2 -- 4 files changed, 7 insertions(+), 21 deletions(-) create mode 100644 cred/README.md delete mode 100644 cred/README_CERTS.md diff --git a/cred/README.md b/cred/README.md new file mode 100644 index 0000000..b68709a --- /dev/null +++ b/cred/README.md @@ -0,0 +1,6 @@ +# INSTRUCTIONS TO RENEW CERTIFICATES +**Date:** 2024-09-18 + +1. Go to [jcdev.ditscentre.in/jcdev](http://jcdev.ditscentre.in/jcdev/) +2. Navigate to the respective folders (e.g., `kafka`, `mongo`, etc.). +3. Download and replace the certificates to ensure they have the same names as those already present in the `cred` folder. diff --git a/cred/README_CERTS.md b/cred/README_CERTS.md deleted file mode 100644 index 2893c71..0000000 --- a/cred/README_CERTS.md +++ /dev/null @@ -1,18 +0,0 @@ -# INSTRUCTIONS TO RENEW CERTIFICATES -### **Date:** 2024-09-18 - ---- - -This project is the core for all projects to be setup smoothly. The idea is to have this one project where we explicitly -point to the credentials to be used for connecting to the database, and then we provide an endpoint from which all other -projects can request for their configuration. This way we make config changes in one place on the database and restart -ech instance of all the other projects to update them. - -For example, if we want to update the certificates that another microservice must use, we just update the location path -of that certificate in the database and restart that microservice. That microservice will ask this one where to read the -credentials from. - -Perform the following steps to renew the certificates: -1. Go to [jcdev.ditscentre.in/jcdev](http://jcdev.ditscentre.in/jcdev/) -2. Navigate to the respective folders (e.g., `kafka`, `mongo`, etc.). -3. Download and replace the certificates to ensure they have the same names as those already present in the `cred` folder. diff --git a/servers.txt b/servers.txt index 007c32e..654999b 100644 --- a/servers.txt +++ b/servers.txt @@ -1,3 +1,3 @@ -kbdev.bicree.com +jc.ditscentre.in wtt.ditscentre.in del.ditscentre.in \ No newline at end of file diff --git a/tests/mongo_test.py b/tests/mongo_test.py index 5b633d6..ac97659 100644 --- a/tests/mongo_test.py +++ b/tests/mongo_test.py @@ -92,7 +92,6 @@ if __name__ == "__main__": async def main(): # Create an instance of the database connector: - print("Connecting...") my_db = AsyncMongo( connection_string = constants.MONGO_DATA_CONNECTION_STRING, database_name = constants.MONGO_DATA_DATABASE_NAME, @@ -100,7 +99,6 @@ if __name__ == "__main__": debug = True ) await my_db.connect() - print("Connected!") # Get some data to know if things are working well: matching_data = await my_db.find_many(