Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
opennsa3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michal Hažlinský
opennsa3
Commits
43d3a1e2
Commit
43d3a1e2
authored
3 years ago
by
Samir Faci
Browse files
Options
Downloads
Patches
Plain Diff
Adding NSI PDF Documentation for version 2.1
parent
081ec8de
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
client-test
+8
-8
8 additions, 8 deletions
client-test
docs/GFD.237.pdf
+0
-0
0 additions, 0 deletions
docs/GFD.237.pdf
with
8 additions
and
8 deletions
client-test
+
8
−
8
View file @
43d3a1e2
...
@@ -26,15 +26,15 @@ PORT = 7080
...
@@ -26,15 +26,15 @@ PORT = 7080
def
matchState
(
query_result
,
expected_state
):
def
matchState
(
query_result
,
expected_state
):
state
=
query_result
.
reservationSummary
[
0
].
connectionState
state
=
query_result
.
reservationSummary
[
0
].
connectionState
if
state
==
expected_state
:
if
state
==
expected_state
:
print
'
State match (%s)
'
%
expected_state
print
(
'
State match (%s)
'
%
expected_state
)
else
:
else
:
print
"
State mismatch. Was %s, should have been %s
"
%
(
state
,
expected_state
)
print
(
"
State mismatch. Was %s, should have been %s
"
%
(
state
,
expected_state
)
)
@defer.inlineCallbacks
@defer.inlineCallbacks
def
doMain
():
def
doMain
():
print
'
OpenNSA WS test client
'
print
(
'
OpenNSA WS test client
'
)
wsdl_dir
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)),
'
wsdl
'
)
wsdl_dir
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)),
'
wsdl
'
)
...
@@ -70,10 +70,10 @@ def doMain():
...
@@ -70,10 +70,10 @@ def doMain():
global_reservation_id
=
'
urn:uuid:
'
+
str
(
uuid
.
uuid1
())
global_reservation_id
=
'
urn:uuid:
'
+
str
(
uuid
.
uuid1
())
connection_id
=
'
urn:uuid:
'
+
str
(
uuid
.
uuid1
())
connection_id
=
'
urn:uuid:
'
+
str
(
uuid
.
uuid1
())
print
"
Connection id
"
,
connection_id
print
(
"
Connection id
"
,
connection_id
)
r
=
yield
client
.
reserve
(
client_nsa
,
provider
.
nsa
,
None
,
global_reservation_id
,
'
Test Connection
'
,
connection_id
,
service_params
)
r
=
yield
client
.
reserve
(
client_nsa
,
provider
.
nsa
,
None
,
global_reservation_id
,
'
Test Connection
'
,
connection_id
,
service_params
)
print
"
Reservation created. Connection ID:
"
,
connection_id
print
(
"
Reservation created. Connection ID:
"
,
connection_id
)
qr
=
yield
client
.
query
(
client_nsa
,
provider
.
nsa
,
None
,
"
Summary
"
,
connection_ids
=
[
connection_id
]
)
qr
=
yield
client
.
query
(
client_nsa
,
provider
.
nsa
,
None
,
"
Summary
"
,
connection_ids
=
[
connection_id
]
)
matchState
(
qr
,
'
Reserved
'
)
matchState
(
qr
,
'
Reserved
'
)
...
@@ -84,19 +84,19 @@ def doMain():
...
@@ -84,19 +84,19 @@ def doMain():
matchState
(
qr
,
'
Auto-Provision
'
)
matchState
(
qr
,
'
Auto-Provision
'
)
yield
d
yield
d
print
"
Connection provisioned
"
print
(
"
Connection provisioned
"
)
qr
=
yield
client
.
query
(
client_nsa
,
provider
.
nsa
,
None
,
"
Summary
"
,
connection_ids
=
[
connection_id
]
)
qr
=
yield
client
.
query
(
client_nsa
,
provider
.
nsa
,
None
,
"
Summary
"
,
connection_ids
=
[
connection_id
]
)
matchState
(
qr
,
'
Provisioned
'
)
matchState
(
qr
,
'
Provisioned
'
)
_
=
yield
client
.
release
(
client_nsa
,
provider
.
nsa
,
None
,
connection_id
)
_
=
yield
client
.
release
(
client_nsa
,
provider
.
nsa
,
None
,
connection_id
)
print
"
Connection released
"
print
(
"
Connection released
"
)
qr
=
yield
client
.
query
(
client_nsa
,
provider
.
nsa
,
None
,
"
Summary
"
,
connection_ids
=
[
connection_id
]
)
qr
=
yield
client
.
query
(
client_nsa
,
provider
.
nsa
,
None
,
"
Summary
"
,
connection_ids
=
[
connection_id
]
)
matchState
(
qr
,
'
Scheduled
'
)
matchState
(
qr
,
'
Scheduled
'
)
_
=
yield
client
.
terminate
(
client_nsa
,
provider
.
nsa
,
None
,
connection_id
)
_
=
yield
client
.
terminate
(
client_nsa
,
provider
.
nsa
,
None
,
connection_id
)
print
"
Reservation terminated
"
print
(
"
Reservation terminated
"
)
qr
=
yield
client
.
query
(
client_nsa
,
provider
.
nsa
,
None
,
"
Summary
"
,
connection_ids
=
[
connection_id
]
)
qr
=
yield
client
.
query
(
client_nsa
,
provider
.
nsa
,
None
,
"
Summary
"
,
connection_ids
=
[
connection_id
]
)
matchState
(
qr
,
'
Terminated
'
)
matchState
(
qr
,
'
Terminated
'
)
...
...
This diff is collapsed.
Click to expand it.
docs/GFD.237.pdf
0 → 100644
+
0
−
0
View file @
43d3a1e2
File added
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment