File tree Expand file tree Collapse file tree 3 files changed +66
-1
lines changed
test/k8s-e2e/fleet-control-staging Expand file tree Collapse file tree 3 files changed +66
-1
lines changed Original file line number Diff line number Diff line change 77 description : ' JSON array of test scenarios to run'
88 required : false
99 type : string
10- default : ' ["fleet-control"]'
10+ default : ' ["fleet-control-staging "]'
1111 minikube_start_args :
1212 description : ' Arguments to pass to Minikube start command'
1313 required : false
Original file line number Diff line number Diff line change 1+ # Cluster and License info is set with "--set" in the e2e-spec file
2+ toolkitImage :
3+ tag : failIfNotReplaced
4+ agentControlDeployment :
5+ nrStaging : true
6+ chartValues :
7+ image :
8+ tag : failIfNotReplaced
9+ subAgentsNamespace : " newrelic-agents"
10+ systemIdentity :
11+ create : false
12+ secretName : " sys-identity"
13+
14+ config :
15+ authSecret :
16+ secretName : " sys-identity"
17+ secretKeyName : " private_key"
18+ fleet_control :
19+ enabled : true
20+ # Fleet with name 'AC-FC E2E tests'. The sub-agent reports data to the 'General Testing' account.
21+ fleet_id : MTIyMTA0NzV8TkdFUHxGTEVFVHwwMTliZTAzZC03MDYwLTcxMDctOTUwYS04YTFiODc3YjJiN2Q
22+ log :
23+ level : debug
24+ agents :
25+ infra :
26+ agent_type : newrelic/com.newrelic.infrastructure:0.1.0
27+ agentsConfig :
28+ infra :
29+ chart_version : " *" # Use latest
30+ chart_values :
31+ global : # add 'cluster_name' (nri-kubernetes events have 'clusterName' attribute)
32+ customAttributes :
33+ cluster_name : ${nr-env:NR_CLUSTER_NAME}
34+ config_origin : local
Original file line number Diff line number Diff line change 1+ description : E2E Test fleet control
2+
3+ custom_test_key : cluster_name
4+
5+ scenarios :
6+ - description : Deploy all infra agents
7+ before :
8+ - echo The cluster name of the test is ${SCENARIO_TAG}
9+ - kubectl get secret sys-identity || kubectl create secret generic sys-identity --from-literal=CLIENT_ID="${NR_SYSTEM_IDENTITY_CLIENT_ID}" --from-literal=private_key="${NR_SYSTEM_IDENTITY_PRIVATE_KEY}"
10+ - cd ../../../ && SA_CHART_VALUES_FILE="test/k8s-e2e/fleet-control/ac-values-fleet-control.yml" CLUSTER=${SCENARIO_TAG} USE_LATEST_FLUX=${USE_LATEST_FLUX} tilt ci
11+ after :
12+ - kubectl logs --tail=-1 -l app.kubernetes.io/name=agent-control --all-containers --prefix=true
13+ - kubectl logs --tail=-1 -l app.kubernetes.io/instance=nr-infra --all-containers --prefix=true -n newrelic-agents
14+ - kubectl get secrets --show-labels
15+ - kubectl get configmap
16+ - kubectl get all -o wide --all-namespaces --show-labels
17+ - kubectl get helmrelease
18+ - kubectl get helmchart
19+ - helm list -a -A
20+ - cd ../../../ && tilt down
21+ tests :
22+ nrqls :
23+ # Check that newrelic-infrastructure data is reported, an extra where testKey=$SCENARIO_TAG is always added.
24+ - query : " FROM K8sClusterSample SELECT * WHERE `config_origin` = 'remote'"
25+ # Expected remote config (already deployed in the corresponding fleet):
26+ # chart_version: "*"
27+ # chart_values:
28+ # global: # add 'cluster_name' (nri-kubernetes events have 'clusterName' attribute)
29+ # customAttributes:
30+ # cluster_name: ${nr-env:NR_CLUSTER_NAME}
31+ # config_origin: remote
You can’t perform that action at this time.
0 commit comments