Skip to content

Commit

Permalink
Fix bug with suci ran test
Browse files Browse the repository at this point in the history
  • Loading branch information
denverwilliams committed Dec 6, 2023
1 parent 0717b14 commit 09bbee5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions spec/5g/ran_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@ describe "5g" do

it "'suci_enabled' should pass if the 5G core has suci enabled", tags: ["5g"] do
begin
# `/bin/bash -c "#{Dir.current}/spec/5g/key-setup.sh"`
# KubectlClient::Create.command("-f ./configmap.yml")
# Helm.fetch("openverso/open5gs --version 2.0.11 --untar")
# File.copy("#{Dir.current}/spec/fixtures/udm-config-open5gs.yml", "#{Dir.current}/open5gs/charts/open5gs-udm/resources/config/udm.yaml")
# Helm.install("open5gs #{Dir.current}/open5gs --values #{Dir.current}/spec/fixtures/5g-core-config.yml")
# KubectlClient::Get.wait_for_install("open5gs-pcf")
# $?.success?.should be_true
# # (/PASSED: CNF compatible with both Calico and Cilium/ =~ response_s).should_not be_nil
Log.info {`./cnf-testsuite cnf_setup cnf-config=sample-cnfs/sample_open5gs/cnf-testsuite.yml`}
$?.success?.should be_true
response_s = `./cnf-testsuite suci_enabled verbose`
Expand Down
2 changes: 1 addition & 1 deletion src/tasks/workload/ran.cr
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ task "suci_enabled" do |_, args|
if core

command = "-ni any -Y nas_5gs.mm.type_id -T json"
tshark_log_name = K8sTshark.log_of_tshark_by_label(command, core_key, core_value)
tshark_log_name = K8sTshark.log_of_tshark_by_label_bg(command, core_key, core_value)
if tshark_log_name &&
!tshark_log_name.empty? &&
(tshark_log_name =~ /not found/) == nil
Expand Down

0 comments on commit 09bbee5

Please sign in to comment.