Skip to content

Commit

Permalink
Merge pull request #1 from cerpusoddarne/master
Browse files Browse the repository at this point in the history
Update Client to use new Authentication header.
  • Loading branch information
rypskar authored Nov 30, 2021
2 parents 67346c8 + 29c115f commit 449296f
Show file tree
Hide file tree
Showing 17 changed files with 1,084 additions and 207 deletions.
770 changes: 770 additions & 0 deletions .editorconfig

Large diffs are not rendered by default.

50 changes: 49 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,51 @@
/vendor/
/node_modules
/.idea/
/composer.lock
composer.lock

Homestead.yaml
Homestead.json
.env
public/js/react-components.js
public/js/react-components.js.map
### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio

*.iml

## Directory-based project format:
.idea/

## File-based project format:
*.ipr
*.iws

## Plugin-specific files:

# IntelliJ
/out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties

### Laravel template
/bootstrap/compiled.php
.env.*.php
.env.php
.DS_Store
.phpstorm.meta.php
_ide_helper.php
_ide_helper_models.php
public/js/jquery-ui.js
.phpunit.result.cache
public/dev-tmp
npm-debug.log

10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,13 @@ Internal package used by [Edlib](/~https://github.com/cerpus/Edlib/)

This package is released under the GNU General Public License 3.0. See the
`LICENSE` file for more information.

## Setup / Env Variables
```shell
# Point this to the questionbank instance you want to use
QUESTIONBANK_SERVICE_URL=

# Obtain a key/secret in questionbank to authenticate
QUESTIONBANK_KEY=
QUESTIONBANK_SECRET=
```
20 changes: 16 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,25 @@
"description": "Client to talk do the Cerpus Questionbank Service",
"license": "GPL-3.0-only",
"require": {
"cerpus/cerpushelper": "^1.5",
"php": ">=7.4",
"ext-json": "*",
"cerpus/cerpushelper": "^1.5",
"illuminate/support": "*"
},
"require-dev": {
"phpunit/phpunit": "^6.4",
"shrikeh/teapot": "^2.3",
"mockery/mockery": "^1.4",
"fzaninotto/faker": "^1.9",
"mockery/mockery": "^1.0",
"shrikeh/teapot": "^2.3"
"phpunit/phpunit": "^9.5"
},
"authors": [
{
"name": "Thomas Horn Sivertsen",
"email": "thomass@cerpus.com"
},
{
"name": "Odd-Arne Johansen",
"email": "odd-arne@gamilab.com"
}
],
"autoload": {
Expand All @@ -28,5 +33,12 @@
"psr-4": {
"Cerpus\\QuestionBankClientTests\\": "tests"
}
},
"extra": {
"laravel": {
"providers": [
"\\Cerpus\\QuestionBankClient\\Providers\\QuestionBankClientServiceProvider"
]
}
}
}
10 changes: 2 additions & 8 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,16 @@
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false">
stopOnFailure="false">
<testsuites>
<testsuite name="QuestionBankClient Test Suite">
<directory>tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
<php>
<env name="APP_ENV" value="testing"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="QUEUE_DRIVER" value="sync"/>
</php>
</phpunit>
</phpunit>
Loading

0 comments on commit 449296f

Please sign in to comment.