1717  HTTPS_ENABLE : true 
1818  NETBOX_RESTORATION_HASH_FIELD_NAME : netboxOperatorRestorationHash 
1919jobs :
20-   e2e-tests :
21-     name : E2E tests for  netbox operator 
20+   e2e-tests-3-7-8  :
21+     name : Against  netbox version 3.7.8 
2222    runs-on : ubuntu-latest 
2323    steps :
2424    - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332  #  v4.1.7
2828    - name : Import environment variables from file 
2929      run : | 
3030        cat ".github/env" >> "$GITHUB_ENV" 
31-         echo "E2E_DIAGNOSTIC_DIRECTORY=$(mktemp -d)" >> "$GITHUB_ENV" 
3231name : Start kind cluster 
3332      uses : helm/kind-action@ae94020eaf628e9b9b9f341a10cc0cdcf5c018fb  #  v1.11.0
3433      with :
@@ -47,27 +46,70 @@ jobs:
4746        kubectl get pods -A 
4847        echo "Cluster information" 
4948        kubectl cluster-info 
50- name : Setup kind cluster with required software such as NetBox 
49+ name : Run e2e tests 
5150      run : | 
52-         make create-kind 
53- name : Deploy NetBox operator to the kind cluster 
51+         make test-e2e-3.7.8 
52+ e2e-tests-4-0-11 :
53+     name : Against netbox version 4.0.11 
54+     runs-on : ubuntu-latest 
55+     steps :
56+     - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332  #  v4.1.7
57+     - uses : actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed  #  v5.1.0
58+       with : 
59+         go-version : 1.23.4 
60+     - name : Import environment variables from file 
5461      run : | 
55-         make deploy-kind 
56- name : Run tests 
57-       env :
58-         E2E_DIAGNOSTIC_DIRECTORY : ${{ env.E2E_DIAGNOSTIC_DIRECTORY }} 
62+         cat ".github/env" >> "$GITHUB_ENV" 
63+ name : Start kind cluster 
64+       uses : helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde  #  v1.10.0
65+       with :
66+         version : ${{ env.kind-version }} 
67+         node_image : ${{ env.kind-image }} 
68+         wait : 300s 
69+         config : ./tests/e2e/kind-config.yaml 
70+         cluster_name : e2e 
71+     - name : Wait for cluster to finish bootstraping 
72+       run : | 
73+         echo "Waiting for all nodes to be ready..." 
74+         kubectl wait --for=condition=Ready nodes --all --timeout=120s 
75+         kubectl get nodes 
76+         echo "Waiting for all pods to be ready..." 
77+         kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout=300s 
78+         kubectl get pods -A 
79+         echo "Cluster information" 
80+         kubectl cluster-info 
81+ name : Run e2e tests 
5982      run : | 
60-         # # Very straight forward way of implementing a test and checking the result 
61-         # kubectl apply -f config/samples/netbox_v1_prefixclaim.yaml 
62-         # kubectl get prefixclaim,prefix,ipaddressclaim,ipaddress,iprange,iprangeclaim 
63-         # kubectl wait --for=condition=ready --timeout=30s prefixclaim.netbox.dev/prefixclaim-sample 
64- 
65-         # Use Chainsaw 
66-         make test-e2e 
67- name : Upload diagnostics artifact 
68-       if : ${{ failure() }} 
69-       uses : actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882  #  v4.4.3
83+         make test-e2e-4.0.11 
84+ e2e-tests-4-1-8 :
85+     name : Against netbox version 4.1.8 
86+     runs-on : ubuntu-latest 
87+     steps :
88+     - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332  #  v4.1.7
89+     - uses : actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed  #  v5.1.0
90+       with : 
91+         go-version : 1.23.4 
92+     - name : Import environment variables from file 
93+       run : | 
94+         cat ".github/env" >> "$GITHUB_ENV" 
95+ name : Start kind cluster 
96+       uses : helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde  #  v1.10.0
7097      with :
71-         name : cluster-state 
72-         path : ${{ env.E2E_DIAGNOSTIC_DIRECTORY }} 
73-         retention-days : 15 
98+         version : ${{ env.kind-version }} 
99+         node_image : ${{ env.kind-image }} 
100+         wait : 300s 
101+         config : ./tests/e2e/kind-config.yaml 
102+         cluster_name : e2e 
103+     - name : Wait for cluster to finish bootstraping 
104+       run : | 
105+         echo "Waiting for all nodes to be ready..." 
106+         kubectl wait --for=condition=Ready nodes --all --timeout=120s 
107+         kubectl get nodes 
108+         echo "Waiting for all pods to be ready..." 
109+         kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout=300s 
110+         kubectl get pods -A 
111+         echo "Cluster information" 
112+         kubectl cluster-info 
113+ name : Run e2e tests 
114+       run : | 
115+         make test-e2e-4.1.8 
0 commit comments