Skip to content

Commit 74c4f63

Browse files
authored
Merge pull request #3 from elpete/add_csr
Add commandbox-semantic-release
2 parents 8c71db8 + fca4bc5 commit 74c4f63

File tree

5 files changed

+39
-30
lines changed

5 files changed

+39
-30
lines changed

.travis.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
language: java
2+
sudo: required
3+
jdk:
4+
- oraclejdk8
5+
cache:
6+
directories:
7+
- "$HOME/.CommandBox/artifacts/"
8+
- "$HOME/.CommandBox/server/"
9+
env:
10+
matrix:
11+
- ENGINE=adobe@2018
12+
- ENGINE=adobe@2016
13+
- ENGINE=adobe@11
14+
- ENGINE=lucee@5
15+
before_install:
16+
- curl -fsSl https://downloads.ortussolutions.com/debs/gpg | sudo apt-key add -
17+
- sudo echo "deb http://downloads.ortussolutions.com/debs/noarch /" | sudo tee -a /etc/apt/sources.list.d/commandbox.list
18+
install:
19+
- sudo apt-get update && sudo apt-get --assume-yes install commandbox
20+
- box install
21+
before_script:
22+
- box server start cfengine=$ENGINE port=8500
23+
script:
24+
- box testbox run runner='http://127.0.0.1:8500/tests/runner.cfm'
25+
after_success:
26+
- box install commandbox-semantic-release
27+
- box config set endpoints.forgebox.APIToken=${FORGEBOX_TOKEN}
28+
- box semantic-release
29+
notifications:
30+
email: false

Gulpfile.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

server.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"app":{
3+
"cfengine":"adobe@11"
4+
},
25
"web":{
36
"http":{
47
"port":"61200"

tests/specs/AuthenticationSpec.cfc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ component extends="testbox.system.BaseSpec" {
4444
wireboxMock.$( "getInstance" ).$args( mockedPath ).$results( userServiceMock );
4545

4646
var actual = auth.getUserServicePublic();
47-
47+
4848
expect( actual ).toBe( userServiceMock );
4949
} );
5050

@@ -55,7 +55,7 @@ component extends="testbox.system.BaseSpec" {
5555

5656
auth.getUserServicePublic();
5757
auth.getUserServicePublic();
58-
58+
5959
expect( wireboxMock.$once( "getInstance" ) )
6060
.toBeTrue( "[getInstance] should only have been called once." );
6161
} );
@@ -124,7 +124,7 @@ component extends="testbox.system.BaseSpec" {
124124
} );
125125

126126
it( "returns the user from the request if it exists", function() {
127-
requestStorageMock.$( "exists", true );
127+
requestStorageMock.$( "exists", true );
128128
requestStorageMock.$( "getVar", userMock );
129129

130130
auth.getUser();
@@ -232,10 +232,10 @@ component extends="testbox.system.BaseSpec" {
232232
var retrieveUserByUsernameCallLog = userServiceMock.$callLog().retrieveUserByUsername;
233233

234234
expect( isValidCredentialsCallLog[1] )
235-
.toBe( [ validUsername, correctPassword ] );
235+
.toBe( { "1" = validUsername, "2" = correctPassword } );
236236

237237
expect( retrieveUserByUsernameCallLog[1] )
238-
.toBe( [ validUsername ] );
238+
.toBe( { "1" = validUsername } );
239239
} );
240240

241241
it( "throws an InvalidCredentials exception and does not call retrieveUserByUsername if the credentials are invalid", function() {
@@ -333,4 +333,4 @@ component extends="testbox.system.BaseSpec" {
333333
userServiceMock.$( "retrieveUserByUsername", userMock );
334334
}
335335

336-
}
336+
}

0 commit comments

Comments
 (0)