Skip to content

Commit

Permalink
Add POC 5G auth test code cncf/cnf-testsuite#1803
Browse files Browse the repository at this point in the history
  • Loading branch information
denverwilliams committed Aug 14, 2023
1 parent cf8e1b2 commit d9e5a12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion shard.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ shards:

cluster_tools:
git: https://github.com/cnf-testsuite/cluster_tools.git
version: 1.0.0
version: 1.0.4

commander:
git: https://github.com/mrrooijen/commander.git
Expand Down
4 changes: 2 additions & 2 deletions src/tasks/workload/5g.cr
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ task "suci_enabled" do |_, args|
#todo use sane defaults (i.e. search for amf, upf, etc in pod names) if no 5gcore labels are present
#todo get 5gcore pods
all_pods = KubectlClient::Get.pods_by_nodes(KubectlClient::Get.schedulable_nodes_list)
pods = KubectlClient::Get.pods_by_label(all_pods, "app.kubernetes.io/core", "5gcore")
pods = KubectlClient::Get.pods_by_label(all_pods, "app.kubernetes.io/instance", "open5gs")
fivegpod = pods[0]?
Log.info { "fivegpod: #{fivegpod}" }
if fivegpod && fivegpod.dig?("metadata", "name")
Expand Down Expand Up @@ -66,7 +66,7 @@ task "suci_enabled" do |_, args|
#todo 2.2 wait for 30 seconds

# ClusterTools.exec_by_node("bash -c 'sleep 10 && kill #{pid} && sleep 5 && kill -9 #{pid}'", node)
sleep 10.0
sleep 20.0
Log.info { "tshark_log_name: #{tshark_log_name}" }
resp = File.read("#{tshark_log_name}")
Log.info { "tshark_log_name resp: #{resp}" }
Expand Down

0 comments on commit d9e5a12

Please sign in to comment.