Skip to content

Commit

Permalink
Fingers crossed… many updates; Added newman-wrapper; Collection Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
0xHiteshPatel committed Mar 11, 2017
1 parent 2f7bfdf commit fc84c7a
Show file tree
Hide file tree
Showing 34 changed files with 5,650 additions and 763 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
globals.postman_globals.json
node_modules
local
921 changes: 502 additions & 419 deletions F5_Postman_Workflows.postman_collection.json

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,28 @@ an importable global environment file to Postman:
```
$ git clone https://github.com/0xHiteshPatel/f5-postman-workflows.git
$ cd framework
$ ./build.sh
$ npm install
$ npm run build
```

### Docs

Additionally docs are generated using ``jsdoc`` with the command:
```
$ cd framework
$ jsdoc f5-post-workflows.js ../README.md -d docs -c jsdoc_conf.json
$ npm install
$ npm run doc
```

### Tests

The F5_Postman_Workflows collection includes a test framework under the 'Tests'
folder. Tests should be run manually, with Collection Runner and Newman before
submitted a pull request. Test output should be included with any pull requests.

To run the test framework with newman perform the following:
```
$ cd framework
$ npm test
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"variables": [],
"info": {
"name": "BIGIP_API_Authentication",
"_postman_id": "f2593c59-4276-90d2-c065-c7f67af316a4",
"description": "Authenticate to a BIG-IP device.\n\nEnvironment Variables: \n\nbigip_mgmt\t\tBIG-IP management address\nbigip_username\tUsername\nbigip_password\tPassword\nbigip_token_var\tThe env variable to store the token in\n\n",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
"name": "1_Authenticate",
"description": "",
"item": [
{
"name": "Authenticate and Obtain Token",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"eval(postman.getGlobalVariable(\"_f5_workflow_functions\"));",
"",
"var populate_vars = [",
" {name:\"_rt_f5_token\", value:\"token.token\"}",
" ];",
" ",
"f5_populate_env_vars(populate_vars);",
""
]
}
}
],
"request": {
"url": " https://{{bigip_mgmt}}/mgmt/shared/authn/login",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\n \"username\": {{bigip_username}},\n \"password\": {{bigip_password}},\n \"loginProvidername\":\"tmos\"\n}\n"
},
"description": "Perform authentication and populate the variable specified in the {{bigip_token_var}} variable."
},
"response": []
}
]
}
]
}
Loading

0 comments on commit fc84c7a

Please sign in to comment.