This commit is contained in:
@@ -42,9 +42,9 @@ def Check_server_supposed_XXX(expected_status):
|
||||
# bitwarden-admin week always off
|
||||
# bitwarden-api days always off
|
||||
# bitwarden-attachments day except 19 20
|
||||
|
||||
|
||||
expected_status = False
|
||||
#just for testing
|
||||
#expected_status = True
|
||||
|
||||
# Get week schedule
|
||||
|
||||
@@ -60,7 +60,15 @@ def Check_server_supposed_XXX(expected_status):
|
||||
|
||||
schedules_day = Schedule_Day_Data.objects.filter(**query_day)
|
||||
|
||||
deployments = Deployment_Data.objects.filter(schedule_week__in=schedules_week) | Deployment_Data.objects.filter(schedule_day__in=schedules_day)
|
||||
if expected_status:
|
||||
deployments = Deployment_Data.objects.filter(schedule_week__in=schedules_week, schedule_day__in=schedules_day)
|
||||
else:
|
||||
deployments = Deployment_Data.objects.filter(schedule_week__in=schedules_week) | Deployment_Data.objects.filter(schedule_day__in=schedules_day)
|
||||
|
||||
print("---------------------------------------------------------")
|
||||
print("-----------------Expected status: -----------------------")
|
||||
print("-----------------"+str(expected_status)+"-----------------------")
|
||||
print("---------------------------------------------------------")
|
||||
|
||||
for deployment in deployments:
|
||||
name = deployment.name
|
||||
|
||||
Reference in New Issue
Block a user