Skip to content

Commit

Permalink
Merge pull request #178 from cyberark/test-tas-5.0
Browse files Browse the repository at this point in the history
Add support for TAS 3.0, 4.0 and 5.0
  • Loading branch information
john-odonnell committed Oct 17, 2023
2 parents a071412 + 0c3cdba commit 79942f8
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 30 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Added
- Support for TAS 4.0 and 5.0, and associated `cflinuxfs4` stack.
[cyberark/cloudfoundry-conjur-buildpack#178](https://github.com/cyberark/cloudfoundry-conjur-buildpack/pull/178)

### Changed
- Project Go version bumped to 1.20, and support for deprecated Go version 1.17 removed.
[cyberark/cloudfoundry-conjur-buildpack#178](https://github.com/cyberark/cloudfoundry-conjur-buildpack/pull/178)

## [2.2.8] - 2023-06-21
### Security
- Upgrade golang.org/x/net to v0.10.0, golang.org/x/text to v0.9.0, golang.org/x/sys to v0.8.0, rack to 3.0.1,
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pipeline {

stage('End To End Tests') {
steps {
allocateTas('isv_ci_tas_srt_2_13')
allocateTas('isv_ci_tas_srt_5_0')
sh 'summon -f ./ci/secrets.yml ./ci/test_e2e'
junit 'tests/integration/reports/e2e/*.xml'
}
Expand Down
2 changes: 1 addition & 1 deletion ci/start_dev_environment
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ trap finish EXIT
build_test_images
start_conjur

# Runs the cflinux3 image in interactive mode with the project files mounted
# Runs the cflinux4 image in interactive mode with the project files mounted
docker-compose \
-f "$DOCKER_COMPOSE_FILE" \
run --rm \
Expand Down
6 changes: 4 additions & 2 deletions lib/install_go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@

set -euo pipefail

GO_VERSION="1.17.9"
GO_VERSION="1.20.9"

if [ "${CF_STACK}" == "cflinuxfs3" ]; then
GO_SHA256="a620909b3dc54e17a7769dbcb95bc9fbac60dd376c730b09afaee984d4d7da91"
GO_SHA256="2bf83781fa63a1edc157368f2564c20b50a0fcabfaf95b80ad373f15c3555a6a"
elif [ "${CF_STACK}" == "cflinuxfs4" ]; then
GO_SHA256="23cc8463b6bbe90f08dbf28e2a501886ccf1c01d45e6ebd58b59ec0e5973198d"
else
echo " **ERROR** Unsupported stack"
echo " See https://docs.cloudfoundry.org/devguide/deploy-apps/stacks.html for more info"
Expand Down
56 changes: 38 additions & 18 deletions manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,50 @@ metadata:
annotations:
contact: "Conjur Maintainers - conj_maintainers@cyberark.com"
default_versions:
- name: go
version: 1.17.x
- name: go
version: 1.20.x
dependency_deprecation_dates:
- version_line: 1.17.x
name: go
date: 2022-09-15
link: https://golang.org/doc/devel/release.html
- version_line: 1.20.x
name: go
date: 2024-02-01
link: https://golang.org/doc/devel/release.html
- version_line: 1.21.x
name: go
date: 2024-08-15
link: https://golang.org/doc/devel/release.html
dependencies:
- name: go
version: 1.17.8
uri: https://buildpacks.cloudfoundry.org/dependencies/go/go_1.17.8_linux_x64_cflinuxfs3_57a37267.tgz
sha256: 57a37267066d80ba182f8b4e4d715d1a0e3a775e26c3be608eda0ed572a231ca
version: 1.20.9
uri: https://buildpacks.cloudfoundry.org/dependencies/go/go_1.20.9_linux_x64_cflinuxfs3_2bf83781.tgz
sha256: 2bf83781fa63a1edc157368f2564c20b50a0fcabfaf95b80ad373f15c3555a6a
cf_stacks:
- cflinuxfs3
source: https://dl.google.com/go/go1.20.9.src.tar.gz
source_sha256: 4923920381cd71d68b527761afefa523ea18c5831b4795034c827e18b685cdcf
- name: go
version: 1.20.9
uri: https://buildpacks.cloudfoundry.org/dependencies/go/go_1.20.9_linux_x64_cflinuxfs4_23cc8463.tgz
sha256: 23cc8463b6bbe90f08dbf28e2a501886ccf1c01d45e6ebd58b59ec0e5973198d
cf_stacks:
- cflinuxfs4
source: https://dl.google.com/go/go1.20.9.src.tar.gz
source_sha256: 4923920381cd71d68b527761afefa523ea18c5831b4795034c827e18b685cdcf
- name: go
version: 1.21.2
uri: https://buildpacks.cloudfoundry.org/dependencies/go/go_1.21.2_linux_x64_cflinuxfs3_9d661bee.tgz
sha256: 9d661beeb4de39f9beacbca1564f31ca5ca0a7f8b365aa5c2cfcfcf5a11ebad0
cf_stacks:
- cflinuxfs3
source: https://dl.google.com/go/go1.17.8.src.tar.gz
source_sha256: 2effcd898140da79a061f3784ca4f8d8b13d811fb2abe9dad2404442dabbdf7a
- cflinuxfs3
source: https://dl.google.com/go/go1.21.2.src.tar.gz
source_sha256: 45e59de173baec39481854490d665b726cec3e5b159f6b4172e5ec7780b2c201
- name: go
version: 1.17.9
uri: https://buildpacks.cloudfoundry.org/dependencies/go/go_1.17.9_linux_x64_cflinuxfs3_a620909b.tgz
sha256: a620909b3dc54e17a7769dbcb95bc9fbac60dd376c730b09afaee984d4d7da91
version: 1.21.2
uri: https://buildpacks.cloudfoundry.org/dependencies/go/go_1.21.2_linux_x64_cflinuxfs4_b900d2c1.tgz
sha256: b900d2c13f6b229ab9c0d338582824e6b76f74359aa9c5a7e2169029b3cb2612
cf_stacks:
- cflinuxfs3
source: https://dl.google.com/go/go1.17.9.src.tar.gz
source_sha256: 763ad4bafb80a9204458c5fa2b8e7327fa971aee454252c0e362c11236156813
- cflinuxfs4
source: https://dl.google.com/go/go1.21.2.src.tar.gz
source_sha256: 45e59de173baec39481854490d665b726cec3e5b159f6b4172e5ec7780b2c201
include_files:
- CHANGELOG.md
- CONTRIBUTING.md
Expand Down
9 changes: 2 additions & 7 deletions tests/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM cloudfoundry/cflinuxfs3
FROM cloudfoundry/cflinuxfs4

ENV WD_PATH="/cyberark/cloudfoundry-conjur-buildpack" \
TEST_PATH="/cyberark/cloudfoundry-conjur-buildpack/tests"
Expand All @@ -10,12 +10,7 @@ RUN apt-get update && \
apt-get install -y apt-transport-https \
ca-certificates \
openssl \
software-properties-common

# Install Ruby 2.5
RUN apt-add-repository ppa:brightbox/ruby-ng && \
apt-get update && \
apt-get install -y ruby2.5-dev
ruby-dev

# Install the Cloud Foundry CLI
RUN wget -q https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key && \
Expand Down
2 changes: 1 addition & 1 deletion tests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
image: buildpack-tester
environment:
BUILDPACK_BUILD_DIR: /cyberark/cloudfoundry-conjur-buildpack/conjur_buildpack #tests run against the code in this directory
CF_STACK: cflinuxfs3
CF_STACK: cflinuxfs4
CF_API_ENDPOINT:
CF_ADMIN_PASSWORD:
BRANCH_NAME:
Expand Down

0 comments on commit 79942f8

Please sign in to comment.