This commit is contained in:
@@ -37,6 +37,14 @@ def Give_current_hour():
|
|||||||
return now.hour
|
return now.hour
|
||||||
|
|
||||||
def Check_server_supposed_XXX(expected_status):
|
def Check_server_supposed_XXX(expected_status):
|
||||||
|
#
|
||||||
|
# testing matrix
|
||||||
|
# bitwarden-admin week always off
|
||||||
|
# bitwarden-api days always off
|
||||||
|
# bitwarden-attachments day except 19 20
|
||||||
|
|
||||||
|
|
||||||
|
expected_status = False
|
||||||
|
|
||||||
# Get week schedule
|
# Get week schedule
|
||||||
|
|
||||||
@@ -51,9 +59,9 @@ def Check_server_supposed_XXX(expected_status):
|
|||||||
query_day = {argument_day : expected_status}
|
query_day = {argument_day : expected_status}
|
||||||
|
|
||||||
schedules_day = Schedule_Day_Data.objects.filter(**query_day)
|
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)
|
||||||
|
|
||||||
deployments = Deployment_Data.objects.filter(schedule_week__in=schedules_week,schedule_day__in=schedules_day)
|
|
||||||
|
|
||||||
for deployment in deployments:
|
for deployment in deployments:
|
||||||
name = deployment.name
|
name = deployment.name
|
||||||
namespace = deployment.namespace
|
namespace = deployment.namespace
|
||||||
@@ -61,5 +69,5 @@ def Check_server_supposed_XXX(expected_status):
|
|||||||
print("name: "+str(name))
|
print("name: "+str(name))
|
||||||
print("namespace: "+str(namespace))
|
print("namespace: "+str(namespace))
|
||||||
print("replicas: "+str(replicas))
|
print("replicas: "+str(replicas))
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
Reference in New Issue
Block a user