conjur-debify 1.8.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b219503ab3f09f2373d24e4bac3e34bd72c2c589924129eb56de4b531eb5035
4
- data.tar.gz: cf31ae9124e790229026c42137010f7cb309059e5faf1eb87bfe3586cfe25ba1
3
+ metadata.gz: f449c281a98b007e98003e26f1be8b594f9bbf1158e1e14eed0ef3151c1e226d
4
+ data.tar.gz: 1321864728ff6802809df538a4fa8d78f66e6e7f041d243e7130c57ddd7da428
5
5
  SHA512:
6
- metadata.gz: 90d8a3fe86a992b9789b0734d2b1438cc860b004eff656a6992790cb93668b4f0fbbe6ee2e81e0ffc3df8dda5b07271556190a0e3517286b865c7bd966efc0fb
7
- data.tar.gz: 42229cbc3f2ed5b8e5e096995f5b229a5b52c5e383da102f7af8a9c0d434220a74c1c4189878aff0ab11531443921de9d9a1d2566dddb3cfe4582349781aea5f
6
+ metadata.gz: 16a174970c950e07e218085b07284428c25254ce359d99c2ef9e1669c902b4262b55daadd29fce7c9485a028317c4dbe92699af42b5354814a89b831791151c7
7
+ data.tar.gz: edf444d94175e74ec9dd520b46bb1319531abd38741f2297a399c149610035a16c8eaf6001dd41e3dc2b143ebdc0c96be2c80253e1fd245b666b5c6ab8ec897c
data/.gitignore CHANGED
@@ -17,3 +17,4 @@ results.html
17
17
  mkmf.log
18
18
  *.deb
19
19
  *.gem
20
+ docker-debify
data/CHANGELOG.md CHANGED
@@ -1,7 +1,12 @@
1
+ # 1.8.1
2
+
3
+ * Make Conjur cert available in dockerized debify container
4
+ * Add a cuke for `debify publish`
5
+
1
6
  # 1.8.0
2
7
 
3
- * Added artifactory url option to `debian publish`, defaults to jfrog.io domain
4
- * Added artifactory repo option to `debian publish`, defaults to 'debian-private'
8
+ * Added artifactory url option to `debify publish`, defaults to jfrog.io domain
9
+ * Added artifactory repo option to `debify publish`, defaults to 'debian-private'
5
10
 
6
11
  # 1.7.4
7
12
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.8.0
1
+ 1.8.1
@@ -9,8 +9,15 @@ else
9
9
  netrc=$HOME/.netrc
10
10
  fi
11
11
 
12
- : ${CONJUR_APPLIANCE_URL=https://conjur-master-v2.itp.conjur.net/api}
13
- export CONJUR_APPLIANCE_URL
12
+ : ${CONJURRC=/etc/conjur.conf}
13
+
14
+ conjur_config() {
15
+ local name=$1; shift
16
+ grep $name $CONJURRC | awk '{print $2}' | tr -d '"'
17
+ }
18
+
19
+ export CONJUR_APPLIANCE_URL=$(conjur_config appliance_url)
20
+ export CONJUR_SSL_CERTIFICATE="$(< $(conjur_config cert_file))"
14
21
 
15
22
  [[ -f "$HOME/.debifyrc" ]] && rc_arg="-v $HOME/.debifyrc:/root/.debifyrc:ro"
16
23
 
@@ -18,7 +25,7 @@ export CONJUR_APPLIANCE_URL
18
25
  # containers
19
26
  tty=$(tty -s && echo "-t" || true)
20
27
  docker run -i $tty --rm \
21
- -e GLI_DEBUG -e DEBUG -e CONJUR_APPLIANCE_URL \
28
+ -e GLI_DEBUG -e DEBUG -e CONJUR_APPLIANCE_URL -e CONJUR_SSL_CERTIFICATE \
22
29
  -e ARTIFACTORY_USER -e ARTIFACTORY_PASSWORD \
23
30
  -e GIT_BRANCH -e BRANCH_NAME \
24
31
  -v $PWD:$PWD -w $PWD \
@@ -1,21 +1,20 @@
1
+ @announce-output
1
2
  Feature: Packaging
2
3
 
3
- @announce-output
4
- Scenario: 'example' project can be packaged successfully
5
- When I run `env DEBUG=true GLI_DEBUG=true debify package -d ../../example -v 0.0.1 example -- --post-install /distrib/postinstall.sh`
6
- Then the exit status should be 0
7
- And the stdout should contain exactly "conjur-example_0.0.1_amd64.deb"
4
+ Background:
5
+ Given I successfully run `env DEBUG=true GLI_DEBUG=true debify package -d ../../example -v 0.0.1 example -- --post-install /distrib/postinstall.sh`
8
6
 
9
- @announce-output
10
- Scenario: 'clean' command will delete non-Git-managed files
11
- Given I successfully run `env DEBUG=true GLI_DEBUG=true debify package -d ../../example -v 0.0.1 example -- --post-install /distrib/postinstall.sh`
12
- And I successfully run `env DEBUG=true GLI_DEBUG=true debify clean -d ../../example --force`
13
- And I successfully run `find ../../example`
14
- Then the stdout from "find ../../example" should not contain "conjur-example_0.0.1_amd64.deb"
7
+ Scenario: 'example' project can be packaged successfully
8
+ Then the stdout should contain exactly "conjur-example_0.0.1_amd64.deb"
15
9
 
16
- @announce-output
17
- Scenario: 'example' project can be tested successfully
18
- Given I successfully run `env DEBUG=true GLI_DEBUG=true debify package -d ../../example -v 0.0.1 example -- --post-install /distrib/postinstall.sh`
19
- When I run `env DEBUG=true GLI_DEBUG=true debify test -t 4.9-stable -v 0.0.1 -d ../../example --no-pull example test.sh`
20
- Then the exit status should be 0
21
- And the stderr should contain "Test succeeded"
10
+ Scenario: 'clean' command will delete non-Git-managed files
11
+ When I successfully run `env DEBUG=true GLI_DEBUG=true debify clean -d ../../example --force`
12
+ And I successfully run `find ../../example`
13
+ Then the stdout from "find ../../example" should not contain "conjur-example_0.0.1_amd64.deb"
14
+
15
+ Scenario: 'example' project can be tested successfully
16
+ When I successfully run `env DEBUG=true GLI_DEBUG=true debify test -t 4.9-stable -v 0.0.1 -d ../../example --no-pull example test.sh`
17
+ Then the stderr should contain "Test succeeded"
18
+
19
+ Scenario: 'example' project can be published
20
+ When I successfully run `env DEBUG=true GLI_DEBUG=true debify publish -v 0.0.1 -d ../../example 4.9 example`
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conjur-debify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Gilpin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-02 00:00:00.000000000 Z
11
+ date: 2018-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli