-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #173 from fabric-testbed/acceptance-update
Updates to acceptance testing notebooks to make tests 1.x and 3.1.x work
- Loading branch information
Showing
4 changed files
with
165 additions
and
77 deletions.
There are no files selected for viewing
134 changes: 134 additions & 0 deletions
134
fabric_examples/acceptance_testing/Acceptance Tests 1.1.1/functional_test_1.1.1.ipynb
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,134 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": { | ||
"tags": [] | ||
}, | ||
"source": [ | ||
"# Functional Test 1.1.1 - checking site resources via REST API\n", | ||
"\n", | ||
"This Jupyter notebook will allow you to see if the site resources are visible through CF REST APIs consistent with the requirements for test 1.1.1\n", | ||
"\n", | ||
"## Step 1: Configure the Environment\n", | ||
"\n", | ||
"Before running this notebook, you will need to configure your environment using the [Configure Environment](../../fablib_api/configure_environment/configure_environment.ipynb) notebook. Please stop here, open and run that notebook, then return to this notebook.\n", | ||
"\n", | ||
"**This only needs to be done once.**" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": { | ||
"tags": [] | ||
}, | ||
"source": [ | ||
"## Step 2: Import the FABlib Library" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 1, | ||
"metadata": { | ||
"tags": [] | ||
}, | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"----------------------------------- --------------------------------------------------\n", | ||
"credmgr_host cm.fabric-testbed.net\n", | ||
"orchestrator_host orchestrator.fabric-testbed.net\n", | ||
"fabric_token /home/fabric/.tokens.json\n", | ||
"project_id 990d8a8b-7e50-4d13-a3be-0f133ffa8653\n", | ||
"bastion_username ibaldin_0000241998\n", | ||
"bastion_key_filename /home/fabric/work/fabric_config/fabric_bastion_key\n", | ||
"bastion_public_addr bastion-1.fabric-testbed.net\n", | ||
"bastion_passphrase None\n", | ||
"slice_public_key_file /home/fabric/work/fabric_config/slice_key.pub\n", | ||
"slice_private_key_file /home/fabric/work/fabric_config/slice_key\n", | ||
"fabric_slice_private_key_passphrase None\n", | ||
"fablib_log_file /tmp/fablib/fablib.log\n", | ||
"fablib_log_level INFO\n", | ||
"----------------------------------- --------------------------------------------------\n" | ||
] | ||
} | ||
], | ||
"source": [ | ||
"from fabrictestbed_extensions.fablib.fablib import FablibManager as fablib_manager\n", | ||
"\n", | ||
"fablib = fablib_manager()\n", | ||
" \n", | ||
"fablib.show_config()" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": { | ||
"tags": [] | ||
}, | ||
"source": [ | ||
"## Step 3 Query for Available Testbed Resources and Settings\n", | ||
"\n", | ||
"This command queries the FABRIC services to find the available resources. \n", | ||
"\n", | ||
"**Be sure the site you are about to test is listed in the advertisement.**" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 3, | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"Name CPUs Cores RAM (G) Disk (G) Basic (100 Gbps NIC) ConnectX-6 (100 Gbps x2 NIC) ConnectX-5 (25 Gbps x2 NIC) P4510 (NVMe 1TB) Tesla T4 (GPU) RTX6000 (GPU)\n", | ||
"------ ------ ------- --------- ------------- ---------------------- ------------------------------ ----------------------------- ------------------ ---------------- ---------------\n", | ||
"MASS 4 125/128 1016/1024 55750/55800 253/254 2/2 0/0 6/6 0/0 3/3\n", | ||
"MAX 10 256/320 2358/2560 115586/116400 598/635 1/2 3/4 16/16 4/4 6/6\n", | ||
"TACC 10 272/320 2382/2560 116092/116400 605/635 0/2 1/4 16/16 4/4 6/6\n", | ||
"MICH 6 192/192 1536/1536 60600/60600 381/381 2/2 2/2 10/10 2/2 3/3\n", | ||
"SALT 6 192/192 1536/1536 60600/60600 381/381 2/2 2/2 10/10 2/2 3/3\n", | ||
"STAR 12 375/384 3040/3072 121120/121200 757/762 2/2 6/6 20/20 6/6 6/6\n", | ||
"UTAH 10 320/320 2560/2560 116400/116400 635/635 2/2 4/4 16/16 4/4 5/5\n", | ||
"UCSD 10 320/320 2560/2560 116400/116400 635/635 2/2 4/4 16/16 4/4 6/6\n", | ||
"FIU 10 320/320 2560/2560 116400/116400 635/635 2/2 4/4 16/16 4/4 6/6\n", | ||
"WASH 6 190/192 1528/1536 60590/60600 379/381 2/2 2/2 10/10 2/2 3/3\n", | ||
"DALL 6 192/192 1536/1536 60600/60600 381/381 2/2 2/2 10/10 2/2 3/3\n", | ||
"NCSA 6 192/192 1536/1536 60600/60600 381/381 2/2 2/2 10/10 2/2 3/3\n" | ||
] | ||
} | ||
], | ||
"source": [ | ||
"try:\n", | ||
" print(f\"{fablib.list_sites()}\")\n", | ||
"except Exception as e:\n", | ||
" print(f\"Exception: {e}\")" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 3 (ipykernel)", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.9.7" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 4 | ||
} |
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
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
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