-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4091cce
commit 846e30d
Showing
3 changed files
with
62 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
require "cluster_tools" | ||
module UERANSIM | ||
# MYSQL_PORT = "3306" | ||
# def self.match() | ||
# ClusterTools.local_match_by_image_name(["mysql/mysql-server","bitnami/mysql"]) | ||
# # ClusterTools.local_match_by_image_name("bitnami/mysql") | ||
# end | ||
def self.uninstall | ||
Log.for("verbose").info { "uninstall_ueransim" } | ||
Helm.delete("ueransim") | ||
end | ||
|
||
# todo make this work without having the test-suite src | ||
def self.install | ||
Log.info {"Installing mysql-operator "} | ||
Helm.install("ueransim") | ||
KubectlClient::Get.resource_wait_for_install("Pod", "ueransim") | ||
end | ||
|
||
|
||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# coding: utf-8 | ||
require "sam" | ||
require "file_utils" | ||
require "colorize" | ||
require "totem" | ||
require "docker_client" | ||
require "halite" | ||
require "totem" | ||
require "k8s_netstat" | ||
require "kernel_introspection" | ||
require "k8s_kernel_introspection" | ||
require "../utils/utils.cr" | ||
|
||
desc "The CNF test suite checks to see if a 5gCore installed in K8s responds properly" | ||
task "5gCore", ["supi_enabled"] do |_, args| | ||
stdout_score("5g") | ||
case "#{ARGV.join(" ")}" | ||
when /5g/ | ||
stdout_info "Results have been saved to #{CNFManager::Points::Results.file}".colorize(:green) | ||
end | ||
end | ||
|
||
#todo set up a UE and Ran simulator (ueransim) to test the 5g core | ||
#todo modify ueransime to use supi (5g authenticatio) | ||
#todo set up tshark to test authentication on the wire | ||
#todo check the wire using tshark to see if authenticaion worked | ||
|
||
desc "To check if the 5g core has supi enabled (5g authentication)" | ||
task "supi_enabled", [""] do |_, args| | ||
|
||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters