Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

remove_vehicle function in services/director.py #189

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

tanishqjasoria
Copy link

Purpose of the PR:

To resolve #59: Add method to remove vehicles from Director repo

Summary of Changes:

  1. services/inventorydb.py
    added a method deregister_vehicle
  2. services/director.py
    added method remove_vehicle
    added method remove_director_repo_for_vehicle

@mnm678
Copy link

mnm678 commented Jun 4, 2019

@tanishqjasoria Can you add some test cases for this?

@tanishqjasoria
Copy link
Author

@mnm678 I have added a test for remove_director function!

@tanishqjasoria
Copy link
Author

While registering a vehicle with the director using the add_new_vehicle method, while creating the repository for the vehicle, the current working directory(which is the uptane working directory) is changed to the director repos directory (as the repository Tool expects to use the current directory)
Therefore after adding a vehicle, it needs to be changed to the uptane working directory again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add method to remove vehicles from Director repo
3 participants